Re: [PATCH] cpuidle: menu: use nr_running instead of cpuload forcalculating perf mult

From: Arjan van de Ven
Date: Mon Jun 04 2012 - 09:15:10 EST


On 6/4/2012 3:24 AM, Vladimir Davydov wrote:
> rq->cpuload strongly depends on cgroup hierarchy. For example, if hundreds of
> tasks are running inside cpu:/test cgroup, the sum of cpuload over all cpus
> won't exceed 1024 (by default). That makes the cpuidle menu governor take wrong
> decisions, which can negatively affect overall performance.

nr_running is the wrong answer... it is instantaneous, not longer term.
cpuidle wants a longer term, per cpu, notion of "busy", to use as proxy
for performance sensitivity.


--
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/