From owner-freebsd-isp Fri Aug 13 14:29:56 1999 Delivered-To: freebsd-isp@freebsd.org Received: from unix.megared.net.mx (megared.net.mx [207.249.162.252]) by hub.freebsd.org (Postfix) with ESMTP id 62BE314EAB for ; Fri, 13 Aug 1999 14:29:51 -0700 (PDT) (envelope-from ales@megared.net.mx) Received: from ales (ales.megared.net.mx [207.249.163.252]) by unix.megared.net.mx (8.9.3/8.9.3) with SMTP id QAA69953; Fri, 13 Aug 1999 16:29:11 -0500 (CDT) (envelope-from ales@megared.net.mx) Message-ID: <00ca01bee5d2$ecf7aca0$fca3f9cf@megared.net.mx> From: "Alejandro Ramirez" To: "Steve Hovey" , "Joe Nall" Cc: , References: Subject: RE: pwd_mkdb and system processes Date: Fri, 13 Aug 1999 16:29:29 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, How do you do it ??? Ales ----- Original Message ----- From: Steve Hovey To: Joe Nall Cc: ; 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 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