From owner-freebsd-stable Fri Jan 4 12:27:51 2002 Delivered-To: freebsd-stable@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 1F4A237B426 for ; Fri, 4 Jan 2002 12:27:34 -0800 (PST) Received: from strontium.shef.vinosystems.com ([192.168.91.36] ident=root) by scientia.demon.co.uk with esmtp (Exim 3.30 #1) id 16Maw8-000AFO-00; Fri, 04 Jan 2002 20:27:32 +0000 Received: (from ben@localhost) by strontium.shef.vinosystems.com (8.11.6/8.11.6) id g04KRWP64725; Fri, 4 Jan 2002 20:27:32 GMT (envelope-from ben@FreeBSD.org) X-Authentication-Warning: strontium.shef.vinosystems.com: ben set sender to ben@FreeBSD.org using -f Date: Fri, 4 Jan 2002 20:27:32 +0000 From: Ben Smithurst To: Chris Tracy Cc: stable@freebsd.org Subject: Re: GENERIC kernel configuration file Message-ID: <20020104202732.J67639@strontium.shef.vinosystems.com> References: <20020104151508.B93280-100000@zaxxon.telerama.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="X1xGqyAVbSpAWs5A" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020104151508.B93280-100000@zaxxon.telerama.com> X-PGP-Key: http://www.smithurst.org/ben/pgp-key.txt Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --X1xGqyAVbSpAWs5A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Chris Tracy wrote: > Today I installed the latest stable snapshot (4.4-20020103-STABLE) and > when I was configuring my kernel from the GENERIC configuration file, > I noticed that 'maxusers' was set to '0'. >=20 > Is this simply a typo, or does it mean something else? It makes the kernel pick a reasonable default value based on the amount of main memory. From sys/kern/subr_param.c: if ((maxusers =3D MAXUSERS) =3D=3D 0) { maxusers =3D physpages / (1024 * 1024 / PAGE_SIZE); if (maxusers < 32) maxusers =3D 32; if (maxusers > 512) maxusers =3D 512; } This sets maxusers to the number of megabytes of main memory in the machine, if the kernel config specifies it as zero, but limits it to the range 32..512. --=20 Ben Smithurst / ben@FreeBSD.org FreeBSD: The Power To Serve http://www.FreeBSD.org/ --X1xGqyAVbSpAWs5A Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8NhAzbPzJ+yzvRCwRAndvAJ9G2kBnqk0j1VrXI+bD/om++juvjACdFsgw A/6Hb4BPZfa84AZanW07j/M= =DrTr -----END PGP SIGNATURE----- --X1xGqyAVbSpAWs5A-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message