-5

I'm running a Dell R310 with CentOS 5.8 x64 and all it's running is apache, svn, and postfix. It's using 99% of the RAM for caching but i'd like it to use a little less like maybe somewhere in the low 90s. How can I configure this?

EEAA
  • 108,414
  • 18
  • 172
  • 242
StackShin
  • 41
  • 1
  • 4

2 Answers2

7

You really don't want to do this. The kernel will immediately relinquish cache pages to other applications if and when they call for it.

It's a complete waste of money to not let the kernel use all your available RAM.

EEAA
  • 108,414
  • 18
  • 172
  • 242
5

Linux will use all the RAM that's available for caching, but when it needs it for anything else, it's just going to be freed from the cache, so you don't run out of memory because of the cache.

See this site for more info.

Sven
  • 97,248
  • 13
  • 177
  • 225
  • The reason I was asking was because our nagios was counting cached memory as "used" but the best solution to my issue is to get a better Nagios plugin. Thanks for taking the time to answer. – StackShin Apr 09 '12 at 19:01