[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1293110258.3390.41.camel@Palantir>
Date: Thu, 23 Dec 2010 14:17:37 +0100
From: Dario Faggioli <raistlin@...ux.it>
To: torbenh <torbenh@....de>
Cc: linux-kernel@...r.kernel.org,
Peter Zijlstra <peterz@...radead.org>,
Steven Rostedt <rostedt@...dmis.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...e.hu>,
Gregory Haskins <ghaskins@...ell.com>,
Nick Piggin <nickpiggin@...oo.com.au>
Subject: Re: Sending some form of notifaction when sched_fifo throttling
kicks in...
On Thu, 2010-12-23 at 12:39 +0100, torbenh wrote:
> hi...
>
Hi,
> when the rt_runtime budget is exceeded, the kernel silently stops
> scheduling RT tasks. there is no way to distinguish this from
> a task taking very long to complete.
>
Well, this depends on how you do the accounting in your (user-level)
code.
> it would be very nice, if the kernel would send some form of notifaction
> when it starts throttling things.
>
This might be tricky, if the meaning is signals or something to the
throttled tasks, since you can have a (or more!) runqueue full of
them... Are we signalling them all? Moreover, they'll get the
notification only after resuming, and it's not guaranteed that this
helps in finding out who is "responsible for" the throttling and... By
the way...
> recording the timestamp of the last occurence of throttling
> in a /proc file would be sufficient, if there were no cgroups.
>
> would it be possible to add a readonly property to the cpu subsystem ?
>
... If you think you're fine with some /proc (and perhaps cpuacct, if
cgroups are being used) readable, I can try to come up with something.
I think that the number of times that throttling fired and the last
throttling instant could be exported this way without much issues.
Do others have some idea and/or comments about that? This is
ABI/interface, and that really scares me! :-P
Thanks and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
----------------------------------------------------------------------
Dario Faggioli, ReTiS Lab, Scuola Superiore Sant'Anna, Pisa (Italy)
http://retis.sssup.it/people/faggioli -- dario.faggioli@...ber.org
Download attachment "signature.asc" of type "application/pgp-signature" (199 bytes)
Powered by blists - more mailing lists