Re: [PATCH] cpuset and sched domains: sched_load_balance flag

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paul Jackson <pj@...>
Cc: Andrew Morton <akpm@...>, Paul Menage <menage@...>, <linux-kernel@...>, Dinakar Guniguntala <dino@...>, <cpw@...>, Ingo Molnar <mingo@...>
Date: Saturday, September 29, 2007 - 3:21 pm

On Sunday 30 September 2007 20:44, Paul Jackson wrote:

I don't like adding these funny special case sort of things like this.
The user should just be able to specify exactly the partitioning of
tasks required, and cpusets should ask the scheduler to do the best
job of load balancing possible.

I implemented that with my patches to do automatic discovery
of the largest set of disjoint cpusets.

From there, the problem that cpusets has, is that it lacks a good
way to specify that the machine should be partitioned (IIRC because
stuff defaults to going into the root cpuset which covers all CPUs?).

Instead of adding these "I want the scheduler to do something a bit
vague but hopefully good albeit with some downsides" flags, there
should be a way to say "I want to partition the CPUs like so...", IMO.

Barring that (ie. maybe you always want a root cpuset to cover all
CPUs), then maybe we should retain the spanning sched domains
in order to balance the root cpuset, and add another set of domains
according to cpuset partitioning. This could be entirely transparent
to userspace, I think (using my patch).

Just my opinion. Good to see more thought going into this area, because
it is something that sched-domains can do really well but is underused.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] cpuset and sched domains: sched_load_balance flag, Nick Piggin, (Sat Sep 29, 3:21 pm)
[PATCH] cpuset decrustify update and validate masks, Paul Jackson, (Sun Sep 30, 6:44 am)