From owner-freebsd-questions Wed Apr 19 0:17:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from gwdu60.gwdg.de (gwdu60.gwdg.de [134.76.10.60]) by hub.freebsd.org (Postfix) with ESMTP id 9249837BC04 for ; Wed, 19 Apr 2000 00:17:08 -0700 (PDT) (envelope-from kheuer@gwdu60.gwdg.de) Received: from localhost (kheuer@localhost) by gwdu60.gwdg.de (8.9.2/8.9.2) with ESMTP id JAA46266; Wed, 19 Apr 2000 09:17:05 +0200 (CEST) (envelope-from kheuer@gwdu60.gwdg.de) Date: Wed, 19 Apr 2000 09:17:05 +0200 (CEST) From: Konrad Heuer To: Nguyen Manh Tho Cc: freebsd-questions@FreeBSD.ORG, nmtho@dit.hcmut.edu.vn Subject: Re: How many users that FreeBSD server can manage ? In-Reply-To: <20000418144835.5831.qmail@web1611.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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=3D5108641+5110123+/usr/local/w= ww/db/text/1999/freebsd-questions/19991226.freebsd-questions >=20 > 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 =3D id; /usr/src/usr.sbin/adduser/adduser.perl, line 58: $uid_start =3D 1000; # new users get this uid $uid_end =3D 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=FCr wissenschaftliche Datenverarbeitung mbH G=D6ttingen http://www.freebsd.org Am Fa=DFberg, D-37077 G=D6ttingen http://www.daemonnews.o= rg Deutschland (Germany) kheuer@gwdu60.gwdg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message