commands

mpstat — Inspect CPU statistics

Report processor statistics over bounded intervals. Requires sysstat. Use a fresh private workspace; No production workload is required.

Formal Syntax & Structure

linux syntaxlinux
mpstat -P ALL 1 3

Parameters & Attributes

NameTypeDescription
-PoptionSelect processors
ALLoperandReport all processors
intervaloperandSeconds
countoperandNumber of reports

Return Value

exit status and output

Prints CPU activity statistics for selected processors and sample intervals. A successful sample does not establish that utilization is acceptable; inspect units, interval and CPU selection.

Working Example

Example Snippetlinux
mpstat -P ALL 1 3
Linux Reference