2017-05-05 97 views
0

我真的很困惑。为什么平均负载和%CPU与下面的进程CPU使用率不匹配。看起来这个过程似乎耗尽了大量的CPU,而AWS EC2计量器只表示使用了25%的CPU。 click here to see image奇怪的EC2 CPU使用率

回答

0

嗨,也许你的应用程序使用单核和其他内核是免费的。我认为你的实例有4个CPU核心,一个正在使用100%。你能检查每个核心的利用率吗?

2

%CPU - CPU Usage:CPU使用率:进程正在使用的CPU的百分比。 默认情况下,top显示为单个CPU的百分比 。在多核系统上,您可以拥有大于100%的百分比 。例如,如果3个核心的使用率为60%,则 top将显示180%的CPU使用率。 您可以通过点击Shift + i来切换此行为,而top正在运行以显示可用的 正在使用的CPU的总体百分比。

load average: 22.56, 24.99, 26.51 

从左至右,这些数字表明你的平均负荷超过最后1分钟最后5分钟,并最后15分钟

us -- User CPU time 
    The time the CPU has spent running users' processes that are not niced. 
sy -- System CPU time 
    The time the CPU has spent running the kernel and its processes. 
ni -- Nice CPU time 
    The time the CPU has spent running users' proccess that have been niced. 
wa -- iowait 
    Amount of time the CPU has been waiting for I/O to complete. 
hi -- Hardware IRQ 
    The amount of time the CPU has been servicing hardware interrupts. 
si -- Software Interrupts 
    The amount of time the CPU has been servicing software interrupts. 
st -- Steal Time 
    The amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine). 

In Linux “top” command what are us, sy, ni, id, wa, hi, si and st (for CPU usage)查看更多详情。