Portal Home > Knowledgebase > Articles Database > Edit Linux Cache
Edit Linux Cache
Posted by elfz, 07-05-2009, 04:25 PM |
Eventually, the cache reaches 2600000 and i would like to keep the cache smaller so that the free RAM is always steady around 500k for when a lot of traffic comes through.
is there a way to clear the old cache out faster?
|
Posted by relichost, 07-06-2009, 02:47 AM |
Hi
I dont think there is any way to do that, also Linux will cache things regardless of memory size, for instance I have seen a server with 16 GB, have no free memory but 12 GB in cache.
Best thing I can think of is to limit the amount of memory that mysql / apache can use.
Also does your server not function well at peak loads ?
Thanks
|
Posted by ZenMonk, 07-06-2009, 04:15 AM |
Its the os that has complete control over memory and cannot be configured or preset.
|
Posted by ZenMonk, 07-06-2009, 04:46 AM |
In 2.6 kernels there are few sysctl parameters that would let you tweak the vm. Check out min_free_kbytes and swappiness parameters.
http://people.redhat.com/dduval/kern...ee_kbytes.html
|
Posted by dexxtreme, 07-06-2009, 08:28 PM |
If there is a situation where the server suddenly needs to pull a lot of new data into memory, then it should start dumping unneeded (i.e., old) cache data automatically. This is automatic, there is nothing you need to do. Of course, there are sysctl settings that can be adjusted, but for most users that is not a major concern.
|
Add to Favourites Print this Article
Also Read