對這文章發表回應
發表限制: 非會員 可以發表
How to Check CPU Utilization ( sar -u)
Display CPU utilization with the sar -u command.
$ sar -u |
(The sar command without any options is equivalent to sar -u.) At any given moment, the processor is either busy or idle. When busy, the processor is in either user or system mode. When idle, the processor is either waiting for I/O completion or "sitting still" with no work to do.
Output from the -u option is described in the table below.
Table 36-17 Output From the sar -u CommandField Name | Description |
---|---|
%sys | Lists the percentage of time that the processor is in system mode |
%user | Lists the percentage of time that the processor is in user mode |
%wio | Lists the percentage of time the processor is idle and waiting for I/O completion |
%idle | Lists the percentage of time the processor is idle and is not waiting for I/O |
A high %wio generally means a disk slowdown has occurred.
Example--Checking CPU Utilization
The following example shows output from the sar -u command.
$ sar -u |
原文出處:How to Check CPU Utilization (sar -u) (System Administration Guide, Volume 2)