Re: [PATCH,RFC] fix o(1) handling of threads

Ed Tomlinson (
Mon, 30 Dec 2002 17:32:21 -0500

On December 30, 2002 05:50 pm, Alan Cox wrote:
> Very interesting, but I'll note there are actually two groupings to
> solve - per user and per threadgroup. Also for small numbers of threads
> you don't want to punish a task and ruin its balancing across CPUs

This easily tuneable. As its set now 2 in queue threads from the
same group are not punished, 3 and they have their timeslices halfed.
Setting THREAD_PENALTY to 65 means no adjustments till 4 in queue threads

> Have you looked at the per user fair share stuff too ?

No but a varient of the same code could be cooked up - interested?. As
I am the only real user here is not much of an issue. Anyone have
boxes that can be used to test per user throttles?

Ed Tomlinson

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at