Re: [PATCH] improving O(1)-J9 in heavily threaded situations

From: Ingo Molnar (mingo@elte.hu)
Date: Mon Feb 04 2002 - 20:37:50 EST


On Tue, 5 Feb 2002, Jussi Laako wrote:

> > Please renice your CPU hog soundcard processes to -11, does that make any
> > difference? (under -K2)
>
> I can renice this only for testing purposes. Normally these are not
> run as root so I can't do negative renice.

but you can run the audio tasks as SCHED_FIFO?

(you do not have to run the tasks as root, you only have to do the renice
as root.)

> > is it more important to run these CPU hogs than to run interactive tasks?
> > If yes then renice them to -11.
>
> Yes and no... :) Interactive tasks get their work from CPU hogs so
> those are strongly related. If interactive task puts CPU hog to wait
> it will also lose it's data.

you can tune the actual weight of importance by decrasing the priority of
the CPU-hog (or increasing the priority of the interactive task) a bit.
But ideally you'd want to decrease the priority of the CPU hog, because
that way you protect it not only from your 'own' interactive tasks, but
from other activities on the system as well.

        Ingo

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



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:39 EST