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 3Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| -P | option | Select processors |
| ALL | operand | Report all processors |
| interval | operand | Seconds |
| count | operand | Number 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