Linux RCU subsystem development
 help / color / mirror / Atom feed
* [PATCH rcu 0/4] Reduce lock contention during RCU CPU stall warnings
@ 2024-08-23 21:14 Paul E. McKenney
  2024-08-23 21:15 ` [PATCH rcu 1/4] rcu: Defer printing stall-warning backtrace when holding rcu_node lock Paul E. McKenney
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paul E. McKenney @ 2024-08-23 21:14 UTC (permalink / raw)
  To: rcu; +Cc: linux-kernel, kernel-team, rostedt, riel

Hello!

This patch series reduces lock contention during RCU CPU stall warnings,
especially on systems having slow consoles.  It does this first by
deferring printk() output, second by refraining from emitting stack
backtraces if the grace period should end partway through, and third
by using a lockless check in order to avoid ever acquiring the lock for
leaf rcu_node structures not associated with a stalled CPU.  In the case
where a given rcu_node structure is associated with multiple stalled CPUs,
the lock is also dropped and reacquired for each stalled CPU.

While in the area, get rid of a function that is no longer used.

1.	Defer printing stall-warning backtrace when holding rcu_node lock.

2.	Delete unused rcu_gp_might_be_stalled() function.

3.	Stop stall warning from dumping stacks if grace period ends.

4.	Finer-grained grace-period-end checks in rcu_dump_cpu_stacks().

						Thanx, Paul

------------------------------------------------------------------------

 b/include/linux/rcutiny.h |    1 
 b/include/linux/rcutree.h |    1 
 b/kernel/rcu/tree_stall.h |    2 +
 kernel/rcu/tree_stall.h   |   65 +++++++++++++++-------------------------------
 4 files changed, 24 insertions(+), 45 deletions(-)

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

end of thread, other threads:[~2024-08-23 21:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23 21:14 [PATCH rcu 0/4] Reduce lock contention during RCU CPU stall warnings Paul E. McKenney
2024-08-23 21:15 ` [PATCH rcu 1/4] rcu: Defer printing stall-warning backtrace when holding rcu_node lock Paul E. McKenney
2024-08-23 21:15 ` [PATCH rcu 2/4] rcu: Delete unused rcu_gp_might_be_stalled() function Paul E. McKenney
2024-08-23 21:15 ` [PATCH rcu 3/4] rcu: Stop stall warning from dumping stacks if grace period ends Paul E. McKenney
2024-08-23 21:15 ` [PATCH rcu 4/4] rcu: Finer-grained grace-period-end checks in rcu_dump_cpu_stacks() Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox