Re: Page aging broken in 2.6

From: Manfred Spraul
Date: Fri Dec 26 2003 - 05:47:08 EST


Ben wrote:

I can imagine that an architecture with TLBs will usually evict
the entry from the TLB sooner or later and the accessed bit will end
up beeing set again. On PPC, that isn't the case, the entry can well
stay a loooong time in the hash and if not evicted, _PAGE_ACCESSED
will never be set again.

One risk for i386 are the huge tlbs that AMD uses (512 entries?) - hot pages might stay in the TLB forever.

Or does it snoop accesses
to the PTE to "catch" somebody clearing the bits ?

No. AMD K8 cpu partially snoop PDE/PTE accesses and ignore tlb flush instructions if they are certain that the tlb is valid, but I'm not aware that anyone snoops the complete tlb cache.

--
Manfred

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/