From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965085AbXDMUmy (ORCPT ); Fri, 13 Apr 2007 16:42:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932189AbXDMUmy (ORCPT ); Fri, 13 Apr 2007 16:42:54 -0400 Received: from terminus.zytor.com ([192.83.249.54]:59568 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932185AbXDMUmx (ORCPT ); Fri, 13 Apr 2007 16:42:53 -0400 Message-ID: <461FEB46.3000702@zytor.com> Date: Fri, 13 Apr 2007 13:42:46 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Jeremy Fitzhardinge CC: Zachary Amsden , Chris Wright , Andi Kleen , "Eric W. Biederman" , Linus Torvalds , Linux Kernel Mailing List Subject: Re: Crash while mapping memory in pagetable_init() (Was: Re: .config) References: <20070413174913.GA25234@ezr.goop.org> <20070413183841.GP10574@sequoia.sous-sol.org> <20070413190552.GQ10574@sequoia.sous-sol.org> <461FD97B.1010203@goop.org> <461FE36D.1050205@vmware.com> <461FE77A.6020307@zytor.com> <461FE7C7.7050204@goop.org> <461FE8EC.3090304@zytor.com> <461FE9D1.1000803@goop.org> In-Reply-To: <461FE9D1.1000803@goop.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Jeremy Fitzhardinge wrote: > H. Peter Anvin wrote: >> I suggest, for clarity and to minimize bloat: > > I think it would save a page, at most. But OK. (Also, if you're > running !PAE, these pages will actually become part of the init_mm > pagetable, so there's no memory wastage at all.) Even with PSE? However, the main reason I wanted it done that way is to avoid cargo cult programming; this makes it much clearer where the numbers actually come from. >> #ifdef CONFIG_X86_PAE >> # define PAGE_TABLE_SIZE ((2048+4)*4096) >> #else >> # define PAGE_TABLE_SIZE ((1024+1)*4096) > > 1024 should be enough; the pgd is still swapper_pg_dir, and there are no > pmds. Check. -hpa