Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Nov 2009 11:09:35 +0100
From:      Gary Jennejohn <gary.jennejohn@freenet.de>
To:        Trever <anti_spamsys@yahoo.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Why is default value of NKPT so small?  mfsroot
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 6 Nov 2009 11:19:51 -0800 (PST)
Trever <anti_spamsys@yahoo.com> 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



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