Skip to content

RFC sched/fair migration reduction features

Mathieu Desnoyers lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 17 repliesIn review
  2. v1 RFC2 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched/fair: Introduce UTIL_FITS_CAPACITY feature (v2)kernel/sched/fair.c kernel/sched/features.h kernel/sched/sched.h+45 -610 replies
2/2sched/fair: Introduce SELECT_BIAS_PREV to reduce migrationskernel/sched/fair.c kernel/sched/features.h+32 -20 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [RFC PATCH v2 0/2] sched/fair migration reduction features

Hi,

This series introduces two new scheduler features: UTIL_FITS_CAPACITY and SELECT_BIAS_PREV. When used together, they achieve a 41% speedup of a hackbench workload which leaves some idle CPU time on a 192-core AMD EPYC.

The main metrics which are significantly improved are:

- cpu-migrations are reduced by 80%,
- CPU utilization is increased by 17%.

Feedback is welcome. I am especially interested to learn whether this series has positive or detrimental effects on performance of other workloads.

The main changes since v1 are to take into account feedback from Chen Yu and keep a 20% margin of unused utilization in the capacity fit, and use scale_rt_capacity() which is more precise.

Thanks,

Mathieu

Cc Ingo Molnar <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Valentin Schneider <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Ben Segall <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Daniel Bristot de Oliveira <[email protected]>
Cc Vincent Guittot <[email protected]>
Cc Juri Lelli <[email protected]>
Cc Swapnil Sapkal <[email protected]>
Cc Aaron Lu <[email protected]>
Cc Chen Yu <[email protected]>
Cc Tim Chen <[email protected]>
Cc K Prateek Nayak <[email protected]>
Cc Gautham R . Shenoy <[email protected]>

Mathieu Desnoyers (2):
sched/fair: Introduce UTIL_FITS_CAPACITY feature (v2) sched/fair: Introduce SELECT_BIAS_PREV to reduce migrations

 kernel/sched/fair.c     | 68 ++++++++++++++++++++++++++++++++++++-----
 kernel/sched/features.h | 12 ++++++++
 kernel/sched/sched.h    |  5 +++
 3 files changed, 77 insertions(+), 8 deletions(-)
Signature · 1 line
2.39.2