Skip to contentSkip to conversation

4level page tables for Linux

DISCUSSION Albert Cahalan 2 participants 3 messages Oct 13, 2004 – Oct 14, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines

after you add the 4level, locking will become necessary for the pgd, but it's still not needed for the pml4.

I'm not very excited about changing the naming, of the pgd/pmd/pte so I like to keep it like it is now.

peraphs we could consider pgd4 instead of pml4. What does "pml" stands for?

The "pmd" one is certainly nonsense now.
It means "page middle directory".

Numbers for all of them would be easy to deal with. Like this: pd1, pd2, pd3, pd4...

I'd number going toward the page, because that's the order in which these things get walked.

#1 lore raw
Quoted 2 lines · Albert Cahalan

I'd number going toward the page, because that's
the order in which these things get walked.

I'd call the pml level 1 too, but in the specs is level 4. So sticking the specs numbering is going to generate less confusion. Otherwise when we speak with somebody with hardware knowledge we say level 4 and he understand the specs's level 1. I recall it already happened to me once ;).

#2 lore raw
Quoted 8 lines · Andrea Arcangeli
Quoted 2 lines · Albert Cahalan

I'd number going toward the page, because that's
the order in which these things get walked.

I'd call the pml level 1 too, but in the specs is level 4. So sticking the specs numbering is going to generate less confusion. Otherwise when we speak with somebody with hardware knowledge we say level 4 and he understand the specs's level 1. I recall it already happened to me once ;).

While x86_64 will be by far the most popular arch, this is a matter for the generic code.

Perhaps "4" should be avoided: 0,1,2,3