From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Mike Galbraith <efault@gmx.de>
Cc: Dimitri Sivanich <sivanich@sgi.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC] rcu: Limit GP initialization to CPUs that have been online
Date: Fri, 23 Mar 2012 12:23:35 -0700 [thread overview]
Message-ID: <20120323192335.GZ2450@linux.vnet.ibm.com> (raw)
In-Reply-To: <1332478086.5721.17.camel@marge.simpson.net>
On Fri, Mar 23, 2012 at 05:48:06AM +0100, Mike Galbraith wrote:
> On Thu, 2012-03-22 at 15:24 -0500, Dimitri Sivanich wrote:
> > On Thu, Mar 22, 2012 at 04:35:33PM +0100, Mike Galbraith wrote:
>
> > > > This patch also shows great improvement in the two
> > > > rcu_for_each_node_breadth_first() (nothing over 20 usec and most less than
> > > > 10 in initial testing).
> > > >
> > > > However, there are spinlock holdoffs at the following tracebacks (my nmi
> > > > handler does work on the 3.0 kernel):
> > > >
> > > > [ 584.157019] [<ffffffff8144c5a0>] nmi+0x20/0x30
> > > > [ 584.157023] [<ffffffff8144bc8a>] _raw_spin_lock_irqsave+0x1a/0x30
> > > > [ 584.157026] [<ffffffff810c5f18>] force_qs_rnp+0x58/0x170
> > > > [ 584.157030] [<ffffffff810c6192>] force_quiescent_state+0x162/0x1d0
> > > > [ 584.157033] [<ffffffff810c6c95>] __rcu_process_callbacks+0x165/0x200
> > > > [ 584.157037] [<ffffffff810c6d4d>] rcu_process_callbacks+0x1d/0x80
> > > > [ 584.157041] [<ffffffff81061eaf>] __do_softirq+0xef/0x220
> > > > [ 584.157044] [<ffffffff81454cbc>] call_softirq+0x1c/0x30
> > > > [ 584.157048] [<ffffffff810043a5>] do_softirq+0x65/0xa0
> > > > [ 584.157051] [<ffffffff81061c85>] irq_exit+0xb5/0xe0
> > > > [ 584.157054] [<ffffffff810212c8>] smp_apic_timer_interrupt+0x68/0xa0
> > > > [ 584.157057] [<ffffffff81454473>] apic_timer_interrupt+0x13/0x20
> > > > [ 584.157061] [<ffffffff8102b352>] native_safe_halt+0x2/0x10
> > > > [ 584.157064] [<ffffffff8100adf5>] default_idle+0x145/0x150
> > > > [ 584.157067] [<ffffffff810020c6>] cpu_idle+0x66/0xc0
> > >
> > > Care to try this? There's likely a better way to defeat ->qsmask == 0
> > > take/release all locks thingy, however, if Paul can safely bail in
> > > force_qs_rnp() in tweakable latency for big boxen patch, I should be
> > > able to safely (and shamelessly) steal that, and should someone hotplug
> > > a CPU, and we race, do the same thing bail for small boxen.
> >
> > Tested on a 48 cpu UV system with an interrupt latency test on isolated
> > cpus and a moderate to heavy load on the rest of the system.
> >
> > This patch appears to take care of all excessive (> 35 usec) RCU-based
> > latency in the 3.0 kernel on this particular system for this particular
> > setup. Without the patch, I see many latencies on this system > 150 usec
> > (and some > 200 usec).
>
> Figures. I bet Paul has a better idea though. Too bad we can't whack
> those extra barriers, that would likely wipe RCU from your radar.
Sorry for the silence -- was hit by the germs going around. I do have
some concerns about some of the code, but very much appreciate the two
of you continuing on this in my absence!
Thanx, Paul
next prev parent reply other threads:[~2012-03-23 19:23 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-14 0:24 [PATCH RFC] rcu: Limit GP initialization to CPUs that have been online Paul E. McKenney
2012-03-14 9:24 ` Mike Galbraith
2012-03-14 12:40 ` Mike Galbraith
2012-03-14 13:08 ` Dimitri Sivanich
2012-03-14 15:17 ` Paul E. McKenney
2012-03-14 16:56 ` Paul E. McKenney
2012-03-15 2:42 ` Mike Galbraith
2012-03-15 3:07 ` Mike Galbraith
2012-03-15 17:02 ` Paul E. McKenney
2012-03-15 17:21 ` Dimitri Sivanich
2012-03-16 4:45 ` Mike Galbraith
2012-03-15 17:59 ` Dimitri Sivanich
2012-03-16 7:27 ` Mike Galbraith
2012-03-16 8:09 ` Mike Galbraith
2012-03-16 8:45 ` Mike Galbraith
2012-03-16 17:28 ` Dimitri Sivanich
2012-03-16 17:51 ` Paul E. McKenney
2012-03-16 17:56 ` Dimitri Sivanich
2012-03-16 19:11 ` Mike Galbraith
2012-03-22 15:35 ` Mike Galbraith
2012-03-22 20:24 ` Dimitri Sivanich
2012-03-23 4:48 ` Mike Galbraith
2012-03-23 19:23 ` Paul E. McKenney [this message]
2012-04-11 11:04 ` Mike Galbraith
2012-04-13 18:42 ` Paul E. McKenney
2012-04-14 5:42 ` Mike Galbraith
2012-03-15 17:58 ` Dimitri Sivanich
2012-03-15 18:23 ` Paul E. McKenney
2012-03-15 21:07 ` Paul E. McKenney
2012-03-16 15:46 ` Dimitri Sivanich
2012-03-16 17:21 ` Paul E. McKenney
2012-03-14 17:07 ` Mike Galbraith
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=20120323192335.GZ2450@linux.vnet.ibm.com \
--to=paulmck@linux.vnet.ibm.com \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sivanich@sgi.com \
/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