From: Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org>
To: Damien Wyart <damien.wyart-GANU6spQydw@public.gmane.org>
Cc: "Paul E. McKenney"
<paulmck-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>,
"Peter Zijlstra"
<a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org>,
"Mike Galbraith" <efault-Mmb7MZpHnFY@public.gmane.org>,
"Frédéric Weisbecker"
<fweisbec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
"Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>,
"Linux Kernel Mailing List"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"Kernel Testers List"
<kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [Bug #12650] Strange load average and ksoftirqd behavior with 2.6.29-rc2-git1
Date: Mon, 16 Feb 2009 13:26:32 +0100 [thread overview]
Message-ID: <20090216122632.GA3158@elte.hu> (raw)
In-Reply-To: <87hc2u61e9.fsf-GANU6spQydw@public.gmane.org>
* Damien Wyart <damien.wyart-GANU6spQydw@public.gmane.org> wrote:
> * Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org> [090216 10:50]:
> > hm, we need a trace with both abstime and process information included:
>
> > echo funcgraph-proc > trace_options
> > echo funcgraph-abstime > trace_options
>
> > Also, at 140 msecs the duration is a bit short - could you please make a
> > 1-2 seconds capture? You can do that by increasing the number in
> > buffer_size_kb 10-fold:
>
> > echo 14100 > buffer_size_kb
>
> Ok, I've redone a trace with these options enabled. The file is here:
> http://damien.wyart.free.fr/ksoftirqd_pb/trace_tip_2009.02.16_ksoftirqd_pb_abstime_proc.txt.gz
ok, here's the new annotated trace:
799.555279 | 1) ksoftir-2324 | | do_softirq() {
799.555279 | 1) ksoftir-2324 | | __do_softirq() {
799.555280 | 1) ksoftir-2324 | | /* #1 softirq pending: 00000100 */
799.555281 | 1) ksoftir-2324 | | /* #2 softirq pending: 00000000 */
799.555282 | 1) ksoftir-2324 | | rcu_process_callbacks() {
799.555282 | 1) ksoftir-2324 | | __rcu_process_callbacks() {
799.555283 | 1) ksoftir-2324 | 0.479 us | force_quiescent_state();
799.555284 | 1) ksoftir-2324 | 1.576 us | }
799.555284 | 1) ksoftir-2324 | | __rcu_process_callbacks() {
799.555285 | 1) ksoftir-2324 | | force_quiescent_state() {
799.555286 | 1) ksoftir-2324 | | cpu_quiet() {
799.555286 | 1) ksoftir-2324 | 0.518 us | _spin_lock_irqsave();
799.555287 | 1) ksoftir-2324 | 0.506 us | _spin_unlock_irqrestore();
799.555288 | 1) ksoftir-2324 | 2.563 us | }
799.555289 | 1) ksoftir-2324 | 4.624 us | }
799.555289 | 1) ksoftir-2324 | 7.836 us | }
799.555290 | 1) ksoftir-2324 | 0.495 us | _local_bh_enable();
799.555291 | 1) ksoftir-2324 | + 11.550 us | }
799.555291 | 1) ksoftir-2324 | + 12.713 us | }
799.555292 | 1) ksoftir-2324 | 0.524 us | _cond_resched();
We do get 0x100 which is 1 << RCU_SOFTIRQ, i.e. the RCU softirq. Paul,
this indeed seems to be a CONFIG_TREE_RCU=y bug.
What is weird is that RCU_SOFTIRQ gets set again and again - but there's
no raise_softirq() calls. Could you please do a two-CPU trace too via:
echo 3 > /debug/tracing/tracing_cpumask
So that we can see what's happening on the other CPU?
Also, could you please apply the debug patch below (or update to the
very latest -tip tree), so that we get trace entries of softirq triggers
too?
Thanks,
Ingo
-------------->
From 6876d5d56716427f9bbe3af7e4e9c06cb760ae0c Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org>
Date: Mon, 16 Feb 2009 13:23:36 +0100
Subject: [PATCH] softirq: debug #2
Signed-off-by: Ingo Molnar <mingo-X9Un+BFzKDI@public.gmane.org>
---
include/linux/interrupt.h | 3 ++-
kernel/softirq.c | 7 +++++++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
index e7bcfd7..cc1f529 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
@@ -271,7 +271,8 @@ asmlinkage void do_softirq(void);
asmlinkage void __do_softirq(void);
extern void open_softirq(int nr, void (*action)(struct softirq_action *));
extern void softirq_init(void);
-#define __raise_softirq_irqoff(nr) do { or_softirq_pending(1UL << (nr)); } while (0)
+#define ___raise_softirq_irqoff(nr) do { or_softirq_pending(1UL << (nr)); } while (0)
+extern void __raise_softirq_irqoff(unsigned int nr);
extern void raise_softirq_irqoff(unsigned int nr);
extern void raise_softirq(unsigned int nr);
diff --git a/kernel/softirq.c b/kernel/softirq.c
index 110cad0..431cb4f 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -302,6 +302,13 @@ void irq_exit(void)
preempt_enable_no_resched();
}
+void __raise_softirq_irqoff(unsigned int nr)
+{
+ ftrace_printk("nr: %d\n", nr);
+ or_softirq_pending(1UL << nr);
+}
+EXPORT_SYMBOL_GPL(__raise_softirq_irqoff);
+
/*
* This function must run with irqs disabled!
*/
next prev parent reply other threads:[~2009-02-16 12:26 UTC|newest]
Thread overview: 117+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-14 20:35 2.6.29-rc5: Reported regressions from 2.6.28 Rafael J. Wysocki
2009-02-14 20:35 ` [Bug #12414] iwl4965 cannot use "ap auto" on latest 2.6.28/29? Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12444] X hangs following switch from radeonfb console - Bisected Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12418] Repeated ioctl(4, 0x40046445, ..) loop in glxgears Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12419] possible circular locking dependency on i915 dma Rafael J. Wysocki
2009-02-16 3:50 ` Wang Chen
2009-02-14 20:38 ` [Bug #12490] ath5k related kernel panic in 2.6.29-rc1 Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12491] i915 lockdep warning Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12494] Sony backlight regression from 2.6.28 to 29-rc Rafael J. Wysocki
2009-02-17 10:51 ` Norbert Preining
2009-02-14 20:38 ` [Bug #12499] Problem with using bluetooth adaper connected to usb port Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12497] new barrier warnings in 2.6.29-rc1 Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12496] swsusp cannot find resume device (sometimes) Rafael J. Wysocki
2009-02-15 0:05 ` Arjan van de Ven
[not found] ` <20090214160542.1c668398-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2009-02-15 14:23 ` Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12502] pipe_read oops on sh Rafael J. Wysocki
2009-02-15 0:23 ` Adrian McMenamin
[not found] ` <8b67d60902141623k449dc769n9fd6bf180d3267d3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-02-15 14:27 ` Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12551] end_request: I/O error, dev cciss/c0d0, sector 87435720 Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12510] 2.6.29-rc2 dies on startup Rafael J. Wysocki
2009-02-16 21:02 ` Ferenc Wagner
2009-02-16 21:12 ` Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12501] build bug in eeepc-laptop.c Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12609] v2.6.29-rc2 libata sff 32bit PIO regression Rafael J. Wysocki
2009-02-15 4:20 ` Larry Finger
[not found] ` <499797FD.5070701-tQ5ms3gMjBLk1uMJSBkQmQ@public.gmane.org>
2009-02-15 8:10 ` Jeff Garzik
[not found] ` <4997CDDC.1020103-o2qLIJkoznsdnm+yROfE0A@public.gmane.org>
2009-02-15 12:05 ` Sergei Shtylyov
2009-02-15 16:48 ` Hugh Dickins
2009-02-14 20:38 ` [Bug #12610] sync-Regression in 2.6.28.2? Rafael J. Wysocki
2009-02-21 17:56 ` Theodore Tso
[not found] ` <20090221175646.GB3750-3s7WtUTddSA@public.gmane.org>
2009-02-22 10:02 ` Rafael J. Wysocki
[not found] ` <200902221102.10579.rjw-KKrjLPT3xs0@public.gmane.org>
2009-02-23 4:35 ` Greg KH
[not found] ` <20090223043536.GC19687-l3A5Bk7waGM@public.gmane.org>
2009-02-23 5:37 ` Theodore Tso
[not found] ` <20090223053736.GC19739-3s7WtUTddSA@public.gmane.org>
2009-02-23 16:54 ` [stable] " Greg KH
2009-02-14 20:38 ` [Bug #12574] possible circular locking dependency detected Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12571] Suspend-resume on Dell Latitude D410 newly broken in 2.6.29-rc* Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12613] [Suspend regression][DRM, RADEON] Rafael J. Wysocki
[not found] ` <4997E7D7.60205@numericable.fr>
[not found] ` <4997E7D7.60205-Bf/eaXMDFuuXqB7oj33eUg@public.gmane.org>
2009-02-15 10:20 ` etienne
2009-02-14 20:38 ` [Bug #12615] boot hangs while bringing up gianfar ethernet Rafael J. Wysocki
2009-02-15 14:42 ` Peter Korsgaard
[not found] ` <8763jbep7p.fsf-uXGAPMMVk8amE9MCos8gUmSdvHPH+/yF@public.gmane.org>
2009-02-15 21:08 ` Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12618] hackbench [pthread mode] regression with 2.6.29-rc3 Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12659] Failure to resume two Sandisk USB flash drives attached to a Belkin USB Busport Mobile (F5U022) Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12650] Strange load average and ksoftirqd behavior with 2.6.29-rc2-git1 Rafael J. Wysocki
2009-02-15 8:09 ` Damien Wyart
[not found] ` <20090215080941.GA2295-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-02-15 9:00 ` Ingo Molnar
[not found] ` <20090215090026.GA31147-X9Un+BFzKDI@public.gmane.org>
2009-02-15 9:51 ` Damien Wyart
[not found] ` <20090215095128.GA3234-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-02-15 10:13 ` Ingo Molnar
[not found] ` <20090215101351.GA23274-X9Un+BFzKDI@public.gmane.org>
2009-02-15 10:34 ` Damien Wyart
[not found] ` <20090215103445.GA2335-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-02-15 10:41 ` Damien Wyart
2009-02-15 10:42 ` Damien Wyart
[not found] ` <20090215104245.GA2320-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-02-15 10:43 ` Damien Wyart
2009-02-15 11:01 ` Ingo Molnar
[not found] ` <20090215110104.GB31351-X9Un+BFzKDI@public.gmane.org>
2009-02-15 14:06 ` Frederic Weisbecker
2009-02-15 18:03 ` Damien Wyart
[not found] ` <20090215180355.GA2273-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-02-15 19:18 ` Damien Wyart
2009-02-15 19:31 ` Ingo Molnar
[not found] ` <20090215193102.GA16873-X9Un+BFzKDI@public.gmane.org>
2009-02-16 8:42 ` Damien Wyart
[not found] ` <20090216084223.GA2641-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-02-16 9:21 ` Ingo Molnar
[not found] ` <20090216092100.GH6182-X9Un+BFzKDI@public.gmane.org>
2009-02-16 10:49 ` Damien Wyart
2009-02-16 9:25 ` Ingo Molnar
2009-02-16 9:27 ` Ingo Molnar
2009-02-16 9:32 ` Ingo Molnar
2009-02-16 9:50 ` Ingo Molnar
[not found] ` <20090216095059.GL6182-X9Un+BFzKDI@public.gmane.org>
2009-02-16 11:56 ` Damien Wyart
[not found] ` <87hc2u61e9.fsf-GANU6spQydw@public.gmane.org>
2009-02-16 12:26 ` Ingo Molnar [this message]
2009-02-16 13:02 ` Damien Wyart
[not found] ` <87ljs6pmao.fsf-GANU6spQydw@public.gmane.org>
2009-02-16 13:21 ` Ingo Molnar
[not found] ` <20090216132151.GA17996-X9Un+BFzKDI@public.gmane.org>
2009-02-16 16:06 ` Paul E. McKenney
[not found] ` <20090216160613.GA6785-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2009-02-16 18:56 ` Paul E. McKenney
[not found] ` <20090216185616.GB6785-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2009-02-16 19:08 ` Frederic Weisbecker
2009-02-16 20:02 ` Frederic Weisbecker
2009-02-16 21:31 ` Paul E. McKenney
2009-02-16 20:09 ` Ingo Molnar
[not found] ` <20090216200923.GA28938-X9Un+BFzKDI@public.gmane.org>
2009-02-16 22:39 ` Paul E. McKenney
[not found] ` <20090216223944.GF6785-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2009-02-16 22:51 ` Paul E. McKenney
[not found] ` <20090216225108.GA15904-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2009-02-17 9:46 ` Ingo Molnar
[not found] ` <20090217094657.GA1845-X9Un+BFzKDI@public.gmane.org>
2009-02-17 14:01 ` Paul E. McKenney
[not found] ` <20090217140130.GA6761-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2009-02-17 15:39 ` Damien Wyart
[not found] ` <20090217153925.GA2308-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-02-17 16:05 ` Paul E. McKenney
2009-02-17 21:48 ` Ingo Molnar
2009-02-17 6:11 ` Damien Wyart
[not found] ` <20090217061142.GA5316-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-02-17 15:11 ` Paul E. McKenney
2009-02-17 4:34 ` Frederic Weisbecker
2009-02-17 15:10 ` Paul E. McKenney
[not found] ` <20090217151046.GB6761-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2009-02-17 16:00 ` Frederic Weisbecker
2009-02-17 22:37 ` Frederic Weisbecker
2009-02-17 22:48 ` Paul E. McKenney
[not found] ` <20090217224826.GO6761-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2009-02-18 0:38 ` Ingo Molnar
[not found] ` <20090218003801.GD25856-X9Un+BFzKDI@public.gmane.org>
2009-02-18 1:02 ` Paul E. McKenney
2009-02-16 20:44 ` Damien Wyart
2009-02-15 10:12 ` Christian Kujau
[not found] ` <alpine.DEB.2.01.0902150210140.25613-uKsf7x9sgtqQ/Pez2Lbyp4QuADTiUCJX@public.gmane.org>
2009-02-15 10:54 ` Ingo Molnar
2009-02-14 20:38 ` [Bug #12617] unable to compile e100 firmware into kernel Rafael J. Wysocki
2009-02-15 17:38 ` David Woodhouse
2009-02-15 19:58 ` Andrey Borzenkov
[not found] ` <200902152259.00244.arvidjaar-JGs/UdohzUI@public.gmane.org>
2009-02-15 21:09 ` Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12668] USB flash disk surprise disconnect Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12660] Linux 2.6.28.3 freezing on a 32-bits x86 Thinkpad T43p Rafael J. Wysocki
2009-02-14 23:29 ` Mathieu Desnoyers
2009-02-14 20:38 ` [Bug #12663] Commit 8c7e58e690ae60ab4215b025f433ed4af261e103 breaks resume Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12680] Not having a VIA PadLock hardware incurs a long delay in probing on modules insertion attempt Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12681] s2ram: fails to wake up on Acer Extensa 4220 (SMP disabled) Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12670] BUG: unable to handle kernel paging request at pin_to_kill+0x21 Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12671] uvc_status_cleanup(): undefined reference to `input_unregister_device' Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12706] Oopses and ACPI problems (Linus 2.6.29-rc4) Rafael J. Wysocki
2009-02-14 20:38 ` [Bug #12705] X200: Brightness broken since 2.6.29-rc4-58-g4c098bc Rafael J. Wysocki
2009-02-15 13:43 ` Matthew Garrett
[not found] ` <20090215134347.GB21670-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2009-02-15 14:37 ` Rafael J. Wysocki
2009-02-17 23:05 ` Eric Anholt
2009-02-17 23:13 ` Matthew Garrett
[not found] ` <20090217231313.GA2654-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
2009-02-17 23:23 ` Jesse Barnes
2009-02-18 9:36 ` Nico Schottelius
[not found] ` <20090213093354.GA10175@denkbrett.schottelius.org>
[not found] ` <20090213094200.GC17774@elte.hu>
[not found] ` <alpine.LFD.2.00.0902131302240.3671@localhost.localdomain>
[not found] ` <20090216155434.GA5503@denkbrett.schottelius.org>
[not found] ` <20090218093602.GA7722-CwvJMKsI4x9IWicycGkJrnB8g6S6LqdP2LY78lusg7I@public.gmane.org>
[not found] ` <20090216155434.GA5503-CwvJMKsI4x9IWicycGkJrnB8g6S6LqdP2LY78lusg7I@public.gmane.org>
2009-02-19 9:01 ` Nico Schottelius
2009-02-16 7:29 ` 2.6.29-rc5: Reported regressions from 2.6.28 Jarek Poplawski
2009-02-16 21:11 ` Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2009-02-08 19:05 2.6.29-rc4: " Rafael J. Wysocki
2009-02-08 19:21 ` [Bug #12650] Strange load average and ksoftirqd behavior with 2.6.29-rc2-git1 Rafael J. Wysocki
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=20090216122632.GA3158@elte.hu \
--to=mingo-x9un+bfzkdi@public.gmane.org \
--cc=a.p.zijlstra-/NLkJaSkS4VmR6Xm/wNWPw@public.gmane.org \
--cc=damien.wyart-GANU6spQydw@public.gmane.org \
--cc=efault-Mmb7MZpHnFY@public.gmane.org \
--cc=fweisbec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kernel-testers-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=paulmck-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=rjw-KKrjLPT3xs0@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).