Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]

Chris Friesen
2007-04-18T05:44:11Z

Peter Williams wrote:
> Chris Friesen wrote:

>> Suppose I have a really high priority task running. Another very high
>> priority task wakes up and would normally preempt the first one.
>> However, there happens to be another cpu available. It seems like it
>> would be a win if we moved one of those tasks to the available cpu
>> immediately so they can both run simultaneously. This would seem to
>> require some communication between the scheduler and the load balancer.
>
>
> Not really the load balancer can do this on its own AND the decision
> should be based on the STATIC priority of the task being woken.

I guess I don't follow. How would the load balancer know that it needs
to run? Running on every task wake-up seems expensive. Also, static
priority isn't everything. What about the gang-scheduler concept where
certain tasks must be scheduled simultaneously on different cpus? What
about a resource-group scenario where you have per-cpu resource limits,
so that for good latency/fairness you need to force a high priority task
to migrate to another cpu once it has consumed the cpu allocation of
that group on the current cpu?

I can see having a generic load balancer core code, but it seems to me
that the scheduler proper needs to have some way of triggering the load
balancer to run, and some kind of goodness functions to indicate a)
which tasks to move, and b) where to move them.

Chris