From owner-freebsd-questions@FreeBSD.ORG Wed Mar 30 16:10:06 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CEDF1065672 for ; Wed, 30 Mar 2011 16:10:06 +0000 (UTC) (envelope-from alc@rice.edu) Received: from mh1.mail.rice.edu (mh1.mail.rice.edu [128.42.201.20]) by mx1.freebsd.org (Postfix) with ESMTP id 6BCB38FC20 for ; Wed, 30 Mar 2011 16:10:06 +0000 (UTC) Received: from mh1.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh1.mail.rice.edu (Postfix) with ESMTP id 042FA29012B; Wed, 30 Mar 2011 10:50:19 -0500 (CDT) X-Virus-Scanned: by amavis-2.6.4 at mh1.mail.rice.edu, auth channel Received: from mh1.mail.rice.edu ([127.0.0.1]) by mh1.mail.rice.edu (mh1.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id T6CBX1qZQxTJ; Wed, 30 Mar 2011 10:50:18 -0500 (CDT) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: alc) by mh1.mail.rice.edu (Postfix) with ESMTPSA id 7421D290125; Wed, 30 Mar 2011 10:50:18 -0500 (CDT) Message-ID: <4D935139.8080701@rice.edu> Date: Wed, 30 Mar 2011 10:50:17 -0500 From: Alan Cox User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20110201 Thunderbird/3.1.7 MIME-Version: 1.0 To: fuzhli References: In-Reply-To: Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Cc: alc@freebsd.org, questions@freebsd.org Subject: Re: about NKPT on amd64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2011 16:10:06 -0000 On 03/30/2011 01:47, fuzhli wrote: > Hi, Alan > I'm study the "Revision 187465" : "Prepare for a larger kernel virtual > address space". After read some relative source code, I have an > question about the macro NKPT on amd64: why 32 is enough for the > kernel page table pages? Do it means that the range (KERNBASE, > virtual_avail) should always less than 64MB( 32 * 2MB)? NKPT sets the size of the kernel page table during the earliest part of the kernel's initialization. After that, the size of the page table grows dynamically according to usage. Regards, Alan