From owner-freebsd-hackers Sun Mar 3 19:56:50 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA00448 for hackers-outgoing; Sun, 3 Mar 1996 19:56:50 -0800 (PST) Received: from freebsd.netcom.com ([198.211.79.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA00442 for ; Sun, 3 Mar 1996 19:56:47 -0800 (PST) Received: by freebsd.netcom.com (8.6.12/SMI-4.1) id WAA00183; Sun, 3 Mar 1996 22:00:46 -0600 From: bugs@freebsd.netcom.com (Mark Hittinger) Message-Id: <199603040400.WAA00183@freebsd.netcom.com> Subject: re: pwd_mkdb - really slow :( To: hackers@freebsd.org Date: Sun, 3 Mar 1996 22:00:45 -0600 (CST) X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk > From: Rashid Karimov > I have quite afew systems here with ~10.00 accounts > on ea ... and pwd_mkdb is _very slow now ... Takes > 2+ minutes to rebuild the damn databases every time. > I had some systems with over 15,000 accounts in the databases and the performance was terrible! :-) Guido van Rooij wrote some patches for pwd_mkdb that do "update-in-place" of the password database. These patches made a tremendous difference for me. If the record doesn't already exist, it is added without a rebuild of the entire set of files. Perhaps Guido can post the latest version of his adjustments. The process of changing a password on vanilla FreeBSD is an amazing one! We modify a record in /etc/master.passwd, we then build pwd.db, spwd.db, and passwd! We have a lot of redundant records laying around. Any site that has a large number of users or is considering having a large number of users should search the archives for Guido's patches. Regards, Mark Hittinger Netcom/Dallas bugs@freebsd.netcom.com