Skip to content

RFC sched/ext: Cleanup pick_task_scx()

Peter Zijlstra cgroups lkml sched-ext 1 version Applied

Status from this message: The following commit has been merged into the sched/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 16 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3sched: Detect per-class runqueue changeskernel/sched/core.c kernel/sched/deadline.c kernel/sched/ext.c +5 more+27 -23 replies
2/3sched: Add support to pick functions to take rfinclude/linux/sched.h kernel/sched/core.c kernel/sched/deadline.c +6 more+48 -369 replies
3/3sched/ext: Fold balance_scx() into pick_task_scx()kernel/sched/core.c kernel/sched/ext.c kernel/sched/sched.h+12 -800 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTejun Heo
SeriesA-b
1/3
2/3
3/3

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

Read the v1 thread

Cover letter [RFC][PATCH 0/3] sched/ext: Cleanup pick_task_scx()

Hi,

So I had a poke at 'give @rf to pick_task() and fold balance_scx() into pick_task_scx()' option to see how terrible it was. Turns out, not terrible at all.

I've ran the sched_ext selftest and stress-ng --race-sched 0 thing with various scx_* thingies on.

These patches were done on top of the 'sched_change' patches posted just now:

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

The combined set is also available here:

git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/cleanup-pick

---
 include/linux/sched.h    |  7 ++---
 kernel/sched/core.c      | 50 ++++++++++++++++-------------
 kernel/sched/deadline.c  | 10 +++---
 kernel/sched/ext.c       | 82 +++++++++---------------------------------------
 kernel/sched/fair.c      | 23 +++++++-------
 kernel/sched/idle.c      |  4 ++-
 kernel/sched/rt.c        |  4 ++-
 kernel/sched/sched.h     | 21 ++++++++++---
 kernel/sched/stop_task.c |  4 ++-
 9 files changed, 87 insertions(+), 118 deletions(-)