Skip to contentSkip to conversation

Meaningless load?

DISCUSSION Simon Klinkert 3 participants 5 messages Oct 10, 2012 – Oct 11, 2012

lore
Share & tools
lore
#0 lore raw

Hi folks,

I have a linux machine (2.6.32-220.7.1.el6.x86_64) with 500 processes 'working' on one nfs4 mountpoint. As I can see with ps and top, only one process is in the 'R' state and really working. The other 499 processes are in the 'D' state and probably waiting for this one process.

But now let's take a look at top one more time:

top - 14:33:57 up 4:27, 4 users, load average: 501.16, 403.98, 205.52

Tasks: 766 total,   1 running, 765 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.8%us,  2.1%sy,  0.0%ni, 94.9%id,  0.8%wa,  0.0%hi,  1.4%si,  0.0%st
Mem:  32872392k total,   768488k used, 32103904k free,    30608k buffers
Swap: 35094520k total,        0k used, 35094520k free,    97624k cached

Wow, a load of 501.16 and the CPUs are up to 97% idle.

I'm just wondering if the 'load' is really meaningful in this scenario. The machine is the whole time fully responsive and looks fine to me but maybe I didn't understand correctly what the load should mean. Is there any sensible interpretation of the load?

Thanks,
Simon

#1 lore raw
Quoted 4 lines · Simon Klinkert

I'm just wondering if the 'load' is really meaningful in this scenario. The machine is the whole time fully responsive and looks fine to me but maybe I didn't understand correctly what the load should mean. Is there any sensible interpretation of the load?

I'll leave meaningful aside, but uninterruptible (D state) is part of how the load thing is defined, so your 500 result is correct.

#2 lore raw
Quoted 8 lines · Peter Zijlstra
Quoted 4 lines · Simon Klinkert

I'm just wondering if the 'load' is really meaningful in this scenario. The machine is the whole time fully responsive and looks fine to me but maybe I didn't understand correctly what the load should mean. Is there any sensible interpretation of the load?

I'll leave meaningful aside, but uninterruptible (D state) is part of how the load thing is defined, so your 500 result is correct.

Yes, the calculation of the load is correct but I still don't know how I should interpret the load…

Quoted 2 lines · Mike Galbraith

Makes perfect sense to me. Work _is_ stack this high. We don't and can't know whether the mountain is made of popcorn balls or boulders.

That's the point. Afaik the D state never represents 'work'. These processes are waiting for something.

Let's say we have 10,000 processes in the D state (and thus a load of ~10,000) doing nothing. What should the load tell me? The machine is under fire? There is nothing to do? There might be something to do but the machine doesn't know?

Simon

#3 lore raw
Quoted 15 lines · Simon Klinkert
Quoted 7 lines · Peter Zijlstra
Quoted 4 lines · Simon Klinkert

I'm just wondering if the 'load' is really meaningful in this scenario. The machine is the whole time fully responsive and looks fine to me but maybe I didn't understand correctly what the load should mean. Is there any sensible interpretation of the load?

I'll leave meaningful aside, but uninterruptible (D state) is part

of

Quoted 1 line

how the load thing is defined, so your 500 result is correct.

Yes, the calculation of the load is correct but I still don't know how I should interpret the load…

Quoted 8 lines
Quoted 2 lines · Mike Galbraith

Makes perfect sense to me. Work _is_ stack this high. We don't and can't know whether the mountain is made of popcorn balls or

boulders.

That's the point. Afaik the D state never represents 'work'. These processes are waiting for something.

Yeah, the whole pile is waiting, but they're not idle. There are N tasks pointed at CPUs.

Quoted 5 lines

Let's say we have 10,000 processes in the D state (and thus a load of ~10,000) doing nothing. What should the load tell me? The machine is under fire? There is nothing to do? There might be something to do but the machine doesn't know?

They are doing something, just not at the particular instant you see them in D state. D state pushing load through the roof tells you that you have a bottleneck. Whether the bottleneck is a bit of spinning rust or insufficient NR_CPUS doesn't matter much, both are bottlenecks.

-Mike

#4 lore raw
Quoted 17 lines · Mike Galbraith
Quoted 8 lines · Mike Galbraith
Quoted 3 lines

Makes perfect sense to me. Work _is_ stack this high. We don't and can't know whether the mountain is made of popcorn balls or

boulders.

That's the point. Afaik the D state never represents 'work'. These processes are waiting for something.

Yeah, the whole pile is waiting, but they're not idle. There are N tasks pointed at CPUs.

Quoted 5 lines

Let's say we have 10,000 processes in the D state (and thus a load of ~10,000) doing nothing. What should the load tell me? The machine is under fire? There is nothing to do? There might be something to do but the machine doesn't know?

Quoted 4 lines

They are doing something, just not at the particular instant you see them in D state. D state pushing load through the roof tells you that you have a bottleneck. Whether the bottleneck is a bit of spinning rust or insufficient NR_CPUS doesn't matter much, both are bottlenecks.

Your explanation sounds correct to me but I think in my case, there are only 2-3 process waiting for spinning rust (or rather nfs) and the other processes are all in a heavy lock contention in the VFS layer. So a load of 10,000 is helpful to indicate that there is a (software) bottleneck but if I want to see the 'real (work)load' on this machine it isn't really helpful to show a load of 10,000 instead of three or whatever. It's a question of interpretation.

Simon