Re: [PATCH] [request for inclusion] Realtime LSM

From: Jack O'Quin
Date: Tue Jan 11 2005 - 22:21:59 EST


Ingo Molnar <mingo@xxxxxxx> writes:

> * Chris Wright <chrisw@xxxxxxxx> wrote:
>
>> Hmm, I wonder if this could have anything to do with it. These are
>> within striking range:
>>
>> PID COMMAND NI PRI
>> 9 events/1 -10 34
>> 931 kcryptd/1 -10 33
>> 930 kcryptd/0 -10 34
>> 8 events/0 -10 34
>> 892 ata/1 -10 34
>> 891 ata/0 -10 34
>> 3747 udevd -10 33
>> 26 kacpid -10 31
>> 238 aio/1 -10 34
>> 237 aio/0 -10 31
>> 117 kblockd/1 -10 34
>> 116 kblockd/0 -10 34
>> 10 khelper -10 34
>
> you are right, i forgot about kernel threads. If they are nice -10 on
> Jack's system too then they are within striking range indeed, especially
> since they are typically idle and if then they are active for short
> bursts of time and get the maximum boost. Jack, could you renice these
> to -5, to make sure they dont interfere?

Sure. My system does have some of these running at nice -10. Where
(how) do I change them?

BTW, let's not lose sight of the fact that `nice --20 foo' requires
CAP_SYS_NICE just like SCHED_FIFO does. From a privilege perspective,
this recurses to the same (still unsolved) problem.

Chris's rlimits proposal was the only workable suggestion I've seen
for that. Is there any hope of doing something like that in the 2.6.x
timeframe?

At this point, I no longer even care that PAM will probably start
randomly assigning users unlimited scheduling rights like it recently
did for mlock. Eventually, that will get fixed. :-(
--
joq
-
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/