You effectively need to be root to set up the priorities at least once.
setuid programs are a big pain to use and a lot of people don't want them.
Also it is useful to change priorities on the fly, e.g. to avoid
priority inheritance problems.
> > I don't think it makes too much sense to have
> > an global rt queue on a multi processor system, but there should be some
> > way to define "scheduling groups" where rt semantics are followed inside.
>
> Still, the customer is king.
Hmm?
>
> > Such a scheduling group could be a clone flag or default to CLONE_VM for
> > example for compatibility. A scheduling group would also make it possible
> > to support simple rt semantics for thread groups as non root. Then one
> > could run a rt queue per scheduling group, and simulate global rt run queue
> > or per cpu rt run queue as needed by appropiate setup.
>
> My first thought is that this is fairly high overhead to put in the
> schedule path. May be if I knew more....
The only overhead as far as I can see would be a few more pointer
references for RT processes (task->runqueue-> ...). I guess with
some care it can be even kept out of the non RT fast path.
-Andi
-
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/