Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2004 12:37:48 +0100
From:      des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
To:        Uwe Doering <gemini@geminix.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Where are defaults for kernel variables?
Message-ID:  <xzp65f5o7lf.fsf@dwp.des.no>
In-Reply-To: <400E3628.8050601@geminix.org> (Uwe Doering's message of "Wed, 21 Jan 2004 09:19:52 %2B0100")
References:  <20040120132533.GA24163@neuron.tuke.sk> <400E3628.8050601@geminix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Uwe Doering <gemini@geminix.org> writes:
> Jozef Babjak wrote:
> > options PMAP_SHPGPERPROC=3D201
> > or options KVA_PAGES=3D260
> > but are these default values?
> No, these are usually not the defaults, just examples.  I haven't
> found a complete list so far.  I could be wrong, but I think part of
> the problem is that the majority of kernel developers doesn't feel
> obligated to document the variables they introduced somewhere outside
> the kernel.

The defaults are generally computed at boot time as a function of
physical memory size.

KVA_PAGES is special, though, because it controls the size of the
kernel virtual address space, and you can't change it without also
changing the linker script and some loader settings.  This is
documented in the FAQ.

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp65f5o7lf.fsf>