Vmstat

From wikinotes

Linux tool exposing resource usage over time.

Documentation

man vmstat https://man.archlinux.org/man/core/procps-ng/vmstat.8.en

Usage

vmstat 5  # refresh stats every 5s
procs:
  r: num processes waiting for cpu time
  b: num processes sleeping (waiting on I/O)

memory: # memory swapped, used by userland, used by kernel

io:     # blocks per second read/written

system:
  in: cpu interrupts per second
  cs: context switches per second

cpu: