Skip to content

Commit 6c8b1ef

Browse files
cloehlegregkh
authored andcommitted
sched/debug: Provide slice length for fair tasks
[ Upstream commit 9065ce6 ] 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 Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2d1eef2 commit 6c8b1ef

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
@@ -1089,6 +1089,8 @@ void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns,
10891089
if (task_has_dl_policy(p)) {
10901090
P(dl.runtime);
10911091
P(dl.deadline);
1092+
} else if (fair_policy(p->policy)) {
1093+
P(se.slice);
10921094
}
10931095
#undef PN_SCHEDSTAT
10941096
#undef P_SCHEDSTAT

0 commit comments

Comments
 (0)