public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Lower bound 0.05 on 15-Minute load?
@ 2015-07-02  8:50 Ulrich Windl
  2015-07-02  9:26 ` Martin Steigerwald
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Windl @ 2015-07-02  8:50 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]

Hi!

I'm not subscribed, so plese CC: me for your replies.

When graphing the CPU load, I noticed that the 15-minute average never drops below 0.05, while the 5-minute load and the 1-minute load does
(Kernel 3.0.101-0.47.52-xen of SLES11 on x86_64).

Ist that a known bug? Interactive call of "uptime" seems to confirm my suspect:
windl> uptime
 10:41am  up 23 days 18:49,  1 user,  load average: 0.08, 0.05, 0.05
windl> uptime
 10:48am  up 23 days 18:56,  1 user,  load average: 0.00, 0.04, 0.05
windl> cat /proc/loadavg
0.00 0.04 0.05 1/108 9704

I'll attach a sample graph.

Regards,
Ulrich



[-- Attachment #2: Load.png --]
[-- Type: image/png, Size: 46898 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Lower bound 0.05 on 15-Minute load?
  2015-07-02  8:50 Lower bound 0.05 on 15-Minute load? Ulrich Windl
@ 2015-07-02  9:26 ` Martin Steigerwald
  2015-07-03  6:12   ` Antw: " Ulrich Windl
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Steigerwald @ 2015-07-02  9:26 UTC (permalink / raw)
  To: Ulrich Windl; +Cc: linux-kernel

On Thursday 02 July 2015 10:50:13 Ulrich Windl wrote:
> Hi!

Hi Ulrich,
 
> I'm not subscribed, so plese CC: me for your replies.
> 
> When graphing the CPU load, I noticed that the 15-minute average never
> drops below 0.05, while the 5-minute load and the 1-minute load does
> (Kernel 3.0.101-0.47.52-xen of SLES11 on x86_64).

Load average is *NOT* the CPU load although this is a very common 
misconception.

Load average indicates the amount of processes that are waiting to be 
scheduled / running (which is CPU saturation) *and* those that are waiting 
uninterruptable. You can have a high load average without much CPU 
utilizitation, for example by running 20 find processes on a /home on NFS.

A high load can be CPU-bound but it doesn't need to be.

So a high load only can indicate that things are running more slowly, but 
not why, or well the why can be at least two things and does not need to be 
CPU.

Also the load is normalized to CPU cores.

> Ist that a known bug? Interactive call of "uptime" seems to confirm my
> suspect: windl> uptime
>  10:41am  up 23 days 18:49,  1 user,  load average: 0.08, 0.05, 0.05
> windl> uptime
>  10:48am  up 23 days 18:56,  1 user,  load average: 0.00, 0.04, 0.05
> windl> cat /proc/loadavg
> 0.00 0.04 0.05 1/108 9704
> 
> I'll attach a sample graph.

Why should it be? As you can see in the graph you have higher spikes with 1-
minute average. As its just a average about one minute it more easily drops 
below 0,05. But the 5 minute and 15 minute avergage need more time to drop 
lower, so for it to become lower, you need longer times without spikes in 
load average.

So its natural you get "flatter" curves with higher average. Average easily 
hide things like spikes.

Thanks,
-- 
Martin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Antw: Re: Lower bound 0.05 on 15-Minute load?
  2015-07-02  9:26 ` Martin Steigerwald
@ 2015-07-03  6:12   ` Ulrich Windl
  0 siblings, 0 replies; 3+ messages in thread
From: Ulrich Windl @ 2015-07-03  6:12 UTC (permalink / raw)
  To: martin; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2634 bytes --]

>>> Martin Steigerwald <martin@lichtvoll.de> schrieb am 02.07.2015 um 11:26 in
Nachricht <1479160.a5Vb4cJSSF@merkaba>:
> On Thursday 02 July 2015 10:50:13 Ulrich Windl wrote:
>> Hi!
> 
> Hi Ulrich,
>  
>> I'm not subscribed, so plese CC: me for your replies.
>> 
>> When graphing the CPU load, I noticed that the 15-minute average never
>> drops below 0.05, while the 5-minute load and the 1-minute load does
>> (Kernel 3.0.101-0.47.52-xen of SLES11 on x86_64).
> 
> Load average is *NOT* the CPU load although this is a very common 
> misconception.

I think the correlation of 1-min, 5-min and 15-min values is independent of the actual meaning of the value.

> 
> Load average indicates the amount of processes that are waiting to be 
> scheduled / running (which is CPU saturation) *and* those that are waiting 
> uninterruptable. You can have a high load average without much CPU 
> utilizitation, for example by running 20 find processes on a /home on NFS.
> 
> A high load can be CPU-bound but it doesn't need to be.

I knew.

> 
> So a high load only can indicate that things are running more slowly, but 
> not why, or well the why can be at least two things and does not need to be 
> CPU.

How is that related to my complaint/question?

> 
> Also the load is normalized to CPU cores.

Actually I don't think so, but that's also not related to the issue I reported. In know that HP-UX load was the average load of every CPU, while for Linux the load seemed to be the sum of all CPU loads, meaning a load of 4 is low for a 12-CPU machine. But that's all unrelated...

> 
>> Ist that a known bug? Interactive call of "uptime" seems to confirm my
>> suspect: windl> uptime
>>  10:41am  up 23 days 18:49,  1 user,  load average: 0.08, 0.05, 0.05
>> windl> uptime
>>  10:48am  up 23 days 18:56,  1 user,  load average: 0.00, 0.04, 0.05
>> windl> cat /proc/loadavg
>> 0.00 0.04 0.05 1/108 9704
>> 
>> I'll attach a sample graph.
> 
> Why should it be? As you can see in the graph you have higher spikes with 1-
> minute average. As its just a average about one minute it more easily drops 
> below 0,05. But the 5 minute and 15 minute avergage need more time to drop 
> lower, so for it to become lower, you need longer times without spikes in 
> load average.
> 
> So its natural you get "flatter" curves with higher average. Average easily 
> hide things like spikes.

Actually it seems my "mathematical eye" is better than yours: I have another graph that shows the problem even more clearly (same kernel and hardware, just another machine).

Regards,
Ulrich



[-- Attachment #2: Load-15.png --]
[-- Type: image/png, Size: 42102 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-03  6:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-02  8:50 Lower bound 0.05 on 15-Minute load? Ulrich Windl
2015-07-02  9:26 ` Martin Steigerwald
2015-07-03  6:12   ` Antw: " Ulrich Windl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox