Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 2000 20:50:57 +0200 (DST)
From:      "Ben C. O. Grimm" <Ben.Grimm@wirehub.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Recompiling pwd_mkdb
Message-ID:  <Pine.WNT.4.21.0005022046180.-436881@bigben.wirehub.net>

next in thread | raw e-mail | index | archive | help
Found this in a digest:

> > I have on FreeBSD machine about 33000 users and this number grow!
> > To add a new user takes about 1 minute.At this time the machine is
> > very busy :(
 
> You need to recompile pwd_mkdb with a higher cache value.
> See the comments in the source code.
 
Source (3.4-STABLE):

 HASHINFO openinfo = { 
         4096,           /* bsize */
         32,             /* ffactor */
         256,            /* nelem */
         2048 * 1024,    /* cachesize */
         NULL,           /* hash() */
         0               /* lorder */
 };

Is it a matter of just increasing the cache size to, say, 
4096 * 2048, leaving the other values as they are, or should all
values be increased in conjunction?

--
- Ben C. O. Grimm ----------------- Ben.Grimm@wirehub.net -
- Wirehub! Internet Engineering - http://www.wirehub.net/ -
- Wirehub! Backbone --- http://doema.wirehub.net/wirehub/ -
- Private Ponderings ------- http://libertas.wirehub.net/ -



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.WNT.4.21.0005022046180.-436881>