Date: Fri, 13 Aug 1999 18:30:41 +0200 (CEST) From: ck@toplink.net To: lambert@cswnet.com Cc: FreeBSD-ISP@FreeBSD.ORG Subject: Re: pwd_mkdb and system processes Message-ID: <Pine.BSF.4.10.9908131828180.19829-100000@babylon.toplink.net> In-Reply-To: <199908131617.LAA98264@troi.csw.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, it takes quite some time to build a dbm file of 15k users. pwd_mkdb would need to be rewritten to build the dbm file somewhere else and then quickly unlink the old dbm file und replace it with the new one. We do similar stuff when building our dbm users file for radius. We build it somewhere else and then quickly replace it. pwd_mkdb is propably not made with this kind of stuff in mind. You would need to fix that. Greetings Christian On Fri, 13 Aug 1999 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? > > 3.2-STABLE June 30ish. SMP > > -- TopLink Internet Services GmbH ck@171.2.195.in-addr.arpa Christian Kratzer http://www.toplink.net/ Phone: +49 7032 2701-0 Fax: +49 7032 2701-19 FreeBSD spoken here! 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.10.9908131828180.19829-100000>