From: Peter Zijlstra <peterz@infradead.org>
To: Henrik Austad <henrik@austad.us>
Cc: GeunSik Lim <leemgs1@gmail.com>,
finarfin@dreamos.org, linux-kernel@vger.kernel.org
Subject: Re: SCHED_EDF infos
Date: Sat, 30 May 2009 21:15:57 +0200 [thread overview]
Message-ID: <1243710957.6645.157.camel@laptop> (raw)
In-Reply-To: <20090508091052.GA10429@januz.myftp.org>
On Fri, 2009-05-08 at 11:10 +0200, Henrik Austad wrote:
> > In fact, I also don't have perfect know how to solve PI in Multicore.
> > [...]
> > > deadline inversion will be a problem, in fact, whatever you chooose to
> > > be the 'key' for picking tasks (priority, niceness, deadlines, wind
> > > direction, <whatever>), you can pretty much take that and add a
> > > -inversion after it. :)
>
> No, PI is going to be deadly no matter what you do.
Right, we would need to extend the Priority Inheritance Protocol to
include everything the regular scheduling functions operate on.
That is, we can reduce scheduling to a single order operator that orders
all the available tasks, such that t_n < t_n+1.
For pure EDF that would be a comparison on deadlines (and available
bandwidth), for FIFO on static priority and for CFS something based on
the virtual runtimes of the involved tasks. For the combined set of
these scheduling classes the comparator uses the class hierarchy to
order between them.
Lets call the full set of data that is used to determine this order a
task's key.
If we then substitute this key for the static priority of the classic
PIP and use this generic comparison operator, it can be extended to
cover arbitrary complex scheduling functions.
This is a bit like the Proxy Execution Protocol, where we leave the
blocked task in the runqueue, but run another task in its stead. The key
point is that it donates the full task state as relevant to the
scheduling function, or even more directly, it uses the scheduler
itself, to solve the Priority Inversion.
next prev parent reply other threads:[~2009-05-30 19:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-29 21:36 SCHED_EDF infos finarfin
2009-04-30 7:39 ` Henrik Austad
2009-05-08 2:35 ` GeunSik Lim
2009-05-08 9:10 ` Henrik Austad
2009-05-30 11:38 ` GeunSik Lim
2009-05-30 13:34 ` Henrik Austad
2009-05-30 14:46 ` GeunSik Lim
2009-05-30 15:04 ` Henrik Austad
2009-05-30 19:15 ` Peter Zijlstra [this message]
2009-05-30 20:40 ` Henrik Austad
2009-05-30 21:15 ` Peter Zijlstra
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=1243710957.6645.157.camel@laptop \
--to=peterz@infradead.org \
--cc=finarfin@dreamos.org \
--cc=henrik@austad.us \
--cc=leemgs1@gmail.com \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox