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.
More on Performance & the USE Method
What is the USE method?BeginnerMap the USE method to concrete Linux commands.IntermediateWhat is your "first 60 seconds" checklist on a slow server?IntermediateHow do you read `iostat -xz 1`?IntermediateWhat is sar and why install sysstat on every server?Beginnertop vs htop vs atop: when do you use each?Beginner