Vmstat

From wikinotes
Revision as of 19:25, 17 September 2022 by Will (talk | contribs) (Created page with "Linux tool exposing resource usage over time. = Documentation = <blockquote> {| class="wikitable" |- | <code>man vmstat</code> || https://man.archlinux.org/man/core/procps-ng/vmstat.8.en |- |} </blockquote><!-- Documentation --> = Usage = <blockquote> <syntaxhighlight lang="bash"> vmstat 5 # refresh stats every 5s </syntaxhighlight> <syntaxhighlight lang="yaml"> procs: r: num processes waiting for cpu time b: num processes sleeping (waiting on I/O) memory: # mem...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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: