4

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.

knorv
  • 1,789
  • 6
  • 19
  • 29

1 Answers1

6

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.

cagenut
  • 4,808
  • 2
  • 23
  • 27