Re: [PATCH v2 1/2] sched: Nominate idle load balancer from a semi-idle package.

Andi Kleen
2009-04-03T07:04:56Z

Gautham R Shenoy <ego@in.ibm.com> writes:
>
> Improve the algorithm to nominate the idle load balancer from a semi idle
> cores/packages thereby increasing the probability of the cores/packages being
> in deeper sleep states for longer duration.

The basic patch looks good.

In theory you could also look for a nearby nohz balancer in the end
to optimize traffic on the interconnect of a larger NUMA system,
but it's probably not worth it.

>
> The algorithm is activated only when sched_mc/smt_power_savings != 0.

But it seems to me that this check could be dropped and doing it
unconditionally, because idle balancing doesn't need much memory
bandwith or cpu power, so always putting it nearby is good.

-Ani

--
ak@linux.intel.com -- Speaking for myself only.