From owner-freebsd-bugs Thu Nov 12 17:09:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA25528 for freebsd-bugs-outgoing; Thu, 12 Nov 1998 17:09:58 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA25520 for ; Thu, 12 Nov 1998 17:09:57 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA07737; Thu, 12 Nov 1998 17:10:00 -0800 (PST) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA25314; Thu, 12 Nov 1998 17:06:39 -0800 (PST) (envelope-from nobody) Message-Id: <199811130106.RAA25314@hub.freebsd.org> Date: Thu, 12 Nov 1998 17:06:39 -0800 (PST) From: venzi@abac.com To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: misc/8672: adduser is very slow if the system has several thousand accounts Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8672 >Category: misc >Synopsis: adduser is very slow if the system has several thousand accounts >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 12 17:10:00 PST 1998 >Last-Modified: >Originator: Venzi >Organization: A+Net >Release: 2.2.6 >Environment: FreeBSD 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Thu Jun 11 13:53:04 PDT 1998 i386 >Description: The adduser command is very inefficient... while I appreciate that authentication is (theoretically) faster when using DB files instead of plain text like on sysV systems, it takes about 10 minutes to build a new account on a 15,000 user system. Now obviously the problem is that every time adduser builds the whole databases using pwd_mkdb instead of adding just one user entry (which would be really fast). 'pw' does the exact same thing. >How-To-Repeat: create 15,000 random users and try to add another one :) >Fix: I think it's about time somebody writes a binary useradd command which doesn't use pwd_mkdb I might eventually have to write one myself but it would be nice to know whether somebody is working on that. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message