Skip to content

sched/fair: A bit of a cgroup/PELT overhaul

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18sched/fair: Clean up calc_cfs_shares()kernel/sched/fair.c+12 -190 replies
2/18sched/fair: Add comment to calc_cfs_shares()kernel/sched/fair.c+61 -03 replies
3/18sched/fair: Cure calc_cfs_shares() vs reweight_entity()kernel/sched/fair.c+3 -43 replies
4/18sched/fair: Remove se->load.weight from se->avg.load_sumkernel/sched/fair.c+64 -272 replies
5/18sched/fair: Change update_load_avg() argumentskernel/sched/fair.c+15 -160 replies
6/18sched/fair: Move enqueue migrate handlingkernel/sched/fair.c+36 -340 replies
7/18sched/fair: Rename {en,de}queue_entity_load_avg()kernel/sched/fair.c+6 -60 replies
8/18sched/fair: Introduce {en,de}queue_load_avg()kernel/sched/fair.c+86 -700 replies
9/18sched/fair: More accurate reweight_entity()kernel/sched/fair.c+11 -10 replies
10/18sched/fair: Use reweight_entity() for set_user_nice()kernel/sched/core.c kernel/sched/fair.c kernel/sched/sched.h+54 -330 replies
11/18sched/fair: Rewrite cfs_rq->removed_*avgkernel/sched/debug.c kernel/sched/fair.c kernel/sched/sched.h+48 -240 replies
12/18sched/fair: Rewrite PELT migration propagationkernel/sched/debug.c kernel/sched/fair.c kernel/sched/sched.h+112 -8521 replies
13/18sched/fair: Propagate an effective runnable_load_avginclude/linux/sched.h kernel/sched/debug.c kernel/sched/fair.c +1 more+124 -624 replies
14/18sched/fair: Synchonous PELT detach on load-balance migratekernel/sched/fair.c+21 -120 replies
15/18sched/fair: Align PELT windows between cfs_rq and its sekernel/sched/fair.c+31 -144 replies
16/18sched/fair: More accurate async detachkernel/sched/fair.c+3 -60 replies
17/18sched/fair: Calculate runnable_weight slightly differentlykernel/sched/fair.c+33 -120 replies
18/18sched/fair: Update calc_group_*() commentskernel/sched/fair.c+45 -230 replies

Reviews trailers per patch

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

PatchVincent GuittotPeter Zijlstra (Intel)
1/18
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18A-b
13/18
14/18T-b
15/18
16/18
17/18
18/18

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 -v2 00/18] sched/fair: A bit of a cgroup/PELT overhaul

Hi all,

New this time is that Josef identified and fixed a problem he had with it. He also provided many compile fixes. Meanwhile I managed to reflow the patches so that the whole now looks like a normal patch series.

Other than that, it should still very much be what it was before.. From the previous announce:

---

So after staring at all that PELT stuff and working my way through it again:

https://lkml.kernel.org/r/[email protected]

I started doing some patches to fix some of the identified broken.

So here are a few too many patches that do:

- fix 'reweight_entity' to instantly propagate the change in se->load.weight.

- rewrite/fix the propagate on migrate (attach/detach)

- introduce the hierarchical runnable_load_avg, as proposed by Tejun.

- synchronous detach for runnable migrates

- aligns the PELT windows between a cfs_rq and all its se's

- deals with random fallout from the above (some of this needs folding back and reordering, but its all well past the point I should post this anyway).

IIRC pjt recently mentioned the reweight_entity thing, and I have very vague memories he once talked about the window alignment thing -- which I only remembered after (very painfully) having discovered I really needed that.

In any case, the reason I did the reweight_entity thing first, is because I feel that is the right place to also propagate the hierarchical runnable_load, as that is the natural place where a group's cfs_rq is coupled to its sched_entity.

And the hierachical runnable_load needs that coupling. TJ did it by hijacking the attach/detach migrate code, which I didn't much like. In any case, all that got me looking at said attach/detach migrate code and find pain. So I went and fixed that too.

---

Still very many thanks to Vincent, Dietmar and Josef for poking at these patches.

If nothing untowards happens, I plan to get them merged after the immenent merge window.