Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

memory usage graph from munin

My CentOS server's munin graph shows high swap, but the amount of apps memory seems low. Does this still mean I need to upgrade my memory? What is causing all that swap? Is it because of the committed memory? What does it mean when swap_cache is high?

What is the best determining factor when I need to upgrade the memory?

share|improve this question

2 Answers 2

You need to upgrade memory if you are suffering from low performance and can determine that the cause is the system's working set exceeding the amount of physical RAM the system has. None of the parameters you are measuring are particularly useful for that purpose. What you want to look at is paging I/O, load average, and so on.

share|improve this answer
    
how to look at paging I/O? Also, how does load average by itself determine memory insufficiency? –  lamp_scaler Jun 14 '13 at 13:01
    
You can use tools like iostat and vmstat. Load average doesn't by itself determine memory insufficiency, but it can point to excessive disk I/O which can be caused by memory insufficiency. –  David Schwartz Sep 2 '13 at 23:59

Check the value called swappines (cat /proc/sys/vm/swappiness). By default, it is set to 60 which is quite generous. This means swapping will happen even if there are enough physical memory available.

You can try different values before setting one. Try 25 or even 10.

share|improve this answer

Your Answer

 
discard

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.