Understanding load average vs. cpu usage [closed]

自作多情 提交于 2019-11-27 09:35:17

问题


Okay, I'm very much a Windows user myself, so my knowledge of Linux-y type things is a bit limited.

However it was my general understanding that "Load Average" is an indication of how many processed are being run at any given time, on average over the last minute, five minutes and... fifteen minutes?

Anyway, I've been monitoring my server because we had a big opening and lots of people!

I've been watching top and noticed something that seemed contrary to what I thought I knew.

If the load average is at 7, with 4 hyper-threaded processors, shouldn't that means that the CPU is working to about 7/8 capacity?

Why, then was it showing 50.0%id? How can it be idle half the time?

I'm not getting it XD


回答1:


top shows CPU utilization for running processes while load average shows (since 1993) number of running processes plus number of processes in the uninterruptible state. Processes waiting for work do not consume CPU. As a result top CPU utilization is less that 7/8 * 100%.

Source: http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html



来源:https://stackoverflow.com/questions/21617500/understanding-load-average-vs-cpu-usage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!