RE: 1:1 threading vs. scheduler activations (was: Re: [ANNOUNCE]

Perez-Gonzalez, Inaky (inaky.perez-gonzalez@intel.com)
Tue, 24 Sep 2002 09:49:26 -0700


> and there are some things that i'm not at all sure can be fixed in any
> reasonable way - eg. RT scheduling. [the userspace library
> would have to
> raise/drop the priority of threads in the userspace
> scheduler, causing an
> additional kernel entry/exit, eliminating even the
> theoretical advantage
> it had for pure user<->user context switches.]

So far, the only reasonable way I have found to put RT *scheduling* on NGPT
has been to modify the priority queues on the scheduler [using a simplified
model of your O(1) scheduler]. That gives you, at least, "real time" versus
the other threads. If you want it versus the whole system, then you can
change the attrs of the thread to be SYSTEM scope, so that they compete for
system resources against everybody else [of course, this is cheating, it is
falling back to 1:1 for the real time case].

There are rough edges still, for mutex (futex) waiter selection, signal
delivery, etc ... but so far, I think it is the best sollution [and I'd love
to hear others :)].

Inaky Perez-Gonzalez -- Not speaking for Intel - opinions are my own [or my
fault]

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