Skip to content

Various load-balance cleanups/optimizations -v2

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10sched: Remove one division operation in find_busiest_queue()kernel/sched/fair.c+4 -52 replies
2/10sched: Factor out code to should_we_balance()kernel/sched/fair.c+54 -574 replies
3/10sched: Clean-up struct sd_lb_statkernel/sched/fair.c+112 -1135 replies
4/10sched, fair: Shrink sg_lb_stats and play memset gameskernel/sched/fair.c+35 -76 replies
5/10sched, fair: Remove duplicate load_per_task computationskernel/sched/fair.c+2 -110 replies
6/10sched, fair: Make group power more consitentkernel/sched/fair.c+26 -231 reply
7/10sched, fair: Optimize find_busiest_queue()kernel/sched/fair.c+1 -46 replies
8/10sched, fair: Rework and comment the group_imb codekernel/sched/fair.c+89 -340 replies
9/10sched, fair: Fix the sd_parent_degenerate() codekernel/sched/core.c+9 -14 replies
10/10sched, fair: Rewrite group_imb triggerkernel/sched/fair.c kernel/sched/sched.h+31 -600 replies

Reviews trailers per patch

5 of 10 patches have a Reviewed-by or Acked-by.

PatchPaul TurnerPreeti U Murthy
1/10
2/10R-b
3/10R-b
4/10
5/10
6/10R-b
7/10R-b R-b
8/10
9/10R-b
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] Various load-balance cleanups/optimizations -v2

After poking at them a little more I feel somewhat more confident.

I found one more bug, but this one was my own fault, we should also clear sds->busiest_stat.avg_load because update_sd_pick_busiest() reads that before we set it.

Moved the memset optimization and the fix for that into a separate patch.

Other than that, there's a sched_domain degenerate fix; and a new way to detect group_imb (which relies on the sched_domain fix).