From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: bdupree@techfinesse.com, linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: Dynticks Causing High Context Switch Rate in ksoftirqd
Date: Wed, 28 Nov 2007 12:20:38 +0100 [thread overview]
Message-ID: <20071128112038.GG22039@elte.hu> (raw)
In-Reply-To: <20071127212217.a7ac0407.akpm@linux-foundation.org>
* Andrew Morton <akpm@linux-foundation.org> wrote:
> On Mon, 26 Nov 2007 20:36:32 -0600 (CST) bdupree@techfinesse.com wrote:
>
> > Question: Why is ksoftirqd eating about 5 to 10 percent of my CPU on an idle
> > system? The problem occurs if I config the kernel with tickless
> > support (i.e. CONFIG_TICK_ONESHOT=y). (Thanks to "oprofile" for putting me
> > onto this.)
>
> beware that oprofile can provide misleading results on a paritally-idle
> system. You may have discovered that ksoftirqd is consuming 5-10% of the
> non-idle time on that idle system, which is less surprising.
>
> > I have noted this same problem on kernel versions: 2.6.23.1, 2.6.23.8 and
> > 2.6.23.9
> >
> > **************************************************************************
> > *** Output from "vmstat -n 1 10" -- Note very high context switch rate ***
> > *** This is on a idle machine! ***
> > **************************************************************************
> >
> > procs -----------memory---------- ---swap-- -----io---- --system--
> > ----cpu----
> > r b swpd free buff cache si so bi bo in cs us sy
> > id wa
> > 0 0 0 1925556 4768 116104 0 0 124 2 6 7538 1 2
> > 96 1
> > 0 0 0 1925556 4768 116104 0 0 0 0 2 147329 0 1
> > 99 0
> > 0 0 0 1925548 4768 116104 0 0 0 0 0 154515 0 1
> > 99 0
> > 0 0 0 1925548 4768 116104 0 0 0 0 1 153898 0 2
> > 98 0
> > 0 0 0 1925548 4780 116104 0 0 0 16 3 155216 0 1
> > 99 0
> > 0 0 0 1925548 4780 116104 0 0 0 0 1 161718 0 1
> > 99 0
> > 0 0 0 1925548 4780 116104 0 0 0 0 0 147587 0 2
> > 98 0
> > 0 0 0 1925548 4780 116104 0 0 0 0 1 153524 0 2
> > 98 0
> > 0 0 0 1925448 4780 116104 0 0 0 0 0 153434 0 1
> > 99 0
> > 0 0 0 1925448 4792 116092 0 0 0 16 4 153527 0 2
> > 98 0
>
> So what piece of code is scheduling so much? What does `top' say?
> What does the (sorted) output of oprofile look like?
>
> Did you try shutting down as much userspace code as possible to find
> out if some userspace task is misbehaving?
such 'what the heck is happening' problems can also be debugged via the
tracer. Here's a quickstart:
http://redhat.com/~mingo/latency-tracing-patches/tracing-QuickStart.txt
Ingo
next prev parent reply other threads:[~2007-11-28 11:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-27 2:36 Dynticks Causing High Context Switch Rate in ksoftirqd bdupree
2007-11-28 5:22 ` Andrew Morton
2007-11-28 11:20 ` Ingo Molnar [this message]
[not found] <fa.c70Wy8WHP3DOaDydQ2D94+Xxx/8@ifi.uio.no>
2007-11-27 4:36 ` Robert Hancock
2007-11-27 5:38 ` Arjan van de Ven
[not found] ` <1887.192.128.167.68.1196188273.squirrel@www.techfinesse.net>
2007-11-28 0:18 ` Robert Hancock
2007-11-28 5:28 ` Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2007-11-29 2:44 bdupree
2007-11-29 15:40 ` Ray Lee
[not found] ` <17931.144.160.98.31.1196356276.squirrel@www.techfinesse.net>
2007-11-29 17:38 ` Ray Lee
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=20071128112038.GG22039@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=bdupree@techfinesse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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