[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6026B72AB@saturn3.aculab.com>
Date: Thu, 27 Jun 2013 09:54:41 +0100
From: "David Laight" <David.Laight@...LAB.COM>
To: "Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>,
"Tejun Heo" <tj@...nel.org>
Cc: "Steven Rostedt" <rostedt@...dmis.org>,
<paulmck@...ux.vnet.ibm.com>, <peterz@...radead.org>,
<fweisbec@...il.com>, <linux-kernel@...r.kernel.org>,
<walken@...gle.com>, <mingo@...nel.org>,
<linux-arch@...r.kernel.org>, <vincent.guittot@...aro.org>,
<xiaoguangrong@...ux.vnet.ibm.com>, <wangyun@...ux.vnet.ibm.com>,
<nikunj@...ux.vnet.ibm.com>, <linux-pm@...r.kernel.org>,
<rusty@...tcorp.com.au>, <namhyung@...nel.org>,
<tglx@...utronix.de>, <laijs@...fujitsu.com>,
<zhong@...ux.vnet.ibm.com>, <netdev@...r.kernel.org>,
<oleg@...hat.com>, <sbw@....edu>, <akpm@...ux-foundation.org>,
<linuxppc-dev@...ts.ozlabs.org>
Subject: RE: [PATCH v2 15/45] rcu: Use get/put_online_cpus_atomic() to prevent CPU offline
> >>> It would also increase the latency of CPU-hotunplug operations.
> >>
> >> Is that a big deal?
> >
> > I thought that was the whole deal with this patchset - making cpu
> > hotunplugs lighter and faster mostly for powersaving. That said, just
> > removing stop_machine call would be a pretty good deal and I don't
> > know how meaningful reducing CPU hotunplug latency is. Srivatsa?
> >
>
> Keeping the hotunplug latency is important for suspend/resume, where
> we take all non-boot CPUs in a loop. That's an interesting use-case
> where intrusiveness doesn't matter much, but latency does. So yes,
> making CPU hotplug faster is also one of the goals of this patchset.
If you are removing all but one of the cpu, the you only need
one rcu cycle (remove everything from the list first).
I'd also guess that you can't suspend a cpu until you can sleep
the process that is running on it - so if a process has pre-emption
disabled you aren't going to complete suspend until the process
sleeps (this wouldn't be true if you suspended the cpu with its
current stack - but if suspend is removing the non-boot cpus first
it must be doing so from the scheduler idle loop).
If you are doing suspend for aggressive power saving, then all the
processes (and processors) will already be idle. However you
probably wouldn't want the memory accesses to determine this on
a large NUMA system with 1024+ processors.
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists