Re: low priority soft RT?

Pavel Machek (pavel@bug.ucw.cz)
Mon, 1 Jan 1990 06:23:32 +0100


Hi!

> > > Anyone thought about allowing soft RT (SCHED_FIFO or SCHED_RR) tasks with
> > > negative priorities? These would only be executed if no other tasks of
> > > any type are there. Giving a normal Linux task a niceness value won't do
> > > this, as the task will still get some CPU time.
> >
> > So SCHED_IDLE then (only execute this if we would otherwise be
> > executing the idle task)? It's been talked about before, IIRC
> > even implemented, it just never got into the mainstream kernel.
>
> I have made a fairly substantial SCHED_IDLE patch, but due to
> the (never resolved) deadlock issues I haven't submitted it.
>
> OTOH, if we make SCHED_IDLE a sysctl tunable thing, we should
> be able to just ship it with the standard kernel and provide
> a Big Fat Warning(tm) along with it...

That's the bad solution. Right solution is to promote threads that are
in kernel mode to non-SCHED_IDLE priority. It should be well doable,
and IMO is required for patch to be usable.

What would you write to big fat warning?

"Random processes may freeze for random ammount of time if things go
wrong"?

Pavel

-- 
I'm really pavel@ucw.cz. Look at http://195.113.31.123/~pavel.  Pavel
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/