From owner-freebsd-hackers Sat Jan 10 09:28:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA20672 for hackers-outgoing; Sat, 10 Jan 1998 09:28:31 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA20582 for ; Sat, 10 Jan 1998 09:28:06 -0800 (PST) (envelope-from wosch@cs.tu-berlin.de) Received: from panke.panke.de (anonymous232.ppp.cs.tu-berlin.de [130.149.17.232]) by mail.cs.tu-berlin.de (8.8.6/8.8.8) with ESMTP id SAA17736; Sat, 10 Jan 1998 18:23:17 +0100 (MET) Received: (from wosch@localhost) by panke.panke.de (8.8.5/8.6.12) id RAA00816; Sat, 10 Jan 1998 17:54:54 +0100 (MET) To: Jaye Mathisen Cc: hackers@FreeBSD.ORG Subject: Re: How are people handling lots of accounts? References: From: Wolfram Schneider Date: 10 Jan 1998 17:54:52 +0100 In-Reply-To: Jaye Mathisen's message of Wed, 7 Jan 1998 18:17:46 -0800 (PST) Message-ID: Lines: 21 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk Jaye Mathisen writes: > With 50000 test accounts in master.passwd, it takes something like 10 > minutes to rebuild the .db files, completely preventing anybody else from > doing anything password related. > > Is there anything that can be done to speed this up? Changing the > password isn't too bad, only about 30 seconds, but adding takes forever. You can increase the database cache size from 4MB to a higher value in pwd_mkdb. See pwd_mkdb.c line 70. You must recompile pwd_mkdb for this change. Did you use the -u option? pwd_mkdb(8) -u username Only update the record for the specified user. Utilities that op- erate on a single user can use this option to avoid the overhead of rebuilding the entire database. -- Wolfram Schneider http://www.freebsd.org/~wosch/