mpstat

From LinuxReviews
Jump to navigationJump to search
Utilities-system-monitor-4.png

mpstat is a very handy terminal utility for of showing per-processor or per-core system statistics such as user process load, system load, I/O statistics, IRQ activity and other useful information.

mpstat is a part of the sysstat utility suite. Your distribution will have it as a part of a package called sysstat, it will not be named mpstat.

Typical Use[edit]

Mpstat-p-all-1.jpg
mpstat -P ALL 1 will print per-CPU-thread statistics once every second.

mpstat is typically invoked with a time interval as an argument. For example,

mpstat 1

will show system statistics once every second. Those using NUMA systems can add -N ALL before the time interval to get per-node statistics. Adding -P ALL on any machine will list detailed per-CPU-core statistics:

mpstat -P ALL 1

will show you what each and every CPU core is doing each second.

See also[edit]

Similar tools: vmstat, iostat
manual page: mpstat.1


Add your comment
LinuxReviews welcomes all comments. If you do not want to be anonymous, register or log in. It is free.