Re: [patch] SCHED_SOFTRR starve-free linux scheduling policy ...
From: Mike Galbraith
Date: Sun Aug 10 2003 - 02:41:54 EST
At 03:43 PM 8/10/2003 +1000, Nick Piggin wrote:
Roger Larsson wrote:
* SCHED_FIFO requests from non root should also be treated as
I hope computers don't one day become so fast that SCHED_SOFTRR is
required for skipless mp3 decoding, but if they do, then I think
SCHED_SOFTRR should drop its weird polymorphing semantics ;)
:) My box is slow enough to handle them just fine, as long as I make sure
that oinkers don't share the same queue with the light weight player.
The only reason I can see that some form of realtime scheduling is really
_required_ to prevent skippage is because of the dirty page writeout thing,
which Andrew has fixed as much as is practical for realtime tasks. There
is another side to that though... if you're going to make a vm scrubbing
exception for realtime tasks, it seems to me to follow, that rt task's mm
should be exempted from scrubbers as well (to a point).
wrt SCHED_FIFO, you couldn't handle those with SOFTRR as is, because the
cpu restriction is calculated using the task's timeslice... which
SCHED_FIFO tasks don't have. Making SCHED_FIFO available in any form would
require addition of some means of detecting cpu usage. (and if you create
any run limit, you may as well just use a timeslice, which turns it right
back into SCHED_RR).
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/