[PATCH 0/2] Faster MMU lookups for Book3s v3
benh at kernel.crashing.org
Fri Jul 2 12:54:29 EST 2010
On Thu, 2010-07-01 at 16:42 +0300, Avi Kivity wrote:
> > So I think the only reasonable way to implement page ageing is to
> > pages. And that's slow, because it means we have to map them again
> > access. Bleks. Or we could look for the HTAB entry and only unmap
> > if the entry is moot.
> I think it works out if you update struct page when you clear out an
Hrm... going to struct page without going through the PTE might work out
indeed. We can get to the struct page from the RPN.
However, that means -reading- the hash entry we want to evict, and
that's a fairly expensive H-Call, especially if we ask phyp to
back-translate the real address into a logical (partition) address so we
can get to the struct page.... While we might be able to reconstitute
the virtual address from the hash content + bucket address. However,
from the vsid back to the page table might be tricky as well.
IE. Either way, it's not a simple process.
Now, eviction is rare, our MMU hash is generally big, so maybe the read
back with back translate to hit struct page might be the way to go here.
As for other kind of invalidations, we do have the PTE around when they
happen so we can go fetch the HW ref bit and update the PTE I suppose.
More information about the Linuxppc-dev