Date: Thu, 11 May 2000 02:15:08 +0400 (MSD) From: Vsevolod Semenov <s@gw2.mtelecom.ru> To: Andrzej Bialecki <abial@webgiro.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: what is /etc/[s]pwd.db stay for? Message-ID: <Pine.BSF.4.01.10005110148020.22893-100000@gw2> In-Reply-To: <Pine.BSF.4.20.0005092157190.99125-100000@mx.webgiro.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 May 2000, Andrzej Bialecki wrote: > On Tue, 9 May 2000, Vsevolod Semenov wrote: > > > > > pw showuser shows user tens times slowly then > > grep user /etc/[master.]passwd > > DB files provide you with already parsed and indexed information, more > suitable for use in API. I thought it is. before was asked for seting up 1000000 users site. > grep can't perform many operations from getpw* family... Example with grep is only demonstrate that search in text file more quick then db file with db rutines. > also, the library routines getpw* would have to parse > /etc/passwd each time you call them... of couse. It is not problem. > Try to increase hashsize when using pw and related utilities. It makes a > real difference in speed for large user databases. how much hash size need 1000000 users db? > > pwd_mkdb can't create [s]pwd.db files for 1000000 users. > I believe we still have a limit of 65535 user ids in many places in the > system, what places? I found only pwd_mkdb. > although uid_t is in fact u_int32_t. Or...? > > what reason to use db stuff in libc/gen/getpwent.c? > Speed and efficiency :-) db rutines is only problem to seting up 1000000 users site. i'll replace getpwent.c in freebsd from linux. :). > Andrzej Bialecki > > // <abial@webgiro.com> WebGiro AB, Sweden (http://www.webgiro.com) > // ------------------------------------------------------------------- > // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- > // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.01.10005110148020.22893-100000>