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

What are useful rule-of-thumbs with regard to interpreting non-zero vmstat "si/so" values? When are the values "okay" and when are they an indication of that the memory situation is problematic?

The question is of course hard to answer in the general case, but I'm looking for rule of thumbs rather than exact rules.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

My rule of thumb is "anything over zero is bad". Question becomes "how bad?". For webservers and database servers its very bad as the trip to disk is likely enough to have a very large performance impact on whatever transactions spilled over. In fact it will often cause a snowball effect until the kernel oom-kill's something.

For a fileserver or something that does asynchronous/batch workloads, as long as its not happening constantly you may be ok with it.

Remember the first line of output from vmstat is an average. Its only if you pass it a number of seconds to update on that you start to see if swapping is occurring now.

If you have sysstat setup a "sar -B" will show you historical trends.

share|improve this answer
add comment

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.