From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 7 10:09:38 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68F36106566C for ; Sat, 7 Nov 2009 10:09:38 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout0.freenet.de (mout0.freenet.de [IPv6:2001:748:100:40::2:2]) by mx1.freebsd.org (Postfix) with ESMTP id 0465E8FC12 for ; Sat, 7 Nov 2009 10:09:38 +0000 (UTC) Received: from [195.4.92.21] (helo=11.mx.freenet.de) by mout0.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.70 #1) id 1N6iEi-00010z-Kv; Sat, 07 Nov 2009 11:09:36 +0100 Received: from tb7ea.t.pppool.de ([89.55.183.234]:43989 helo=ernst.jennejohn.org) by 11.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #94) id 1N6iEi-0002JY-ER; Sat, 07 Nov 2009 11:09:36 +0100 Date: Sat, 7 Nov 2009 11:09:35 +0100 From: Gary Jennejohn To: Trever Message-ID: <20091107110935.0cb624b9@ernst.jennejohn.org> In-Reply-To: <761362.20406.qm@web113204.mail.gq1.yahoo.com> References: <761362.20406.qm@web113204.mail.gq1.yahoo.com> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.2; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Why is default value of NKPT so small? mfsroot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2009 10:09:38 -0000 On Fri, 6 Nov 2009 11:19:51 -0800 (PST) Trever wrote: > Does anyone know what the thinking is behind the default value of NKTP in /usr/src/sys/i386/include/pmap.h? > Seems to be based on the maximum amount of usable memory. If you define PAE then it's set to 240. For AMD64 it's set to 32. > Which leads me to two more questions: > - is it possible to change the NKTP value without recompiling the kernel? I think there isn't but I'll ask. No. > - is it possible to change the NKTP value without editing pmap.h (can I pass a variable into the kernel build process)? > Well, the header files all semm to have "#ifndef NKPT" in them. Try doing "NKPT=xxx;export NKPT" before compiling the kernel and see what happens. --- Gary Jennejohn