Re: [PATCH 01/03] Unmapped: Implement two LRU:s

Christoph Lameter
2006-03-10T19:16:04Z

On Fri, 10 Mar 2006, Magnus Damm wrote:

> Use separate LRU:s for mapped and unmapped pages.
>
> This patch creates two instances of "struct lru" per zone, both protected by
> zone->lru_lock. A new bit in page->flags named PG_mapped is used to determine
> which LRU the page belongs to. The rmap code is changed to move pages to the
> mapped LRU, while the vmscan code moves pages back to the unmapped LRU when
> needed. Pages moved to the mapped LRU are added to the inactive list, while
> pages moved back to the unmapped LRU are added to the active list.

The swapper moves pages to the unmapped list? So the mapped LRU
lists contains unmapped pages? That would get rid of the benefit that I
saw from this scheme. Pretty inconsistent.