- 论坛徽章:
- 0
|
有个问题想请假大侠们:
top命令查看cpu占用的时候,第三行里的:
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
和后面的某个具体进程的%CPU 他们之间是什么关系呢?
为什么有时候Cpu(s)里的us不是很高,id也比较大,也就是空闲cpu比较多,
而下面的某个进程的%CPU却可能达到100%,甚至超过100%到101%之类的?
看了man top没找到具体某个进程使用的%CPU的说明,只是提到了上面综合的cpus的说明:
k: %CPU -- CPU usage
The task’s share of the elapsed CPU time since the last screen update, expressed as a percentage of total
CPU time. In a true SMP environment, if ’Irix mode’ is Off, top will operate in ’Solaris mode’ where a
task’s cpu usage will be divided by the total number of CPUs. You toggle ’Irix/Solaris’ modes with the ’I’
interactive command.
请求解答啊 google了下也没找到合适的答案
|
|