From owner-freebsd-isp Fri Aug 13 9:48:55 1999 Delivered-To: freebsd-isp@freebsd.org Received: from buffnet4.buffnet.net (buffnet4.buffnet.net [205.246.19.13]) by hub.freebsd.org (Postfix) with ESMTP id 93BD414F9F for ; Fri, 13 Aug 1999 09:48:51 -0700 (PDT) (envelope-from shovey@buffnet.net) Received: from buffnet11.buffnet.net (buffnet11.buffnet.net [205.246.19.55]) by buffnet4.buffnet.net (8.8.7/8.8.7) with ESMTP id MAA26158; Fri, 13 Aug 1999 12:47:46 -0400 (EDT) (envelope-from shovey@buffnet.net) Date: Fri, 13 Aug 1999 12:47:46 -0400 (EDT) From: Steve Hovey To: Joe Nall Cc: lambert@cswnet.com, FreeBSD-ISP@FreeBSD.ORG Subject: Re: pwd_mkdb and system processes In-Reply-To: <37B44A72.94B35E78@nall.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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