[lkml]   [2012]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] mm: implement WasActive page flag (for improving cleancache)
On 01/26/2012 09:43 PM, Dan Magenheimer wrote:

> Maybe the Active page bit could be overloaded with some minor
> rewriting? IOW, perhaps the Active bit could be ignored when
> the page is moved to the inactive LRU? (Confusing I know, but I am
> just brainstorming...)

The PG_referenced bit is already overloaded. We keep
the bit set when we move a page from the active to the
inactive list, so a page that was previously active
only needs to be referenced once to become active again.

The LRU bits (PG_lru, PG_active, etc) are needed to
figure out which LRU list the page is on. I don't
think we can overload those...

All rights reversed

 \ /
  Last update: 2012-01-27 04:37    [W:0.077 / U:0.152 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site