Date: Wed, 19 Apr 2000 09:17:05 +0200 (CEST) From: Konrad Heuer <kheuer@gwdu60.gwdg.de> To: Nguyen Manh Tho <manhtho@yahoo.com> Cc: freebsd-questions@FreeBSD.ORG, nmtho@dit.hcmut.edu.vn Subject: Re: How many users that FreeBSD server can manage ? Message-ID: <Pine.BSF.4.05.10004190858180.46146-100000@gwdu60.gwdg.de> In-Reply-To: <20000418144835.5831.qmail@web1611.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 18 Apr 2000, Nguyen Manh Tho wrote:
> I would like to know exactly how many users that the
> FreeBSD Server can manage in the system. As the answer
> from
> ttp://www.freebsd.org/cgi/getmsg.cgi?fetch=5108641+5110123+/usr/local/www/db/text/1999/freebsd-questions/19991226.freebsd-questions
>
> the maximum number is 65535, but from man adduser the
> maximum number is 32000. I do not know what 's the
> correct number.
/usr/src/usr.sbin/pwd_mkdb/pw_scan.c, line 87 (3.1-R):
if (id > USHRT_MAX) {
warnx("%s > max uid value (%d)", p, USHRT_MAX);
/*return (0);*/ /* THIS SHOULD NOT BE FATAL! */
}
pw->pw_uid = id;
/usr/src/usr.sbin/adduser/adduser.perl, line 58:
$uid_start = 1000; # new users get this uid
$uid_end = 32000; # max. uid
adduser seems to be coded very conservatively; the password database
allows USHRT_MAX (65536) users safely.
> I also would like to know with the large number of
> users, will the processing speed slow down ? If yes,
> how to speed up the system ?
Probably there will be some slowdown when accessing user information, but
the binary password file build by pwd_mkdb and used by the library
functions should help to keep time in limits.
Regards
Konrad Heuer Personal Bookmarks:
Gesellschaft für wissenschaftliche
Datenverarbeitung mbH GÖttingen http://www.freebsd.org
Am Faßberg, D-37077 GÖttingen http://www.daemonnews.org
Deutschland (Germany)
kheuer@gwdu60.gwdg.de
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.BSF.4.05.10004190858180.46146-100000>
