From owner-freebsd-hackers Wed Sep 1 11:39:56 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dt010nb9.san.rr.com (dt010nb9.san.rr.com [204.210.12.185]) by hub.freebsd.org (Postfix) with ESMTP id C9E8215ABA for ; Wed, 1 Sep 1999 11:39:49 -0700 (PDT) (envelope-from Doug@gorean.org) Received: from localhost (doug@localhost) by dt010nb9.san.rr.com (8.9.3/8.8.8) with ESMTP id LAA31315; Wed, 1 Sep 1999 11:38:50 -0700 (PDT) (envelope-from Doug@gorean.org) Date: Wed, 1 Sep 1999 11:38:49 -0700 (PDT) From: Doug X-Sender: doug@dt010nb9.san.rr.com To: Mike Smith Cc: Jaye Mathisen , 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 On Wed, 1 Sep 1999, Mike Smith wrote: > 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. Agreed on all counts. I'd also like to add a vote for this since we have multiple machines with 16k user password files. I had intended to start looking at the code and offer a solution instead of a me too, but it sounds like others are already on the right track, so I'll be glad to test something if someone comes up with patches. Doug -- "My mama told me, my mama said, 'don't cry.' She said, 'you're too young a man to have as many women you got.' I looked at my mother dear and didn't even crack a smile. I said, 'If women kill me, I don't mind dyin!'" - John Belushi as "Joliet" Jake Blues, "I Don't Know" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message