PCP-MPSTAT(1) | General Commands Manual | PCP-MPSTAT(1) |
pcp-mpstat - Report CPU and interrupt related statistics.
pcp [pcp options] mpstat [ -A ] [ -u ] [ -V ] [ -I { SUM | CPU | SCPU | ALL } ] [ -P { cpu1,cpu2 [,...] | ON | ALL } ] [ -t interval ] [ -s count ] [ -a archive ] [ -? ]
pcp-mpstat command writes to standard output activities for each available processor, processor 0 being the first one. If no activity/option has been selected, then the default report is the CPU utilization (-u) report.
The interval parameter specifies the amount of time in seconds between each report. The default is one second. The value of count parameter determines the number of samples to be displayed. The default is continous.
When invoked via the pcp(1) command, the -h/--host, -a/--archive, -O/--origin, -s/--samples, -t/--interval, -Z/--timezone and several other pcp options become indirectly available; refer to PCPIntro(1) for a complete description of these options.
The additional command line options available for pcp-mpstat are:
CPU
intr/s
With the CPU keyword, the number of each individual interrupt received per second by the CPU or CPUs is displayed. Interrupts are those under the kernel.percpu.interrupts metric tree.
With the SCPU keyword, the number of each individual software interrupt received per second by the CPU or CPUs is displayed. Software interrupts are those under the kernel.percpu.softirqs tree
The ALL keyword is equivalent to specifying all the keywords above and therefore all the interrupts statistics are displayed.
The ON keyword indicates that statistics are to be reported for every online processor, whereas the ALL keyword indicates that statistics are to be reported for all processors.
CPU
%usr
%nice
%sys
%iowait
%irq
%soft
%steal
%guest
%gnice
%idle
Note: On SMP machines a processor that does not have any activity at all is a disabled (offline) processor.
pcp-mpstat -t 2 -s 5
pcp mpstat -P ALL -t 2 -s 5
pcp-mpstat is inspired by the mpstat(1) command and aims to be command line and output compatible with it.
TZ and LC_TIME environment variables can be used to override the default date display format for pcp-mpstat.
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).
For environment variables affecting PCP tools, see pmGetOptions(3).
PCPIntro(1), pcp(1), mpstat(1), pmParseInterval(3), pmTraversePMNS(3) and environ(7).
PCP | Performance Co-Pilot |