RE: realtime scheduling problems with 2.4 linux kernel >= 2.4.10

Ian Collinson (icollinson@imerge.co.uk)
Wed, 5 Jun 2002 12:53:06 +0100


Andi Kleen wrote:
> Fixing it would require boosting keventd's priority either globally
> or temporarily. E.g. if the original reporter could put this
> (untested/uncompiled) at the beginning of
kernel/context.c:context_thread():
>
> current->policy = SCHED_RR;
> current->rt_priority = 99;
>
> it could fix his problem.

OK, I've tried the above fix on 2.4.17, and it seems to work. Thanks Andi.
We can now get into the box on a high priority console after provoking a
lockup with a lower priority, CPU hogging realtime process.

Are there any potentially negative consequences of this fix, apart from
those already mentioned?

I certainly vote for this feature being preserved, as it is extremely useful
for debugging realtime priority apps. FYI, we narrowed it down to breaking
in either 2.4.10-pre11 or pre12.

Cheers
Ian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Imerge Limited Tel :- +44 (0)1954 783600
Unit 6 Bar Hill Business Park Fax :- +44 (0)1954 783601
Saxon Way Web :- http://www.imerge.co.uk
Bar Hill
Cambridge
CB3 8SL
United Kingdom
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
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/