rcu.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RCU use of swait
@ 2020-03-05  0:35 Paul E. McKenney
  2020-03-05  8:11 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 4+ messages in thread
From: Paul E. McKenney @ 2020-03-05  0:35 UTC (permalink / raw)
  To: josh, rostedt, mathieu.desnoyers, jiangshanlai, joel, bigeasy,
	tglx, swood, williams, juri.lelli, linux-rt-users
  Cc: rcu, linux-kernel, mingo

Hello!

RCU makes considerable use of swait and friends.  The motivation I recall
was around offloaded callbacks, where in the old days the grace-period
kthread might do a wakeup for up to N tasks, where N is the number of
CPUs, all with interrupts disabled.  This has since been reduced to
roughly sqrt(N) tasks, which might well still be too many wakeups to do
with interrupts disabled throughout.

However, the other use cases have at most one waiter to be awakened.

So I am guessing that I could usefully convert all but the rcu_node
structure's ->nocb_gp_wq field from swait to wait.  Particularly the
use cases in SRCU and Tiny RCU.

Or is there some other reason why {S,}RCU needs to use swait that I
am forgetting?

							Thanx, Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-19  9:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-05  0:35 RCU use of swait Paul E. McKenney
2020-03-05  8:11 ` Sebastian Andrzej Siewior
2020-03-19  0:47   ` Joel Fernandes
2020-03-19  9:25     ` Sebastian Andrzej Siewior

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).