[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070417084405.GA13661@elte.hu>
Date: Tue, 17 Apr 2007 10:44:05 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Peter Williams <pwil3058@...pond.net.au>
Cc: Nick Piggin <npiggin@...e.de>, Mike Galbraith <efault@....de>,
Con Kolivas <kernel@...ivas.org>, ck list <ck@....kolivas.org>,
Bill Huey <billh@...ppy.monkey.org>,
linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Arjan van de Ven <arjan@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]
* Peter Williams <pwil3058@...pond.net.au> wrote:
> > And my scheduler for example cuts down the amount of policy code and
> > code size significantly.
>
> Yours is one of the smaller patches mainly because you perpetuate (or
> you did in the last one I looked at) the (horrible to my eyes) dual
> array (active/expired) mechanism. That this idea was bad should have
> been apparent to all as soon as the decision was made to excuse some
> tasks from being moved from the active array to the expired array.
> This essentially meant that there would be circumstances where extreme
> unfairness (to the extent of starvation in some cases) -- the very
> things that the mechanism was originally designed to ensure (as far as
> I can gather). Right about then in the development of the O(1)
> scheduler alternative solutions should have been sought.
in hindsight i'd agree. But back then we were clearly not ready for
fine-grained accurate statistics + trees (cpus are alot faster at more
complex arithmetics today, plus people still believed that low-res can
be done well enough), and taking out any of these two concepts from CFS
would result in a similarly complex runqueue implementation. Also, the
array switch was just thought to be of another piece of 'if the
heuristics go wrong, we fall back to an array switch' logic, right in
line with the other heuristics. And you have to accept it, mainline's
ability to auto-renice make -j jobs (and other CPU hogs) was quite a
plus for developers, so it had (and probably still has) quite some
inertia.
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists