Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Nov 1998 17:06:39 -0800 (PST)
From:      venzi@abac.com
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   misc/8672: adduser is very slow if the system has several thousand accounts
Message-ID:  <199811130106.RAA25314@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811130106.RAA25314>