From owner-freebsd-hackers Wed Sep 1 1: 0:18 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dingo.cdrom.com (castles538.castles.com [208.214.165.102]) by hub.freebsd.org (Postfix) with ESMTP id 4DB071540B for ; Wed, 1 Sep 1999 01:00:10 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id AAA03419; Wed, 1 Sep 1999 00:53:15 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199909010753.AAA03419@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Jaye Mathisen Cc: hackers@freebsd.org Subject: Re: Minor patches to pwd_mkdb In-reply-to: Your message of "Tue, 31 Aug 1999 18:29:58 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 01 Sep 1999 00:53:14 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > 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