Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

so I have enabled query caching on my server but now from the 8 GB RAM there is almost non left! CPU is around 3% !

Now what happens when there is no more RAM left?

Will this just increase CPU load?


share|improve this question
You should confirm that you are using the right definition of free memory. The line that you generally care about is memory available for apps which is the free column on the -/+ buffers cache line. Nearly everyone I talk to doesn't understand how Linux utilizes memory. – Aaron Brown Jan 30 '12 at 16:38
up vote 4 down vote accepted

If no more RAM is left and the server still needs more memory, it will start swapping if not already started. When no more RAM or swap is available, the server will crash. Generally, the CPU load may increase as a result of the more required processing and degraded performance.

The best thing to do is trying to determine the reason for this. You need to check which processes are using more memory.

share|improve this answer
Additionally as hinted in another comment - memory isn't necessarily gone. It could be used for caching. The OS will reallocate memory from caching to active processes if it's needed. You WANT memory to be used. Why would you have 8 gig of memory that is wasted? Let the OS allocate buffers, caches, etc. as needed. If it's truly full there will be swapping and performance will DRAAAAAAG. – Bart Silverstrim Feb 2 '12 at 13:23

if a server starts swapping, it discards the oldest values or whatever there is policy regarding eviction of stored query cache..query caching is transient type of store.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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