From: Fengguang Wu <fengguang.wu@intel.com>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Michael Wang <wangyun@linux.vnet.ibm.com>,
LKML <linux-kernel@vger.kernel.org>,
x86@kernel.org, Suresh Siddha <suresh.b.siddha@intel.com>,
Venkatesh Pallipadi <venki@google.com>
Subject: Re: WARNING: cpu_is_offline() at native_smp_send_reschedule()
Date: Wed, 5 Sep 2012 20:57:00 +0800 [thread overview]
Message-ID: <20120905125700.GA5833@localhost> (raw)
In-Reply-To: <1346842480.2461.11.camel@laptop>
On Wed, Sep 05, 2012 at 12:54:40PM +0200, Peter Zijlstra wrote:
> On Wed, 2012-09-05 at 12:35 +0800, Michael Wang wrote:
> > > [ 10.968565] reboot: machine restart
> > > [ 10.983510] ------------[ cut here ]------------
> > > [ 10.984218] WARNING: at /c/kernel-tests/src/stable/arch/x86/kernel/smp.c:123 native_smp_send_reschedule+0x46/0x50()
> > > [ 10.985880] Pid: 88, comm: kpktgend_0 Not tainted 3.6.0-rc3-00005-gb374aa1 #10
> > > [ 10.987185] Call Trace:
> > > [ 10.987506] [<7902f42a>] warn_slowpath_common+0x5a/0x80
> > > [ 10.987506] [<7901ee16>] ? native_smp_send_reschedule+0x46/0x50
> > > [ 10.987506] [<7901ee16>] ? native_smp_send_reschedule+0x46/0x50
> > > [ 10.987506] [<7902f4fd>] warn_slowpath_null+0x1d/0x20
> > > [ 10.987506] [<7901ee16>] native_smp_send_reschedule+0x46/0x50
> >
> > So this cpu try to fire a nohz balance kick ipi to an offline cpu?
> >
> > May be we are choosing a wrong cpu to kick but that's not the point,
> > what I can't understand is why this cpu could do this kick.
> >
> > We have nohz_kick_needed() to check whether current cpu should do kick ,
> > and the first condition we need to match is that current cpu should be
> > idle, but the trace show current pid is 88 not 0.
> >
> > We should add Peter to cc list, may be he will be interested on what
> > happened.
>
> > > [ 10.987506] [<7905fdad>] trigger_load_balance+0x1bd/0x250
> > > [ 10.987506] [<79056d14>] scheduler_tick+0xd4/0x100
> > > [ 10.987506] [<7903bde5>] update_process_times+0x55/0x70
>
> Hmm, added both venki and suresh as they touched it last ;-)
>
> I suppose you're running a hotplug loop along with your workload?
I would definitely like to add some hotplug tests! However for this
trace, it's simply booting into an ubuntu-core initrd and run the
"reboot" command in some late init.d script.
It seems that the bug was introduced somewhere in v3.3..v3.4. I'm now
running 100 kvms to speedup the bisect progress :)
Thanks,
Fengguang
next prev parent reply other threads:[~2012-09-05 12:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-05 1:11 WARNING: cpu_is_offline() at native_smp_send_reschedule() Fengguang Wu
2012-09-05 4:35 ` Michael Wang
2012-09-05 10:54 ` Peter Zijlstra
2012-09-05 12:57 ` Fengguang Wu [this message]
2012-09-07 1:20 ` Fengguang Wu
2012-09-07 3:08 ` Michael Wang
2012-09-07 7:23 ` Peter Zijlstra
2012-09-07 8:17 ` Fengguang Wu
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=20120905125700.GA5833@localhost \
--to=fengguang.wu@intel.com \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=suresh.b.siddha@intel.com \
--cc=venki@google.com \
--cc=wangyun@linux.vnet.ibm.com \
--cc=x86@kernel.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