Why preallocate pmd in x86 32-bit PAE?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: William Lee Irwin III <wli@...>, Andi Kleen <ak@...>, Ingo Molnar <mingo@...>, Linus Torvalds <torvalds@...>, Thomas Gleixner <tglx@...>, Nick Piggin <nickpiggin@...>, H. Peter Anvin <hpa@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>
Date: Thursday, November 15, 2007 - 5:57 pm

I'm looking at unifying asm-x86/pgalloc*.h, and so I'm trying to make
things as similar as possible between 32 and 64-bit.

Once difference is that 64-bit incrementally allocates all levels of the
pagetable, whereas 32-bit PAE preallocates the 4 pmds when it allocates
the pgd.  What's the rationale for this?  What pitfalls would there be
in making them incrementally allocated?

Preallocation makes sense from the perspective that they will all be
allocated almost immediately in a typical process.  But it is a somewhat
arbitrary difference from 64-bit, and since 64-bit can't reasonably
preallocate any pagetable levels, it seems sensible to change 32-bit to
match.

Thanks,
    J
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Why preallocate pmd in x86 32-bit PAE?, Jeremy Fitzhardinge, (Thu Nov 15, 5:57 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, Linus Torvalds, (Thu Nov 15, 6:12 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, Jeremy Fitzhardinge, (Fri Nov 16, 1:12 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, H. Peter Anvin, (Fri Nov 16, 1:45 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, Linus Torvalds, (Fri Nov 16, 1:35 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, Jeremy Fitzhardinge, (Fri Nov 16, 3:14 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, Linus Torvalds, (Fri Nov 16, 3:22 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, Jeremy Fitzhardinge, (Fri Nov 16, 3:43 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, Jeremy Fitzhardinge, (Fri Nov 16, 2:30 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, H. Peter Anvin, (Thu Nov 15, 6:42 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, William Lee Irwin III, (Thu Nov 15, 8:40 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, H. Peter Anvin, (Thu Nov 15, 8:41 pm)
Re: Why preallocate pmd in x86 32-bit PAE?, Andi Kleen, (Fri Nov 16, 7:16 am)
Re: Why preallocate pmd in x86 32-bit PAE?, H. Peter Anvin, (Fri Nov 16, 11:45 am)
Re: Why preallocate pmd in x86 32-bit PAE?, Andi Kleen, (Fri Nov 16, 11:53 am)
Re: Why preallocate pmd in x86 32-bit PAE?, H. Peter Anvin, (Fri Nov 16, 12:10 pm)