cpustat.1
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 217 行
1
217 行
.TH cpustat 1 .SH Namecpustat \- report CPU statistics.SH Syntax.B cpustat[\fB\-cfhsv\fR] [\fIinterval\fR [\fIcount\fR]] .SH DescriptionThe.PN cpustatcommand displays statistics about the use and state of each CPU in thesystem. .NXR "SMP" "reporting CPU statistics".NXR "cpustat command (SMP)".NXR "CPU" "getting state information about".NXR "CPU" "getting statistics about"The information about the CPU might change while the.PN cpustatcommand is running, so the information it gives is a snapshot taken at agiven time..PPNormally, the .PN cpustatcommand displays the statistics and state only once. You can cause thecommand to repeat the display by specifying a decimal number in the\fIinterval\fR argument. The.PN cpustatcommand repeats the display until it is interrupted, for example, by acontrol character entered at the terminal..PPYou can limit the number of times the.PN cpustatcommand repeats the display by specifying an integer in the \fIcount\fRargument. .PPThe.PN cpustatcommand provides an interactive interface that you can invoke using the.B \-foption..PPThe following describes the fields in the.PN cpustatdisplay:.PPStatistics: Information about how each CPU's time is being used.RS 5.TP 9us%Percent of time spent in user mode.TP 9ni%Percent of time spent in nice mode.TP 9sy%Percent of time spent in system mode.TP 9id%Percent of time spent idle .TP 9cswNumber of context switches.TP 9sysNumber of system calls.TP 9trapNumber of traps.TP 9intrNumber of device interrupts.TP 9ipiNumber of interprocessor interrupts.TP 9ttyinNumber of characters input to the terminal.TP 9ttyoutNumber of characters output to the terminal .RE.PPState: Information about the different states of each CPU.RS 5.TP 9cpuidUnique identifier of the CPU..TP 9stateCPU state..RS 12B - boot CPU.brD - disable soft errors.brS - stopped.brR - running.brT - TB needs invalidation.brP - panicked.RE.TP 9ipi-maskinterprocessor interrupt mask .RS 12P - panic.brR - console print.brS - schedule.brD - disable.brT - TB invalidation.brH - stop CPU.RE.TP 9procIndication of whether the CPU has an associated process. A Y indicatesthat an associated process exists, while an N indicates that no associatedprocess exists..TP 9pidProcess ID of the running process..PPIf any statistic field value exceeds 9999, it is shown in a scaledrepresentation with the suffix k, which indicates multiplicationby 1000, or with the suffix m, which indicates multiplication by 1,000,000. For example, the value 12,345 would appear as 12k..SH Options.IP \-c 5Displays only the statistics for each CPU..IP \-fDisplays statistics and state information on a full screen.If you use the .B \-f option, you are prompted to enter one of the following commands:.RS.IP c 5Displays only statistics about each CPU..IP dUses the default mode of display..IP hDisplays the help screen. To return to the original display screen,enter any character. .IP qQuits from the full screen display..IP s Displays only state information about each CPU..IP vDisplays information about each vector processor and omits informationabout other processors..RE.IP \-sDisplays only state information about each CPU..IP \-hProvides help information about the usage of the.PN cpustatcommand..IP \-vDisplays information about each vector processor and omits informationabout other processors. When.PN cpustatdisplays information about vector processors, it adds thefollowing information to the display:.RS.IP "vp state" 10Indicates that the vector processor is operational (OK), not usable(DEAD), enabled (ENA), or disabled (DIS). The.PN cpustatcommand display may contain a combination of these states..IP "vp owner"PID of the vector process whose context is stored in the vectorprocessor..IP "chp cxsw"Number of context switches in which the process whose contextchanged is the only process using a particular vector processor. Becauseno other process uses the vector processor, the register data associatedwith the processor does not change. Therefore, the system does not needto save and restore the register data; the data remains in the registersuntil the process is ready to use it..IP "exp cxsw"Number of context switches in which a number of processes mightbe using the same vector processor. When more than one process uses thesame processor, the register data associated with the processor might bechanged by any process. Therefore, the system saves and restores theregister data during a context switch for any process..IP "succ req"Number of times the vector process has successfully allocated the vectorprocessor..IP "failed req"Number of times the vector process has been refused vector processorallocation..RE.PPIf you omit all options,.PN cpustatreports a summary of the statisticssince the system has been booted and the state of each CPU..SH ExamplesTo print the system status every five seconds ten times, enter the following command:.EX% \f(CBcpustat 5 10\fP .EE.SH Files.TP 15.PN /dev/kmem Virtual main memory image.TP.PN /vmunixSystem namelist.SH See Alsoiostat(1), vmstat(1)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?