From: Peter Zijlstra <peterz@infradead.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Juri Lelli <juri.lelli@gmail.com>,
Luca Abeni <luca.abeni@unitn.it>, Ingo Molnar <mingo@kernel.org>,
linux-kernel@vger.kernel.org
Subject: SCHED_RR vs push-pull
Date: Fri, 11 Dec 2015 15:10:28 +0100 [thread overview]
Message-ID: <20151211141028.GH6357@twins.programming.kicks-ass.net> (raw)
Hai,
Thomas just reported a 'fun' problem with our rt 'load-balancer'.
The problem is 2 cpus 4 equal prio RR tasks.
Suppose an unequal distribution of these tasks among the CPUs; eg 1:3.
Now one would expect; barring other constraints; that each CPU would get
2 of the tasks and they would RR on their prio level.
This does not happen.
The push-pull thing only acts when there's idle or new tasks, and in the
above scenario, the CPU with only the single RR task will happily
continue running that task, while the other CPU will have to RR between
the remaining 3.
Now my initial thoughts were to define a global RR order using a
virtual timeline and you'll get something like EEVDF on a per RR prio
level with push-pull state between that.
Which might be a tad over engineered.
Is there a 'sane' solution to this problem? One that still is
deterministic, because this is after all, RT scheduling.
Happy thinking ;-)
next reply other threads:[~2015-12-11 14:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-11 14:10 Peter Zijlstra [this message]
2015-12-11 19:39 ` SCHED_RR vs push-pull Luca Abeni
2015-12-11 19:53 ` Steven Rostedt
2015-12-11 21:27 ` Luca Abeni
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=20151211141028.GH6357@twins.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=juri.lelli@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.abeni@unitn.it \
--cc=mingo@kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
/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