From: Steve Rotolo <steve.rotolo@ccur.com>
To: Con Kolivas <kernel@kolivas.org>
Cc: linux-kernel@vger.kernel.org, bugsy@ccur.com
Subject: Re: SD_SHARE_CPUPOWER breaks scheduler fairness
Date: Wed, 01 Jun 2005 10:29:31 -0400 [thread overview]
Message-ID: <1117636171.22879.29.camel@bonefish> (raw)
In-Reply-To: <200506011249.47655.kernel@kolivas.org>
On Tue, 2005-05-31 at 22:49, Con Kolivas wrote:
> Sort of yes and yes. The idea that the sibling gets put to sleep if a real
> time task is running is a workaround for the fact that you do share cpu power
> (as you've correctly understood) and a real time task will slow down if a
> SCHED_NORMAL task is running on its sibling which it should not. The
> limitation is that, yes, for all intents you only have N hyperthreaded cpus
> for spinning N rt tasks before nothing else runs, but you can actually run
> N*2 rt tasks in this setting which you would not be able to if hyperthreading
> was disabled.
>
> For some time I've been thinking about changing the balance between the
> siblings slightly to allow SCHED_NORMAL tasks to run a small proportion of
> time when rt tasks are running on the sibling. The tricky part is that
> SCHED_FIFO tasks have no timeslice so we can't proportion cpu out according
> to the difference in size of the timeslices, which is currently how we
> proportion out cpu across siblings with SCHED_NORMAL, and this maintains cpu
> distribution very similarly to how 'nice' does on the same cpu.
Thanks for responding, Con. But I want to make sure that an important
point doesn't escape your attention. It appears that tasks get trapped
on the stalled sibling, even when they could run on some other cpu. The
load-balancer does not understand that the sibling is temporarily out of
service so it actually balances tasks to it. And since it's idle, it
may attract tasks to it more than other cpus (thanks to SD_WAKE_IDLE).
I think this is a serious bug.
--
Steve
next prev parent reply other threads:[~2005-06-01 14:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-31 17:46 SD_SHARE_CPUPOWER breaks scheduler fairness Steve Rotolo
2005-06-01 2:49 ` Con Kolivas
2005-06-01 14:29 ` Steve Rotolo [this message]
2005-06-01 14:47 ` Con Kolivas
2005-06-01 18:41 ` Steve Rotolo
2005-06-01 21:37 ` Con Kolivas
2005-06-01 21:54 ` Con Kolivas
2005-06-01 22:01 ` Steve Rotolo
2005-06-02 3:01 ` Con Kolivas
2005-06-01 23:16 ` Joe Korty
2005-06-01 23:25 ` Con Kolivas
2005-06-02 13:30 ` Steve Rotolo
2005-06-02 13:34 ` Con Kolivas
2005-06-02 15:48 ` Steve Rotolo
2005-06-03 0:43 ` [PATCH] SCHED: run SCHED_NORMAL tasks with real time tasks on SMT siblings Con Kolivas
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=1117636171.22879.29.camel@bonefish \
--to=steve.rotolo@ccur.com \
--cc=bugsy@ccur.com \
--cc=kernel@kolivas.org \
--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