vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity


  • Display the output every second: vmstat 1
  • Display the output every second with 10 updates: vmstat 1 10
  • Display timestamp to the output: vmstat -t 1
  • Display a table of various event counters and memory statistics: vmstat -s
  • Capture vmstat output for one minute: vmstat 1 60 | tee /tmp/vmstat.out


  1. trashing => si = so
  2. for running process (r) => compare with logical CPUs, (r)> (b) if not then CPU bottleneck
  3. for blocked process (b) => ps -eLo state,pid,cmd | grep ^D