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

Jack O'Quin
2005-01-15T23:10:08Z

> * Jack O'Quin <joq@io.com> wrote:
>
>> --- kernel/sched.c~ Fri Dec 24 15:35:24 2004
>> +++ kernel/sched.c Wed Jan 12 23:48:49 2005
>> @@ -95,7 +95,7 @@
>> #define MAX_BONUS (MAX_USER_PRIO * PRIO_BONUS_RATIO / 100)
>> #define INTERACTIVE_DELTA 2
>> #define MAX_SLEEP_AVG (DEF_TIMESLICE * MAX_BONUS)
>> -#define STARVATION_LIMIT (MAX_SLEEP_AVG)
>> +#define STARVATION_LIMIT 0
>> #define NS_MAX_SLEEP_AVG (JIFFIES_TO_NS(MAX_SLEEP_AVG))
>> #define CREDIT_LIMIT 100

Ingo Molnar <mingo@elte.hu> writes:
> could you try the patch below? The above patch wasnt enough. With the
> patch below we turn off the starvation limits for nice --20 tasks only.
> This is still a hack only. If we cannot make nice --20 perform like
> RT-prio-1 then there's some problem with SCHED_OTHER scheduling.

I am building again with your new patch and with STARVATION_LIMIT
defined as (MAX_SLEEP_AVG) again. I'll run that with a modified JACK
to reduce the interference of all those other non-realtime threads.

Will let you know what happens.
--
joq