lkml.org 
[lkml]   [2007]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2007-03-21 18:53    [W:0.058 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site