Re: [RFC][PATCH] split file and anonymous page queues #3
From: Rik van Riel
Date: Wed Mar 21 2007 - 13:49:51 EST
Chuck Ebbert wrote:
I think you're going to have to use refault rates. AIX 3.5 had
to add that. Something like:
if refault_rate(anonymous/mmap) > refault_rate(pagecache)
drop a pagecache page
else
drop either
How about the opposite?
If the page cache refault rate is way higher than the
anonymous refault rate, did you favor page cache?
Btw, just a higher fault rate will already make that
cache grow faster than the other, simply because it
will have more allocations than the other cache and
they both get shrunk to some degree...
You do have anonymous memory and mmapped executables in the same
queue, right?
Nope. It is very hard to see the difference between mmapped
executables and mmapped data from any structure linked off
the struct page...
--
All Rights Reversed
-
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/