Per-Core CPU Stats With mpstat
Report usage for every logical CPU over time.
01Command
$ mpstat -P ALL 1 502What it does
Average CPU graphs hide single-threaded bottlenecks, but mpstat shows each core's idle, iowait and system time separately. That detail is what tells you whether to parallelize or investigate I/O, and it is built for scripted sampling.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- mpstat.1.en.html manual page (Debian bookworm)Evidence: Documents mpstat and the -P ALL per-processor report.
Last verified: 2026-10-13 · Category: System & Settings
06Related solutions
vmstat gives a compact one-line-per-interval view of CPU usage, swap activity, and I/O waits that top doesn't summarize as clearly.
Use free -h to see used, free, and available memory plus swap in GB/MiB instead of raw kilobytes.
Launch an interactive process viewer with color meters for CPU cores, memory, and swap, plus search, sort, and kill controls.