public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6.18 0/2] Acquire sched_balance_running only when needed
@ 2026-02-05 21:31 Tim Chen
  2026-02-05 21:31 ` [PATCH 6.18 1/2] sched/fair: Skip sched_balance_running cmpxchg when balance is not due Tim Chen
  2026-02-05 21:31 ` [PATCH 6.18 2/2] sched/fair: Have SD_SERIALIZE affect newidle balancing Tim Chen
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Chen @ 2026-02-05 21:31 UTC (permalink / raw)
  To: stable
  Cc: Tim Chen, Peter Zijlstra, Ingo Molnar, Chen Yu, Doug Nelson,
	Mohini Narkhede, Vincent Guittot, K Prateek Nayak,
	Srikar Dronamraju, nathan

Balancing sched domains NUMA and above are serialized.
Currently, multiple sched group leader directly under NUMA domain could
attempt to acquire the global sched_balance_running flag via cmpxchg() before
checking whether load balancing is due. Fix unnecessary
sched_balance_running acquisition and also put newidle balance
properly in serialization.  This improves performance for OLTP workload
on large core count machines.

These patches have been merged upstream.

Thanks.

Tim

Peter Zijlstra (1):
  sched/fair: Have SD_SERIALIZE affect newidle balancing

Tim Chen (1):
  sched/fair: Skip sched_balance_running cmpxchg when balance is not due

 kernel/sched/fair.c | 54 +++++++++++++++++++++++----------------------
 1 file changed, 28 insertions(+), 26 deletions(-)

-- 
2.32.0


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

end of thread, other threads:[~2026-02-05 21:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05 21:31 [PATCH 6.18 0/2] Acquire sched_balance_running only when needed Tim Chen
2026-02-05 21:31 ` [PATCH 6.18 1/2] sched/fair: Skip sched_balance_running cmpxchg when balance is not due Tim Chen
2026-02-05 21:31 ` [PATCH 6.18 2/2] sched/fair: Have SD_SERIALIZE affect newidle balancing Tim Chen

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