Subject: Re: pwd_mkdb
To: Takahiro Kambe <>
From: Jukka Marin <>
List: current-users
Date: 02/23/1999 18:07:18
On Tue, Feb 23, 1999 at 12:10:31AM +0900, Takahiro Kambe wrote:
> > There's this NetBSD box with almost 6000 users.  A robot manipulates the
> > account information several times every hour, which causes pwd_mkdb to
> > recreate the user database.  This is _slow_.  Currently, the database is
> > rebuilt for every modification separately and as one rebuild takes almost
> > a minute....  This is on NetBSD 1.3.2.
> One idea is incorporating "-u" option for pwd_mkdb(8) from FreeBSD, you
> can only update the record for the specified user with "-u" option.

How difficult would it be to implement this option?

It's only matter of time when this particular system will have too many
accounts for the current pwd_mkdb to work fast enough (it seems to take
a minute or so to regenerate the database now - the job seems to be I/O
bound as the CPU is idling).