Hello,
I've been searching to no end at how to tune at what interval (or size) kbcached will be flushed.
I had been chasing a potential memory leak until "sar -r", had revealed that all the "mysteriously used" memory was actually being taken up by the kernel data cache. It is chewing up all unused memory on the system slowly over time, which is a concern. Various sources have pointed me towards making modification in the /proc/sys/vm file-system although kernel documentation on the files within doesn't seem to really fit what I'm trying to do.
Any way to set the kbcached buffer to be flushed either at a specified time interval or once it hits a certain size would be a great help.
Thoughts anyone?
Thanks,
Justin Randall
On Fri, 2006-09-08 at 10:31 -0400, Justin Randall wrote:
I had been chasing a potential memory leak until “sar –r”, had revealed that all the “mysteriously used” memory was actually being taken up by the kernel data cache. It is chewing up all unused memory on the system slowly over time, which is a concern.
Why is this a concern? The larger a cache is, the more potential cache hits. Linux is pretty smart about managing caches and buffers, and will grow/shrink the cache depending on the amount of memory.
-- Daniel