Skip to content

Reintroduce NEXT_BUDDY for EEVDF

Mel Gorman lkml 3 versions – 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 · linked by author and title

  1. v5 Latest1 of 2 patches 21 repliesApplied
  2. v42 patches 4 repliesSuperseded
  3. v12 patches 9 repliesSuperseded

Changes in v5 from the cover letter

o Splitout decisions into separate functions (peterz)
o Flow clarity (peterz)

1 of 2 patches is in this archive. The cover letter announces 2.

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2sched/fair: Enable scheduler feature NEXT_BUDDYkernel/sched/features.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH 0/2 v5] Reintroduce NEXT_BUDDY for EEVDF

Changes since v4
o Splitout decisions into separate functions (peterz)
o Flow clarity (peterz)

Changes since v3
o Place new code near first consumer (peterz)
o Separate between PREEMPT_SHORT and NEXT_BUDDY (peterz)
o Naming and code flow clarity (peterz)
o Restore slice protection (peterz)

Changes since v2
o Review feedback applied from Prateek

I've been chasing down a number of schedule issues recently like many others and found they were broadly grouped as

1. Failure to boost CPU frequency with powersave/ondemand governors
2. Processors entering idle states that are too deep
3. Differences in wakeup latencies for wakeup-intensive workloads

Adding topology into account means that there is a lot of machine-specific behaviour which may explain why some discussions recently have reproduction problems. Nevertheless, the removal of LAST_BUDDY and NEXT_BUDDY being disabled has an impact on wakeup latencies.

This series enables NEXT_BUDDY and may select a wakee if it's eligible to run even though other unrelated tasks may have an earlier deadline.

Mel Gorman (2):
sched/fair: Enable scheduler feature NEXT_BUDDY sched/fair: Reimplement NEXT_BUDDY to align with EEVDF goals

 kernel/sched/fair.c     | 152 ++++++++++++++++++++++++++++++++++------
 kernel/sched/features.h |   2 +-
 2 files changed, 131 insertions(+), 23 deletions(-)
Signature · 1 line
2.51.0