sched/fair: A bit of a cgroup/PELT overhaul
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 33 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | sched/fair: Clean up calc_cfs_shares()kernel/ | +12 | 0 replies | |
| 2/18 | sched/fair: Add comment to calc_cfs_shares()kernel/ | +61 | 3 replies | |
| 3/18 | sched/fair: Cure calc_cfs_shares() vs reweight_entity()kernel/ | +3 | 3 replies | |
| 4/18 | sched/fair: Remove se->load.weight from se->avg.load_sumkernel/ | +64 | 2 replies | |
| 5/18 | sched/fair: Change update_load_avg() argumentskernel/ | +15 | 0 replies | |
| 6/18 | sched/fair: Move enqueue migrate handlingkernel/ | +36 | 0 replies | |
| 7/18 | sched/fair: Rename {en,de}queue_entity_load_avg()kernel/ | +6 | 0 replies | |
| 8/18 | sched/fair: Introduce {en,de}queue_load_avg()kernel/ | +86 | 0 replies | |
| 9/18 | sched/fair: More accurate reweight_entity()kernel/ | +11 | 0 replies | |
| 10/18 | sched/fair: Use reweight_entity() for set_user_nice()kernel/ kernel/ kernel/ | +54 | 0 replies | |
| 11/18 | sched/fair: Rewrite cfs_rq->removed_*avgkernel/ kernel/ kernel/ | +48 | 0 replies | |
| 12/18 | sched/fair: Rewrite PELT migration propagationkernel/ kernel/ kernel/ | +112 | 21 replies | |
| 13/18 | sched/fair: Propagate an effective runnable_load_avginclude/ kernel/ kernel/ +1 more | +124 | 4 replies | |
| 14/18 | sched/fair: Synchonous PELT detach on load-balance migratekernel/ | +21 | 0 replies | |
| 15/18 | sched/fair: Align PELT windows between cfs_rq and its sekernel/ | +31 | 4 replies | |
| 16/18 | sched/fair: More accurate async detachkernel/ | +3 | 0 replies | |
| 17/18 | sched/fair: Calculate runnable_weight slightly differentlykernel/ | +33 | 0 replies | |
| 18/18 | sched/fair: Update calc_group_*() commentskernel/ | +45 | 0 replies |
Reviews trailers per patch
1 of 18 patches has a Reviewed-by or Acked-by.
| Patch | Vincent Guittot | Peter 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/18 | A-b | |
| 13/18 | ||
| 14/18 | T-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.
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.