* Re: how to page_cache.max_percent?
2001-08-21 23:39 how to page_cache.max_percent? firenza
@ 2001-08-21 23:22 ` Ben LaHaise
0 siblings, 0 replies; 2+ messages in thread
From: Ben LaHaise @ 2001-08-21 23:22 UTC (permalink / raw)
To: firenza; +Cc: linux-kernel
On Wed, 22 Aug 2001 firenza@gmx.net wrote:
> i don't care about the pagecache, i only care about having those
> 3GB in memory...
mlock()/mlockall().
> 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?
Disable all swap. (ie swapoff -a)
-ben
^ permalink raw reply [flat|nested] 2+ messages in thread
* how to page_cache.max_percent?
@ 2001-08-21 23:39 firenza
2001-08-21 23:22 ` Ben LaHaise
0 siblings, 1 reply; 2+ messages in thread
From: firenza @ 2001-08-21 23:39 UTC (permalink / raw)
To: linux-kernel
hi,
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?
cheers,
-iowa
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-21 23:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-21 23:39 how to page_cache.max_percent? firenza
2001-08-21 23:22 ` Ben LaHaise
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).