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:[EMAIL PROTECTED]

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

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to