Re: a quest for a better scheduler

Mike Kravetz (mkravetz@sequent.com)
Wed, 4 Apr 2001 10:27:21 -0700


On Tue, Apr 03, 2001 at 09:21:57PM -0700, Fabio Riccardi wrote:
> I was actually suspecting that the extra lines in your patch were there for a
> reason :)
>
> A few questions:
>
> What is the real impact of a (slight) change in scheduling semantics?
>
> Under which situation one should notice a difference?

I assume your questions are directed at the difference between local
and global scheduling decisions. As with most things the impact of
these differences depends on workload. Most multi-queue scheduler
implementations make local scheduling decisions and depend on load
balancing for system wide fairness. Schedulers which make global
decisions handle load balancing via their global policy.

The HP multi-queue implementation you are using performs no load
balancing. Therefore, in a worst case situation you could have
low priority tasks sharing one CPU while high priority tasks are
sharing another. To be fair, I have talked to the HP people and
this scheduler was never intended to be a general purpose solution.
Therefore, it makes little sense to comment its merits as such.

> As you state in your papers the global decision comes with a cost,
> is it worth it?

My primary motivation for attempting to perform the same global
decisions as the current scheduler was so that meaningful comparisons
could be made. Also, by using the same global decision policy I
was able to avoid the issue of load balancing. In most multi-queue
implementations, load balancing algorithms take considerable effort
to get working in a reasonable well performing manner.

>
> Could you make a port of your thing on recent kernels?

There is a 2.4.2 patch on the web page. I'll put out a 2.4.3 patch
as soon as I get some time.

-- 
Mike Kravetz                                 mkravetz@sequent.com
IBM Linux Technology Center
-
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/