Skip to content

Commit 9065ce6

Browse files
cloehleIngo Molnar
authored andcommitted
sched/debug: Provide slice length for fair tasks
Since commit: 857b158 ("sched/eevdf: Use sched_attr::sched_runtime to set request/slice suggestion") ... we have the userspace per-task tunable slice length, which is a key parameter that is otherwise difficult to obtain, so provide it in /proc/$PID/sched. [ mingo: Clarified the changelog. ] Signed-off-by: Christian Loehle <christian.loehle@arm.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/453349b1-1637-42f5-a7b2-2385392b5956@arm.com
1 parent 3429dd5 commit 9065ce6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/sched/debug.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,8 @@ void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns,
12651265
if (task_has_dl_policy(p)) {
12661266
P(dl.runtime);
12671267
P(dl.deadline);
1268+
} else if (fair_policy(p->policy)) {
1269+
P(se.slice);
12681270
}
12691271
#ifdef CONFIG_SCHED_CLASS_EXT
12701272
__PS("ext.enabled", task_on_scx(p));

0 commit comments

Comments
 (0)