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

From: Andi Kleen
Date: Fri Apr 03 2009 - 03:04:56 EST


Gautham R Shenoy <ego@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/