Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 1999 21:19:29 -0400 (EDT)
From:      Steve Hovey <shovey@buffnet.net>
To:        Alejandro Ramirez <ales@megared.net.mx>
Cc:        Joe Nall <joe@nall.com>, lambert@cswnet.com, FreeBSD-ISP@FreeBSD.ORG
Subject:   RE: pwd_mkdb and system processes
Message-ID:  <Pine.BSF.4.05.9908142118540.4273-100000@buffnet11.buffnet.net>
In-Reply-To: <00ca01bee5d2$ecf7aca0$fca3f9cf@megared.net.mx>

next in thread | previous in thread | raw e-mail | index | archive | help

I believe there are command line switches - but just to not have to think
or remember too much, I went into the source and did it.. the area where
the cache is defined is right at the top of the source file, cant miss it.

On Fri, 13 Aug 1999, Alejandro Ramirez wrote:

> Hi,
> 
> How do you do it ???
> 
> Ales
> 
> ----- Original Message -----
> From: Steve Hovey <shovey@buffnet.net>
> To: Joe Nall <joe@nall.com>
> Cc: <lambert@cswnet.com>; <FreeBSD-ISP@FreeBSD.ORG>
> Sent: Friday, August 13, 1999 11:47 AM
> Subject: Re: pwd_mkdb and system processes
> 
> 
> >
> > Or just increase the cache size it uses to it gets done quicker
> >
> > On Fri, 13 Aug 1999, Joe Nall wrote:
> >
> > > lambert@cswnet.com wrote:
> > > >
> > > > I've been trying to track down a problem on my e-mail server where it
> > > > stops processing smtp and pop processes for 5 minutes at a time.
> > > >
> > > > # wc -l /etc/passwd
> > > >     14945 /etc/passwd
> > > >
> > > > We rebuild this file once per hour to add or remove customers.
> > > >
> > > > I finally caught it with a top session running at the time.
> > > >
> > > > Inetd was accepting new connections and starting popper but people
> can't
> > > > authenticate.
> > > > Sendmail accepts new connections but they stall until pwd_mkdb goes
> away.
> > > >  When I try to run a command from the command line, it doesn't execute
> > > > until pwd_mkdb gets done.
> > > > The CPU is 97% idle during this time.
> > > >
> > > > Does all file access in the system stop while pwd_mkdb runs?
> > > No but all password lookups do.  Both of theses commands rely on the
> > > file you are rebuilding and the files involved are locked during the
> > > process.  You might try  pwd_mkdp -d /tmp <> followed by a mv of the
> > > relevant files into /etc or try pwd_mkdb -u <user> at the time the
> > > passwd file gets modified and avoid the overhead of the total rebuild.
> > > YMMV, I haven't used the -d option.
> > > Joe
> > >
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-isp" in the body of the message
> > >
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-isp" in the body of the message
> 
> 
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9908142118540.4273-100000>