The mpstat command provides detailed information about the CPU usage and performance statistics of a system. Which is typically used to monitor and analyze CPU utilization on multi-processor systems.
- About mpstat : Report processors related statistics
- It comes from “sysstat-9.0.4” package.
- Configuration Files:
- Path: /usr/bin/mpstat
Examples:
To report the processor stats
| $ mpstat 2 10 |
To report all processor stats
| $ mpstat -A 2 10 |
To get the processor number for which the stats are displaying
| $ mpstat -P 2 10 |
To report the CPU utilization stats
| $ mpstat -u 2 10 |
To get the version info
| $ mpstat -V |
Related Commands: sar, pidstat, iostat, vmstat