summaryrefslogtreecommitdiff
path: root/kernel/sched/features.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-03-25 13:44:46 +0100
committerPeter Zijlstra <peterz@infradead.org>2021-04-16 17:06:35 +0200
commit0c2de3f054a59f15e01804b75a04355c48de628c (patch)
treecacb2c2f2ad3711dac0212cc31dbdbedda6552f2 /kernel/sched/features.h
parentd27e9ae2f244805bbdc730d85fba28685d2471e5 (diff)
sched,fair: Alternative sched_slice()
The current sched_slice() seems to have issues; there's two possible things that could be improved: - the 'nr_running' used for __sched_period() is daft when cgroups are considered. Using the RQ wide h_nr_running seems like a much more consistent number. - (esp) cgroups can slice it real fine, which makes for easy over-scheduling, ensure min_gran is what the name says. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Valentin Schneider <valentin.schneider@arm.com> Link: https://lkml.kernel.org/r/20210412102001.611897312@infradead.org
Diffstat (limited to 'kernel/sched/features.h')
-rw-r--r--kernel/sched/features.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/sched/features.h b/kernel/sched/features.h
index 422fa68c0ee9..011c5ec7b7b5 100644
--- a/kernel/sched/features.h
+++ b/kernel/sched/features.h
@@ -90,3 +90,6 @@ SCHED_FEAT(WA_BIAS, true)
*/
SCHED_FEAT(UTIL_EST, true)
SCHED_FEAT(UTIL_EST_FASTUP, true)
+
+SCHED_FEAT(ALT_PERIOD, true)
+SCHED_FEAT(BASE_SLICE, true)