[lkml]   [2001]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjecthow to page_cache.max_percent?


the following scenario:

* kernel 2.4.9 smp
* machine with 6GB physical memory
* multiple processes are relying on a 3GB large data structure
to be in memory (speed goes down the drain, when some pages
are swapped out)
* not every page in this 3GB data structure is used all the time
* this data structure is loaded from files, so initially
i end up having 3GB of used cache (visible in vmstat)

now i start another memory intense process and discover via vmstat
the following sensible behaviour: pagecache shrinks slowly and
memory from the 3GB structure is swapped out at a faster rate...

i don't care about the pagecache, i only care about having those
3GB in memory...

is there a way to set a maximum size for the pagecache (afaik,
page_cache.max_percent is not used)?

or can i specify to always drain the pagecache before swapping out?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.032 / U:2.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site