From owner-freebsd-stable@FreeBSD.ORG Wed Jan 21 03:38:00 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03EAC16A4CE for ; Wed, 21 Jan 2004 03:38:00 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCC2D43D1F for ; Wed, 21 Jan 2004 03:37:58 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id A333E530C; Wed, 21 Jan 2004 12:37:57 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id B120F5308; Wed, 21 Jan 2004 12:37:48 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 48FC433C6A; Wed, 21 Jan 2004 12:37:48 +0100 (CET) To: Uwe Doering References: <20040120132533.GA24163@neuron.tuke.sk> <400E3628.8050601@geminix.org> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Wed, 21 Jan 2004 12:37:48 +0100 In-Reply-To: <400E3628.8050601@geminix.org> (Uwe Doering's message of "Wed, 21 Jan 2004 09:19:52 +0100") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on flood.des.no X-Spam-Level: ss X-Spam-Status: No, hits=2.6 required=5.0 tests=RCVD_IN_DYNABLOCK, RCVD_IN_SORBS autolearn=no version=2.61 cc: freebsd-stable@freebsd.org Subject: Re: Where are defaults for kernel variables? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2004 11:38:00 -0000 Uwe Doering 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