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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- From: Jeremy Fitzhardinge <[email protected]>
- Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- References:
- Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- From: Zachary Amsden <[email protected]>
- Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- From: "H. Peter Anvin" <[email protected]>
- Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- From: Jeremy Fitzhardinge <[email protected]>
- Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- From: "H. Peter Anvin" <[email protected]>
- Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- From: Jeremy Fitzhardinge <[email protected]>
- Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- Prev by Date: [RFD] swsusp problem: Drivers allocate much memory during suspend (was: Re: 2.6.21-rc5: swsusp: Not enough free memory)
- Next by Date: Merge plans for RPC/RDMA? (Was: Re: [NFS] [PATCH 000 of 14] knfsd: Preparation for IPv6 support in NFS server.)
- Previous by thread: Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- Next by thread: Re: Crash while mapping memory in pagetable_init() (Was: Re: .config)
- Index(es):