From: "Gregory Haskins" <ghaskins@novell.com>
To: "Dmitry Adamushko" <dmitry.adamushko@gmail.com>,
"Steven Rostedt" <srostedt@redhat.com>
Cc: "Peter Zijlstra" <a.p.zijlstra@chello.nl>,
"Ingo Molnar" <mingo@elte.hu>, "Balbir Singh" <balbir@in.ibm.com>,
<vatsa@linux.vnet.ibm.com>,
"LKML Kernel" <linux-kernel@vger.kernel.org>
Subject: Re: RT Load balance changes in sched-devel
Date: Sun, 09 Dec 2007 13:32:27 -0500 [thread overview]
Message-ID: <475BEE6B.BA47.005A.0@novell.com> (raw)
In-Reply-To: <b647ffbd0712090916l4eb9a944r4726680a5fdcae46@mail.gmail.com>
Hi Dmitry,
>>> On Sun, Dec 9, 2007 at 12:16 PM, in message
<b647ffbd0712090916l4eb9a944r4726680a5fdcae46@mail.gmail.com>, "Dmitry
Adamushko" <dmitry.adamushko@gmail.com> wrote:
> [ cc'ed lkml ]
>
> I guess, one possible load-balancing point is out of consideration --
> sched_setscheduler()
> (also rt_mutex_setprio()).
>
> (1) NORMAL --> RT, when p->se.on_rq == 1 && ! task_running(rq, p)
>
> (2) RT --> NORMAL, when task_running(rq, p) == 1
>
> e.g. for (2) we may even get a completely idle rq (schedule() -->
> schedule_balance_rt() will not help due to schedule_balance_rt()
> having a rt_task(prev) check in place... and 'prev' is of NORMAL type
> when it's scheduled out).
Indeed. I think you are correct on both counts. This is an oversight, so good eyes!
>
>
> btw., both cases would be addressed by placing load-balance points
> into sched_class_rt->{enqueue,dequeue}_task_rt()... push_rt_tasks()
> and pull_rt_tasks() respectively. As a side effect (I think,
> technically, it would be possible), 3 out of 4 *_balance_rt() calls
> (the exception: schedule_tail_balance_rt()) in schedule() would become
> unnecessary.
>
> _BUT_
>
> the enqueue/dequeue() interface would become less straightforward,
> logically-wise.
> Something like:
>
> rq = activate_task(rq, ...) ; /* may unlock rq and lock/return another one
> */
>
> would complicate the existing use cases.
>
I think I would prefer to just fix the setscheduler/setprio cases for the class transition than change the behavior of these enqueue/dequeue calls. But I will keep an open mind as I look into this issue.
Thanks for the review!
-Greg
next prev parent reply other threads:[~2007-12-09 18:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20071130145939.GN5681@linux.vnet.ibm.com>
[not found] ` <b647ffbd0712011156p252ae29dnfa75494e4d2c845c@mail.gmail.com>
[not found] ` <20071203182223.GA4133@linux.vnet.ibm.com>
[not found] ` <47556B23.2060909@redhat.com>
[not found] ` <20071204153542.GC3388@linux.vnet.ibm.com>
[not found] ` <b647ffbd0712040828l51a26a82jc0f38d3f4aa2291e@mail.gmail.com>
[not found] ` <20071205134036.GA21933@linux.vnet.ibm.com>
[not found] ` <4756B8E9.3080709@redhat.com>
[not found] ` <20071205164800.GA24767@linux.vnet.ibm.com>
[not found] ` <4756D709.1020901@redhat.com>
2007-12-09 17:16 ` RT Load balance changes in sched-devel Dmitry Adamushko
2007-12-09 18:32 ` Gregory Haskins [this message]
2007-12-10 0:57 ` Steven Rostedt
2007-12-10 2:53 ` [PATCH RFC] sched: Fixed missed rt-balance points on priority shifts Gregory Haskins
2007-12-10 3:18 ` Gregory Haskins
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=475BEE6B.BA47.005A.0@novell.com \
--to=ghaskins@novell.com \
--cc=a.p.zijlstra@chello.nl \
--cc=balbir@in.ibm.com \
--cc=dmitry.adamushko@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=srostedt@redhat.com \
--cc=vatsa@linux.vnet.ibm.com \
/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.