Skip to content

Acquire sched_balance_running only when needed

Tim Chen stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched/fair: Skip sched_balance_running cmpxchg when balance is not duekernel/sched/fair.c+28 -260 replies
2/2sched/fair: Have SD_SERIALIZE affect newidle balancingkernel/sched/fair.c+1 -10 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchChen YuVincent GuittotShrikanth HegdeK Prateek NayakSrikar DronamrajuMohini Narkhede
1/2R-b R-b R-b T-b R-b R-b T-b
2/2Seconded-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH 6.18 0/2] Acquire sched_balance_running only when needed

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(-)
Signature · 1 line
2.32.0