John_White at dell.com wrote:
> Does anybody know if there is a way of telling a system not to use more than
> n% of ram to cache the filesystem ?
>> Also, does anybody know of a way to get the cache to be fulshed to disk (a
> la sync)
> and also have the kernel free the associated memory ?.
first i absolutely must ask why do you want to know? many people think
that the cache is taking memory (it only takes memory if it's free),
that the cache causes swapping (it doesn't, the file cache gets flushed
first, then programs get swapped). akaik most of the cache is read
cache - writes get flushed pretty quick (and mount options can make them
"immediate" if required - i think).
look at the files in /proc/sys/vm and read either the docs in
/usr/src/linux/Documentation or poke about in the source for the proc
fs. and be careful.
kevin at suberic.net Nutrition Facts
fork()'ed on 37058400 Puns: 100% RDA (% good puns: 0)
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!