[parisc-linux] Proposal for altering our Page Table layouts
Carlos O'Donell
carlos at baldric.uwo.ca
Tue Apr 13 08:28:24 MDT 2004
Yes, Linux assumes a lot about the general layout of the pte tables.
> I think we can all agree that the results presented in the paper show
> (albeit indirectly) that IPT performs worse than a 2 level page table
> (FMPT in the paper).
Correct.
> However, as far as linux goes, the abstraction would actually cover a 1
> level page table as well ... and we could make a HPT directly emulate a
> 1-level table as long as we did the hash chain walking within the
> pgd_offset macro.
Yes.
> > If you can't do it (i.e. hide it completely within the parisc arch code) then
> > you need to be talking to Linus and convince him first, unless you are
> > advocating maintaining a large patch against machine independent code.
>
> However, realistically, I think a global HPT is incompatible with the
> way linux does VM and a local HPT (one per process) while possible, gets
> us into awful memory allocation problems to the extent that it's not
> worth bothering with. Therefore, I think a 2 level table will be
> optimal for us.
Yes, two-level / three-level systems are lower order allocations. The
difficult issue with HPT's is that we have no clear mechanism for
aliases, and shared mappings, possibly requiring more initial pgdir's or
some such hackery.
James, I meant only to hash out other possible alternatives, merely
being the pot stirrer or devils advocate :)
I think your idea is exactly what we need to cleanup that chunk of code,
possibly finding mistakes along the way. When you need help just holler.
c.
More information about the parisc-linux
mailing list