Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

closed as off-topic by Ward, kasperd, mdpc, Andrew Schulman, Jenny D Apr 19 '15 at 9:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Ward, kasperd, mdpc, Andrew Schulman, Jenny D
If this question can be reworded to fit the rules in the help center, please edit the question.

Free memory is a waste. Why do you want it free? – Kyle Smith Apr 7 '12 at 0:23

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.

share|improve this answer

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.

share|improve this answer
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 9 '12 at 19:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.