Re: [RFD] 'nice' attribute for executable files

Måns Rullgård
2005-03-31T16:05:59Z

Horst von Brand <vonbrand@inf.utfsm.cl> writes:

> =?iso-8859-1?q?M=E5ns_Rullg=E5rd?= <mru@inprovide.com> said:
>> Wiktor <victorjan@poczta.onet.pl> writes:
>
> [...]
>
>> > max renice ulimit is quite good idea, but it allows to change nice of
>> > *any* process user has permissions to. it could be implemented also,
>> > but the idea of 'nice' file attribute is to allow *only* some process
>> > be run with lower nice. what's more, that nice would be *always* the
>> > same (at process startup)!
>
>> It can be done entirely in userspace, if you want it. Just hack your
>> shell to examine some extended attribute of your choice, and adjust
>> the nice value before executing files. Then arrange to have the shell
>> run with a negative nice value. This can be easily accomplished with
>> a simple wrapper, only for the shell.
>
> Even better: Write a C wrapper for each affected program that just renices
> it as needed.

The OP was too lazy to do this.

--
Måns Rullgård
mru@inprovide.com