Messages in this thread | | | Date | Wed, 21 Mar 2007 12:56:10 -0400 | From | Rik van Riel <> | Subject | Re: [RFC][PATCH] split file and anonymous page queues #3 |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |