⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpstat.1

📁 linux下查看系统工具原码,如IOSTAT等
💻 1
字号:
.TH MPSTAT 1 "APRIL 2006" Linux "Linux User's Manual" -*- nroff -*-.SH NAMEmpstat \- Report processors related statistics..SH SYNOPSIS.B mpstat [ -P {.I cpu.B | ALL } ] [ -V ] [.I interval.B [.I count.B ] ].SH DESCRIPTIONThe.B mpstatcommand writes to standard output activities for each available processor,processor 0 being the first one.Global average activities among all processors are also reported.The.B mpstatcommand can be used both on SMP and UP machines, but in the latter, only globalaverage activities will be printed.The.I intervalparameter specifies the amount of time in seconds between each report.A value of 0 (or no parameters at all) indicates that processors statistics areto be reported for the time since system startup (boot).The.I countparameter can be specified in conjunction with the.I intervalparameter if this one is not set to zero. The value of.I countdetermines the number of reports generated at.I intervalseconds apart. If the.I intervalparameter is specified without the.I countparameter, the.B mpstatcommand generates reports continuously..SH REPORTSThe report generated by the.B mpstatcommand has the following format:.B CPU.RSProcessor number. The keyword.I allindicates that statistics are calculated as averages among allprocessors..RE.B %user.RSShow the percentage of CPU utilization that occurred whileexecuting at the user level (application)..RE.B %nice.RSShow the percentage of CPU utilization that occurred whileexecuting at the user level with nice priority..RE.B %sys.RSShow the percentage of CPU utilization that occurred whileexecuting at the system level (kernel). Note that this does notinclude time spent servicing interrupts or softirqs..RE.B %iowait.RSShow the percentage of time that the CPU or CPUs were idle during whichthe system had an outstanding disk I/O request..RE.B %irq.RSShow the percentage of time spent by the CPU or CPUs to service interrupts..RE.B %soft.RSShow the percentage of time spent by the CPU or CPUs to service softirqs.A softirq (software interrupt) is one of up to 32 enumerated softwareinterrupts which can run on multiple CPUs at once..RE.B %steal.RSShow the percentage of time spent in involuntary wait by the virtual CPUor CPUs while the hypervisor was servicing another virtual processor..RE.B %idle.RSShow the percentage of time that the CPU or CPUs were idle and the systemdid not have an outstanding disk I/O request..RE.B intr/s.RSShow the total number of interrupts received per second bythe CPU or CPUs..RE.RE.SH OPTIONS.IP "-P { cpu | ALL }"Indicate the processor number for which statistics are to be reported..I cpuis the processor number. Note that processor 0 is the first processor.The.I ALLkeyword indicates that statistics are to be reported for all processors..IP -VPrint version number then exit..SH ENVIRONMENTThe.B mpstatcommand takes into account the following environment variable:.IP S_TIME_FORMATIf this variable exists and its value is.BR ISOthen the current locale will be ignored when printing the date in the report header.The.B mpstatcommand will use the ISO 8601 format (YYYY-MM-DD) instead..SH EXAMPLES.B mpstat 2 5.RSDisplay five reports of global statistics among all processors at two second intervals..RE.B mpstat -P ALL 2 5.RSDisplay five reports of statistics for all processors at two second intervals..SH BUGS.I /procfilesystem must be mounted for the.B mpstatcommand to work.Only a few activities are supplied by the Linux kernel for each processor..SH FILES.IR /proccontains various files with system statistics..SH AUTHORSebastien Godard (sysstat <at> wanadoo.fr).SH SEE ALSO.BR sar (1),.BR sadc (8),.BR sa1 (8),.BR sa2 (8),.BR sadf (1),.BR iostat (1),.BR vmstat (8).I http://perso.wanadoo.fr/sebastien.godard/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -