The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* SCHED_RR vs push-pull
@ 2015-12-11 14:10 Peter Zijlstra
  2015-12-11 19:39 ` Luca Abeni
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Zijlstra @ 2015-12-11 14:10 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Thomas Gleixner, Juri Lelli, Luca Abeni, Ingo Molnar,
	linux-kernel

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 ;-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-11 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-11 14:10 SCHED_RR vs push-pull Peter Zijlstra
2015-12-11 19:39 ` Luca Abeni
2015-12-11 19:53   ` Steven Rostedt
2015-12-11 21:27     ` Luca Abeni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox