← 返回命令列表

Linux command

mpstat 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

mpstat 2

Example

mpstat 2 5

Example

mpstat -P 0 2 5

Example

mpstat -P ALL 2

Example

mpstat -I ALL 2

说明

mpstat reports processor-related statistics including CPU utilization, interrupts, and other per-processor metrics. It can display statistics for individual processors or aggregated across all.

参数

-A
Equivalent to -n -u -I ALL -P ALL
-I {SUM|CPU|SCPU|ALL}
Report interrupt statistics
-n
Report NUMA node placement statistics
-o JSON
Output in JSON format
-P {processor|ALL}
Indicate processor number or ALL
-u
Report CPU utilization (default)
-V
Print version number

FAQ

What is the mpstat command used for?

mpstat reports processor-related statistics including CPU utilization, interrupts, and other per-processor metrics. It can display statistics for individual processors or aggregated across all.

How do I run a basic mpstat example?

Run `mpstat 2` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -A do in mpstat?

Equivalent to -n -u -I ALL -P ALL