Date: Fri, 4 Jan 2002 20:27:32 +0000 From: Ben Smithurst <ben@FreeBSD.org> To: Chris Tracy <freebsd-stable-for-chris@db.lm.com> Cc: stable@freebsd.org Subject: Re: GENERIC kernel configuration file Message-ID: <20020104202732.J67639@strontium.shef.vinosystems.com> In-Reply-To: <20020104151508.B93280-100000@zaxxon.telerama.com> References: <20020104151508.B93280-100000@zaxxon.telerama.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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'.
>
> 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 = MAXUSERS) == 0) {
maxusers = physpages / (1024 * 1024 / PAGE_SIZE);
if (maxusers < 32)
maxusers = 32;
if (maxusers > 512)
maxusers = 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.
--
Ben Smithurst / ben@FreeBSD.org FreeBSD: The Power To Serve
http://www.FreeBSD.org/
[-- Attachment #2 --]
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020104202732.J67639>
