Interview Prep/Linux/Performance & the USE Method

How do you read vmstat output?

IntermediateProductionPerformance & the USE Method
Answer
procs ---memory--- --swap-- --io-- -system-- ------cpu-----
 r  b  swpd  free  si  so  bi  bo  in  cs us sy id wa st
  • r: runnable tasks; consistently above CPU count = CPU saturation.
  • b: blocked in uninterruptible sleep (I/O).
  • si/so: swap in/out per second; non-zero sustained = memory pressure.
  • bi/bo: blocks read/written.
  • cs: context switches; a sudden jump suggests lock contention or too many threads.
  • us sy id wa st: CPU breakdown.

Ignore the first line; it is the average since boot.

All Linux questions Roadmap: Linux

More on Performance & the USE Method