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

Ed Tomlinson (tomlins@cam.org)
Mon, 30 Dec 2002 23:03:50 -0500


On December 30, 2002 06:00 pm, David Schwartz wrote:
> On Mon, 30 Dec 2002 16:45:50 -0500, Ed Tomlinson wrote:
> >What this patches does is recognise threads as process that clone both
> >mm and files. For these 'threads' it tracks how many are active in a
> >given group. When many are active it reduces their timeslices as below
>
> In general, changes that cause the system to become less efficient as load
> increases are not such a good idea. By reducing timeslices, you increase
> context-switching overhead. So the busier you are, the less efficient you
> get. I think it would be wiser to keep the timeslice the same but assign
> fewer timeslices.

That would be better - I cannot see a way to do it using O(1). What might
be possible (not sure how) is only to decrease the timeslices IF there are
other tasks being slowed down by the thread group...

Ed

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