From owner-freebsd-hackers Wed Sep 1 1: 6:27 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail-01.cdsnet.net (mail-01.cdsnet.net [206.107.16.35]) by hub.freebsd.org (Postfix) with SMTP id B90ED15293 for ; Wed, 1 Sep 1999 01:06:21 -0700 (PDT) (envelope-from mrcpu@internetcds.com) Received: (qmail 2338 invoked from network); 1 Sep 1999 08:05:49 -0000 Received: from schizo.cdsnet.net (204.118.244.32) by mail.cdsnet.net with SMTP; 1 Sep 1999 08:05:49 -0000 Date: Wed, 1 Sep 1999 01:05:40 -0700 (PDT) From: Jaye Mathisen X-Sender: mrcpu@schizo.cdsnet.net To: Mike Smith Cc: hackers@FreeBSD.ORG Subject: Re: Minor patches to pwd_mkdb In-Reply-To: <199909010753.AAA03419@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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