From: James Pearson <james-p@moving-picture.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Andrea Suisani <sickpig@opinioni.net>,
linux-kernel@vger.kernel.org,
Russell King <linux@arm.linux.org.uk>
Subject: Re: High load average on idle machine running 2.6.32
Date: Fri, 18 Dec 2009 15:34:20 +0000 [thread overview]
Message-ID: <4B2BA0FC.2050405@moving-picture.com> (raw)
In-Reply-To: <1261145551.20899.208.camel@laptop>
Peter Zijlstra wrote:
>
>>>So I guess, it is not just one patch that has caused the issue I'm
>>>seeing, which I guess is to be expected as the above patch was part of
>>>the 'scheduler updates for v2.6.32' patch set
>
>
> Right, so the thing that seems most likely to cause such funnies is the
> introduction of TASK_WAKING state in .32, during development we had a
> brief period where we saw what you described, but I haven't seen it
> after:
>
> commit eb24073bc1fe3e569a855cf38d529fb650c35524
> Author: Ingo Molnar <mingo@elte.hu>
> Date: Wed Sep 16 21:09:13 2009 +0200
>
> sched: Fix TASK_WAKING & loadaverage breakage
Yes, I did hit that while bisecting - and got load averages in the tens
of thousands - this, of course, masked the load averages I was seeing -
so I cheated and applied that patch to the bisects to proceed - I guess
I should have mentioned that earlier. i.e. I'm not seeing ridiculously
large load averages - but idle load averages of about 2 or 3
>>>I guess as no one else has reported this issue - it must be something to
>>>do with my set up - could using NFS-root affect how the load average is
>>>calculated?
>
>
> So the thing that contributes to load is TASK_UNINTERRUPTIBLE sleeps
> (and !PF_FREEZING) as tested by task_contributes_to_load().
>
> Are you seeing a matching number of tasks being stuck in 'D' state when
> the load is high? If so, how are these tasks affected by iftop/hotplug?
No - but running 'echo w > /proc/sysreq-trigger' I occassionally see
'portmap' in 'D' state
e.g.
SysRq : Show Blocked State
task PC stack pid father
portmap D ffffffff8102e05e 0 3660 1 0x00000000
ffff88043e5d4440 0000000000000082 0000000000000000 0000000000000000
0000000000000000 ffff88043f84db00 0000000000000000 0000000100009921
ffff88043e5d46b0 0000000081353f24 0000000000000000 000000003ea193b8
But I also see these with a 2.6.31 kernel when the load is O (or there
abouts)
If I stop portmap, the load does drop - e.g from 3.0 to 1.5, but not to zero
Another thing I've noticed is that when running 'top' (I'm using CentOS
4.7 as the distro) in 'SMP' mode (so all CPUs are listed), the % idle of
one or more of the CPUs shows 0.0% - the other CPUs show a % idle of
100.0% or 99.x% - I don't know if this top not reporting correctly, but
I don't see this when running a 2.6.31 kernel - in this case, all the
CPUs report 100.0% or 99.x% idle all the time.
e.g with 2.6.32 I see:
> top - 15:25:27 up 36 min, 3 users, load average: 2.20, 2.21, 2.01
> Tasks: 171 total, 1 running, 170 sleeping, 0 stopped, 0 zombie
> Cpu0 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
> Cpu1 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
> Cpu2 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
> Cpu3 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
> Cpu4 : 0.0% us, 0.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
> Cpu5 : 0.0% us, 0.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 0.0% hi, 0.0% si
> Cpu6 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
> Cpu7 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
I don't know if this is significant
Thanks
James Pearson
prev parent reply other threads:[~2009-12-18 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-07 23:14 High load average on idle machine running 2.6.32 James Pearson
2009-12-10 16:29 ` James Pearson
2009-12-14 17:49 ` James Pearson
2009-12-18 13:43 ` Andrea Suisani
2009-12-18 14:12 ` Peter Zijlstra
2009-12-18 15:34 ` James Pearson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B2BA0FC.2050405@moving-picture.com \
--to=james-p@moving-picture.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=peterz@infradead.org \
--cc=sickpig@opinioni.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox