RFC sched: Core scheduling
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest16 patches 82 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | stop_machine: Fix stop_cpus_in_progress orderingkernel/ | +2 | 0 replies | |
| 2/16 | sched: Fix kerneldoc comment for ia64_set_curr_taskkernel/ | +1 | 0 replies | |
| 3/16 | sched: Wrap rq::lock accesskernel/ kernel/ kernel/ +6 more | +114 | 18 replies | |
| 4/16 | sched/{rt,deadline}: Fix set_next_task vs pick_next_taskkernel/ kernel/ | +26 | 0 replies | |
| 5/16 | sched: Add task_struct pointer to sched_class::set_curr_taskkernel/ kernel/ kernel/ +4 more | +49 | 0 replies | |
| 6/16 | sched/fair: Export newidle_balance()kernel/ kernel/ | +12 | 0 replies | |
| 7/16 | sched: Allow put_prev_task() to drop rq->lockkernel/ kernel/ kernel/ +4 more | +32 | 0 replies | |
| 8/16 | sched: Rework pick_next_task() slow-pathkernel/ kernel/ kernel/ +4 more | +34 | 0 replies | |
| 9/16 | sched: Introduce sched_class::pick_task()kernel/ kernel/ kernel/ +3 more | +89 | 0 replies | |
| 10/16 | sched: Core-wide rq->lockkernel/ kernel/ kernel/ | +129 | 0 replies | |
| 11/16 | sched: Basic tracking of matching tasksinclude/ kernel/ kernel/ | +156 | 0 replies | |
| 12/16 | sched: A quick and dirty cgroup tagging interfacekernel/ kernel/ | +66 | 0 replies | |
| 13/16 | sched: Add core wide task selection and scheduling.kernel/ kernel/ | +224 | 19 replies | |
| 14/16 | sched/fair: Add a few assertionskernel/ | +10 | 0 replies | |
| 15/16 | sched: Trivial forced-newidle balancerinclude/ kernel/ kernel/ +1 more | +138 | 6 replies | |
| 16/16 | sched: Debug bits...kernel/ | +35 | 0 replies |
Reviews trailers per patch
None of the 16 patches has a Reviewed-by or Acked-by.
| Patch | Peter Zijlstra (Intel) |
|---|---|
| 1/16 | |
| 2/16 | |
| 3/16 | |
| 4/16 | |
| 5/16 | |
| 6/16 | |
| 7/16 | |
| 8/16 | |
| 9/16 | |
| 10/16 | |
| 11/16 | |
| 12/16 | |
| 13/16 | |
| 14/16 | |
| 15/16 | |
| 16/16 | Not-Signed-off-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC][PATCH 00/16] sched: Core scheduling
A much 'demanded' feature: core-scheduling :-(
I still hate it with a passion, and that is part of why it took a little longer than 'promised'.
While this one doesn't have all the 'features' of the previous (never published) version and isn't L1TF 'complete', I tend to like the structure better (relatively speaking: I hate it slightly less).
This one is sched class agnostic and therefore, in principle, doesn't horribly wreck RT (in fact, RT could 'ab'use this by setting 'task->core_cookie = task' to force-idle siblings).
Now, as hinted by that, there are semi sane reasons for actually having this. Various hardware features like Intel RDT - Memory Bandwidth Allocation, work per core (due to SMT fundamentally sharing caches) and therefore grouping related tasks on a core makes it more reliable.
However; whichever way around you turn this cookie; it is expensive and nasty.
It doesn't help that there are truly bonghit crazy proposals for using this out there, and I really hope to never see them in code.
These patches are lightly tested and didn't insta explode, but no promises, they might just set your pets on fire.
'enjoy'
@pjt; I know this isn't quite what we talked about, but this is where I ended up after I started typing. There's plenty design decisions to question and my changelogs don't even get close to beginning to cover them all. Feel free to ask.
--- include/linux/sched.h | 9 +- kernel/Kconfig.preempt | 8 +- kernel/sched/core.c | 762 ++++++++++++++++++++++++++++++++++++++++++++--- kernel/sched/deadline.c | 99 +++--- kernel/sched/debug.c | 4 +- kernel/sched/fair.c | 129 +++++--- kernel/sched/idle.c | 42 ++- kernel/sched/pelt.h | 2 +- kernel/sched/rt.c | 96 +++--- kernel/sched/sched.h | 183 ++++++++---- kernel/sched/stop_task.c | 35 ++- kernel/sched/topology.c | 4 +- kernel/stop_machine.c | 2 + 13 files changed, 1096 insertions(+), 279 deletions(-)