Re: [QUICKLIST 0/4] Arch independent quicklists V2
From: Matt Mackall <hidden>
Date: 2007-03-13 20:34:31
Also in:
lkml
On Tue, Mar 13, 2007 at 01:17:00PM -0700, Jeremy Fitzhardinge wrote:
Matt Mackall wrote:quoted
On Tue, Mar 13, 2007 at 10:30:10AM -0700, Jeremy Fitzhardinge wrote:quoted
Nick Piggin wrote:quoted
However we still have to visit those to-be-unmapped parts of the page table, to find the pages and free them. So we still at least need to bring it into cache for the read... at which point, the store probably isn't a big burden.Why not try to find a place to stash a linklist pointer and link them all together? Saves the pulldown pagetable walk altogether.Because we'd need one link per mm that a page is mapped in?Can pagetable pages be shared between mms? (Kernel pmds in PAE excepted.)
Ahh, I think the issue is that we have to walk the page tables to drop the reference count of the _actual pages_ they point to. The page tables themselves could all be put on a list or two lists (one for PMDs, one for everything else), but that wouldn't really be a win over just walking the tree, especially given the extra list maintenance. Because the fan-out is large, the bulk of the work is bringing the last layer of the tree into cache to find all the pages in the address space. And there's really no way around that. -- Mathematics is the supreme nostalgia of our time. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>