1 .TH MPSTAT 1 "SEPTEMBER 2015" Linux "Linux User's Manual" -*- nroff -*-
3 mpstat \- Report processors related statistics.
5 .B mpstat [ -A ] [ -u ] [ -V ] [ -I { SUM | CPU | SCPU | ALL } ] [ -P {
7 .B [,...] | ON | ALL } ] [
15 command writes to standard output activities for each available processor,
16 processor 0 being the first one.
17 Global average activities among all processors are also reported.
20 command can be used both on SMP and UP machines, but in the latter, only global
21 average activities will be printed. If no activity has been selected, then the
22 default report is the CPU utilization report.
26 parameter specifies the amount of time in seconds between each report.
27 A value of 0 (or no parameters at all) indicates that processors statistics are
28 to be reported for the time since system startup (boot).
31 parameter can be specified in conjunction with the
33 parameter if this one is not set to zero. The value of
35 determines the number of reports generated at
39 parameter is specified without the
43 command generates reports continuously.
47 This option is equivalent to specifying
48 .BR "-u -I ALL -P ALL"
49 .IP "-I { SUM | CPU | SCPU | ALL }"
50 Report interrupts statistics.
56 command reports the total number of interrupts per processor.
57 The following values are displayed:
62 Processor number. The keyword
64 indicates that statistics are calculated as averages among all
70 Show the total number of interrupts received per second by
76 keyword, the number of each individual interrupt received per
77 second by the CPU or CPUs is displayed. Interrupts are those listed
78 in /proc/interrupts file.
82 keyword, the number of each individual software interrupt received per
83 second by the CPU or CPUs is displayed. This option works only
84 with kernels 2.6.31 and later. Software interrupts are those listed
85 in /proc/softirqs file.
89 keyword is equivalent to specifying all the keywords above and
90 therefore all the interrupts statistics are displayed.
93 .IP "-P { cpu [,...] | ON | ALL }"
94 Indicate the processor number for which statistics are to be reported.
96 is the processor number. Note that processor 0 is the first processor.
99 keyword indicates that statistics are to be reported for every
100 online processor, whereas the
102 keyword indicates that statistics are to be reported for all processors.
104 Report CPU utilization. The following values are displayed:
109 Processor number. The keyword
111 indicates that statistics are calculated as averages among all
117 Show the percentage of CPU utilization that occurred while
118 executing at the user level (application).
123 Show the percentage of CPU utilization that occurred while
124 executing at the user level with nice priority.
129 Show the percentage of CPU utilization that occurred while
130 executing at the system level (kernel). Note that this does not
131 include time spent servicing hardware and software interrupts.
136 Show the percentage of time that the CPU or CPUs were idle during which
137 the system had an outstanding disk I/O request.
142 Show the percentage of time spent by the CPU or CPUs to service hardware
148 Show the percentage of time spent by the CPU or CPUs to service software
154 Show the percentage of time spent in involuntary wait by the virtual CPU
155 or CPUs while the hypervisor was servicing another virtual processor.
160 Show the percentage of time spent by the CPU or CPUs to run a virtual
166 Show the percentage of time spent by the CPU or CPUs to run a niced
172 Show the percentage of time that the CPU or CPUs were idle and the system
173 did not have an outstanding disk I/O request.
176 Note: On SMP machines a processor that does not have any activity at all
177 is a disabled (offline) processor.
180 Print version number then exit.
185 command takes into account the following environment variable:
188 When this variable is set, display statistics in color on the terminal.
191 If this variable exists and its value is
193 then the current locale will be ignored when printing the date in the report header.
196 command will use the ISO 8601 format (YYYY-MM-DD) instead.
201 Display five reports of global statistics among all processors at two second intervals.
206 Display five reports of statistics for all processors at two second intervals.
210 filesystem must be mounted for the
214 Only a few activities are given by the Linux kernel for each processor.
218 contains various files with system statistics.
221 Sebastien Godard (sysstat <at> orange.fr)
228 .I http://pagesperso-orange.fr/sebastien.godard/