From owner-freebsd-questions@FreeBSD.ORG Tue Sep 30 18:03:31 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75AF416A4B3 for ; Tue, 30 Sep 2003 18:03:31 -0700 (PDT) Received: from avscan1.sentex.ca (avscan1.sentex.ca [199.212.134.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67A414400F for ; Tue, 30 Sep 2003 18:03:30 -0700 (PDT) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by avscan1.sentex.ca (8.12.9p2/8.12.9) with ESMTP id h9113SYN047225; Tue, 30 Sep 2003 21:03:28 -0400 (EDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.12.9p1/8.12.9) with ESMTP id h9113SdK084971; Tue, 30 Sep 2003 21:03:28 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <6.0.0.22.0.20030930210335.0739c0d8@209.112.4.2> X-Sender: mdtpop@209.112.4.2 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Tue, 30 Sep 2003 21:06:47 -0400 To: Greg Goodman , questions@freebsd.org From: Mike Tancsa In-Reply-To: <1476593828.20030930175150@fastserve.net> References: <1476593828.20030930175150@fastserve.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by Sentex Communications (avscan1/20021227) Subject: Re: Passwd command slow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2003 01:03:31 -0000 If you have a large password file, increase the cache size of pwd_mkdb cd /usr/src/usr.sbin/pwd_mkdb edit pwd_mkdb.c On line 74 you see HASHINFO openinfo = { 4096, /* bsize */ 32, /* ffactor */ 256, /* nelem */ 2048 * 1024, /* cachesize */ NULL, /* hash() */ 0 /* lorder */ }; do something like HASHINFO openinfo = { 4096, /* bsize */ 32, /* ffactor */ 256, /* nelem */ 32 * 2048 * 1024, /* cachesize */ NULL, /* hash() */ 0 /* lorder */ }; Then make depend make make install ---Mike At 08:51 PM 30/09/2003, Greg Goodman wrote: >Hello Everyone, > >I have a server running freebsd 4.8. >When you type the command "passwd" it hangs for more than 2 minutes >before it finally responds and prompts to change an existing users >password. > >Can anyone shed some light on this issue? > >Thanks for the help. > >-- >Best regards, > Greg Goodman mailto:admin@fastserve.net > > Chief Technical Officer > > Fastserve Network > http://www.fastserve.net > (213)673-4440 ext 204 > 548 S. Spring St. Suite 1100 > Los Angeles Ca. 90013 > The Net Never Sleeps And Neither Do We > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"