Thread (15 messages) 15 messages, 4 authors, 2010-07-02

Re: [PATCH 0/2] Faster MMU lookups for Book3s v3

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2010-07-02 02:54:36
Also in: kvm

On Thu, 2010-07-01 at 16:42 +0300, Avi Kivity wrote:
quoted
So I think the only reasonable way to implement page ageing is to
unmap
quoted
pages. And that's slow, because it means we have to map them again
on
quoted
access. Bleks. Or we could look for the HTAB entry and only unmap
them
quoted
if the entry is moot.
   
I think it works out if you update struct page when you clear out an
HTAB.
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.

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help