From: Stanislav Meduna <stano@meduna.org>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: Re: [PATCH] sched/rt: Unthrottle the highest RT task of the rq if there are no another available tasks to be picked
Date: Tue, 12 Feb 2013 09:12:23 +0100 [thread overview]
Message-ID: <5119F967.3040302@meduna.org> (raw)
In-Reply-To: <1360652809.4657.87.camel@marge.simpson.net>
On 12.02.2013 08:06, Mike Galbraith wrote:
>> In this case pick_next_task takes idle tasks and idle wastes cpu
>> time.
> That's not a waste of CPU time, that's utilization enforcement the thing
> it is designed to do.
Well this is a philosophical question and the opinions will IMHO
vary strongly. If the throttling kicks in, the system already
is in the out-of-spec state. Is the goal now just to allow
e.g. the ssh login to be able to kill the task and still try
to do the best if otherwise (possibly masking the problem for
months), or is it to enforce the utilization?
For example we have a PLC software where the end-user develops
an application that will be executed in our realtime task.
The application usually has a longer initialization part where
the excess utilization can happen and should be tolerated
and the running part where it is a bug if it happens. Here
I would prefer the throttling to alert the user, but not
to actually throttle if there is no non-RT task actually
wanting to run. In other cases I would maybe prefer even
killing the task, alerting the user to the fact.
I have a related question: is the information that the throttling
happened available somewhere except the log (where it gets only
written once)? If not, would a patch exporting the count
of throttlings via /sys be accepted?
My problem is that I would like to know that the throttling
happened right now and display it to the user.
Regards
--
Stano
next prev parent reply other threads:[~2013-02-12 8:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-11 21:31 [PATCH] sched/rt: Unthrottle the highest RT task of the rq if there are no another available tasks to be picked Kirill Tkhai
2013-02-12 7:06 ` Mike Galbraith
2013-02-12 8:12 ` Stanislav Meduna [this message]
2013-02-12 12:15 ` Mike Galbraith
2013-02-12 14:46 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5119F967.3040302@meduna.org \
--to=stano@meduna.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.