Score:1

linux load average interpretation with vcpu

in flag

I have a workstation with following CPU spec -

Dual (two) Intel Xeon X5675 CPUs - 6 cores each - that's total of 12 cores / 24 threads. 

If all the cores were utilised, given the total threads is 24, is the expected load average 24 or 2400 ?

The current utilisation with running multiple background jobs is as follows -

I'm wondering if the system is super overloaded or is it fine for the spec I have

enter image description here

Nikita Kipriyanov avatar
za flag
It's super overloaded with I/O. I deduce this from the fact all CPUs are mostly waiting for I/O (see **wa** - the percent of time they are doing nothing waiting for I/O request to complete). And this isn't usual swap trashing, because swap isn't used. I'd look into `iotop` next to see what's going.
usert4jju7 avatar
in flag
Thank you Nikita
Score:3
ca flag

You are conflating CPU usage in % with load average:

  • CPU usage % shows per-cpu non-idle time, ranging from 0% to 100% for each CPU core. This means that an heavy single-thread process will show 100% use over a single CPU core, while an heavy multi-threading process spawning 24+ threads will show 2400% (24x 100%) CPU usage

  • load average shows how many processes are waiting for their running slot. In other words, it shows how many processes are ready to run but they can not because the CPU has no time for them "just now", and are put to sleep in the ready-to-run queue. In our previous heavy multi-thread process scenario, a 24 thread process running at 2400% CPU load on a 24 cores/threads CPU will not result in a significantly higher load average (simply because a threads/core is available for each thread) unless other unrelated processes are fighting for they run slot (which are saturated by out multi-thread process).

In short, CPU load % shows how much time your CPU is busy, while load average how many processes are waiting for their turn.

usert4jju7 avatar
in flag
Thank you @shodansohk
LyK avatar
it flag
LyK
Load show for the processes that are waiting or the total of waiting + executing? I think it is the latter right?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.