All of lore.kernel.org
 help / color / mirror / Atom feed
* Why do processes with higher priority to be allocated more timeslice?
@ 2011-09-26  2:16 Parmenides
  2011-09-26  7:51 ` Mulyadi Santosa
  0 siblings, 1 reply; 9+ messages in thread
From: Parmenides @ 2011-09-26  2:16 UTC (permalink / raw)
  To: kernelnewbies

Hi,

    It seems that Linux's scheduler tends to allocate longer timeslice
for processes with higher priority. Actually, the CFS scheduler which
is a new scheduler in Linux kernel also does the same thing. But, I
think this way does not fit with scheduler's principle.

    The goal chased by a scheduler is low latency and high thoughput.
Normally, a I/O-bound process has higher priority, while a CPU-bound
process has lower priority. So, a I/O-bound process (which has enough
timeslice) can preempt a CPU-bound process easily. This way ensures
lower latency. It is also necessary that CPU-bound processes are to be
allocated longer timeslice to improve throughput owing to less process
switch costs. That means lower priority processes (CPU-bound) should
be allocated longer timeslice, whichs obviously conflicts with the
actual practice taken by the Linux's scheduler. Any explanation?
Thanks.

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

end of thread, other threads:[~2011-10-07 15:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-26  2:16 Why do processes with higher priority to be allocated more timeslice? Parmenides
2011-09-26  7:51 ` Mulyadi Santosa
2011-09-26 17:10   ` Parmenides
2011-09-26 18:40     ` Jeff Donner
2011-09-27  2:07       ` Parmenides
2011-09-27  4:28         ` Mulyadi Santosa
2011-09-27 13:06           ` Parmenides
2011-09-27 15:44             ` Mulyadi Santosa
2011-10-07 15:40               ` Sri Ram Vemulpali

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.