[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4625B00A.7050702@nortel.com>
Date: Tue, 17 Apr 2007 23:43:38 -0600
From: "Chris Friesen" <cfriesen@...tel.com>
To: Peter Williams <pwil3058@...pond.net.au>
CC: William Lee Irwin III <wli@...omorphy.com>,
Ingo Molnar <mingo@...e.hu>, Matt Mackall <mpm@...enic.com>,
Con Kolivas <kernel@...ivas.org>, linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Nick Piggin <npiggin@...e.de>, Mike Galbraith <efault@....de>,
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 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
-
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