From owner-freebsd-hackers Wed Sep 1 0:53:17 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 2410C14D07 for ; Wed, 1 Sep 1999 00:53:15 -0700 (PDT) (envelope-from mrcpu@internetcds.com) Received: (qmail 28255 invoked from network); 1 Sep 1999 07:53:05 -0000 Received: from schizo.cdsnet.net (204.118.244.32) by mail.cdsnet.net with SMTP; 1 Sep 1999 07:53:05 -0000 Date: Wed, 1 Sep 1999 00:52:55 -0700 (PDT) From: Jaye Mathisen X-Sender: mrcpu@schizo.cdsnet.net To: Sheldon Hearn Cc: hackers@FreeBSD.ORG Subject: Re: Minor patches to pwd_mkdb In-Reply-To: <9565.936171675@axl.noc.iafrica.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 Well, in my case, changing from 2MB to 8MB's knocked the rebuild time from 2:05 to 36 seconds, for appx 15000 records. not enough memory to make a real difference that I can see, but it kept the disk tps meter pegged at 118-120. On Wed, 1 Sep 1999, Sheldon Hearn wrote: > > > On Tue, 31 Aug 1999 18:29:58 MST, Jaye Mathisen wrote: > > > Got tired of the dinky cachesize for pwd_mkdb, especially since vipw > > doesn't take advantage of the -u or -s options. > > Vipw doesn't take advantage of the -u option? I must have read through > the code too fast. > > > Dramatically helps on those 10-15k line password files. > > What impact does your patch have on a loaded machine? > > Since vipw already knows how many lines there are in the file, surely we > could get it to approximate an ideal cache size and pass it as the > argument to pwd_mkdb's -s option? > > Ciao, > Sheldon. > > > 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