Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Sep 1999 01:05:40 -0700 (PDT)
From:      Jaye Mathisen <mrcpu@internetcds.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Minor patches to pwd_mkdb 
Message-ID:  <Pine.BSF.4.10.9909010103080.358-100000@schizo.cdsnet.net>
In-Reply-To: <199909010753.AAA03419@dingo.cdrom.com>

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

Why is it OK for top to do it, but not pwd_mkdb?  I probably end up
updating my OS faster than I add users to my password file...

Tweak the cache to 32MB's, and never touch it again, regardless of how big
your passwd file is...

On Wed, 1 Sep 1999, Mike Smith wrote:

> > 
> > 
> > Got tired of the dinky cachesize for pwd_mkdb, especially since vipw
> > doesn't take advantage of the -u or -s options.
> > 
> > So here a couple patches that make the cachesize tweakable from make.conf.
> > 
> > Dramatically helps on those 10-15k line password files.
> > 
> > I would appreciate it if somebody would at least consider committing
> > this...
> 
> No.  Try for a patch that guesses how big the password file is (try 
> using stat()) and tunes the cache dynamically.
> 
> Hardcoding this at _build_ time is not any sort of "right" solution.
> 
> 
> -- 
> \\  The mind's the standard       \\  Mike Smith
> \\  of the man.                   \\  msmith@freebsd.org
> \\    -- Joseph Merrick           \\  msmith@cdrom.com
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9909010103080.358-100000>