Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 1999 02:27:40 GMT
From:      mike@sentex.net (Mike Tancsa)
To:        FreeBSD-ISP@freebsd.org
Subject:   Re: pwd_mkdb and system processes
Message-ID:  <37b4d14c.830045772@mail.sentex.net>
In-Reply-To: <MAIL199908132139.QAA80727@troi.csw.net>
References:  <00ca01bee5d2$ecf7aca0$fca3f9cf@megared.net.mx> <MAIL199908132139.QAA80727@troi.csw.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13 Aug 1999 17:41:39 -0400, in sentex.lists.freebsd.isp you wrote:

>man pwd_mkdb
>
>
>In <00ca01bee5d2$ecf7aca0$fca3f9cf@megared.net.mx>, on 08/13/99 
>   at 04:29 PM, "Alejandro Ramirez" <ales@megared.net.mx> said:
>
>>Hi,
>
>>How do you do it ???


You can also change the source code so that the default cache size is much
bigger. see
/usr/src/usr.sbin/pwd_mkdb
HASHINFO openinfo = {
        4096,           /* bsize */
        32,             /* ffactor */
        256,            /* nelem */
        2048 * 1024,    /* cachesize */
        NULL,           /* hash() */
        0               /* lorder */
};

Change it to something like

        2048 * 1024 * 5,    /* cachesize */

make depend
make
make install

We use *10 here...

	---Mike
Mike Tancsa  (mdtancsa@sentex.net)		
Sentex Communications Corp,   		
Waterloo, Ontario, Canada
"Who is this 'BSD', and why should we free him?"


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37b4d14c.830045772>