Date: 10 Jan 1998 17:54:52 +0100 From: Wolfram Schneider <wosch@cs.tu-berlin.de> To: Jaye Mathisen <mrcpu@cdsnet.net> Cc: hackers@FreeBSD.ORG Subject: Re: How are people handling lots of accounts? Message-ID: <p1ioh1k5kwy.fsf@panke.panke.de> In-Reply-To: Jaye Mathisen's message of Wed, 7 Jan 1998 18:17:46 -0800 (PST) References: <Pine.NEB.3.95.980107181608.25611Q-100000@mail.cdsnet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Jaye Mathisen <mrcpu@cdsnet.net> 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 <wosch@freebsd.org> http://www.freebsd.org/~wosch/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p1ioh1k5kwy.fsf>