From owner-freebsd-isp Fri Aug 13 9:35:56 1999 Delivered-To: freebsd-isp@freebsd.org Received: from mail.toplink.net (mail.toplink.net [195.2.171.8]) by hub.freebsd.org (Postfix) with ESMTP id 72C7D1502D for ; Fri, 13 Aug 1999 09:35:35 -0700 (PDT) (envelope-from ck@toplink.net) Received: from babylon.toplink.net (babylon.toplink.net [195.2.171.90]) by mail.toplink.net (8.9.3/8.9.3) with ESMTP id SAA19122; Fri, 13 Aug 1999 18:35:30 +0200 (CEST) Received: from localhost (ck@localhost) by babylon.toplink.net (8.9.1/8.9.1) with ESMTP id SAA20162; Fri, 13 Aug 1999 18:30:42 +0200 (CEST) (envelope-from ck@toplink.net) From: ck@toplink.net Date: Fri, 13 Aug 1999 18:30:41 +0200 (CEST) To: lambert@cswnet.com Cc: FreeBSD-ISP@FreeBSD.ORG Subject: Re: pwd_mkdb and system processes In-Reply-To: <199908131617.LAA98264@troi.csw.net> Message-ID: X-NCC-RegID: de.toplink X-Spammer-Kill-Ratio: 75% X-Jihad: Will hunt down all cases of Spam and Net abuse. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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