All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/-/sched
@ 2016-10-24 22:32 Tommaso Cucinotta
  2016-10-24 22:32 ` [RFC PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/*/sched Tommaso Cucinotta
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Tommaso Cucinotta @ 2016-10-24 22:32 UTC (permalink / raw)
  To: Luca Abeni, Juri Lelli, Peter Zijlstra
  Cc: linux-kernel, linux-dl, Tommaso Cucinotta, Daniel Bistrot de Oliveira

Hi all,

this is a tiny patch providing readings of the current (leftover)
runtime and absolute deadline in /proc/*/sched. Mostly useful for
debugging, I heard others playing with SCHED_DEADLINE had some need
for similar patches as well.

In addition to debugging, reading the leftover runtime is generally
useful for adaptive/incremental RT logics that need to check whether
there's enough runtime left for refining the computed result, or just
use what we've computed so far and block till the next instance.
Also, knowing what the absolute scheduling deadline is (along with
what clock it refers to) might be useful for synchronization purposes.
(albeit, for real production code, I wouldn't like to parse /proc anyway,
rather I'd prefer to retrieve those params via eg sched_getscheduler()?)

Please, share your thoughts, thanks.

  Tommaso

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-01-14 12:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-24 22:32 [RFC PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/-/sched Tommaso Cucinotta
2016-10-24 22:32 ` [RFC PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/*/sched Tommaso Cucinotta
2016-10-25  9:39   ` Juri Lelli
2016-10-25  9:25 ` [RFC PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/-/sched Peter Zijlstra
2016-10-25  9:33   ` Juri Lelli
2016-10-25 10:10     ` luca abeni
2016-10-25 11:31       ` Daniel Bristot de Oliveira
2016-10-26  9:17 ` [PATCH] " Tommaso Cucinotta
2016-10-26  9:17   ` [PATCH] sched/deadline: show leftover runtime and abs deadline in /proc/*/sched Tommaso Cucinotta
2017-01-14 12:47     ` [tip:sched/core] sched/deadline: Show " tip-bot for Tommaso Cucinotta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.