[RFC PATCH v3 3/6] sched: pack small tasks
Peter Zijlstra
peterz at infradead.org
Tue Mar 26 08:26:22 EDT 2013
On Fri, 2013-03-22 at 13:25 +0100, Vincent Guittot wrote:
> +static bool is_buddy_busy(int cpu)
> +{
> + struct rq *rq = cpu_rq(cpu);
> +
> + /*
> + * A busy buddy is a CPU with a high load or a small load with
> a lot of
> + * running tasks.
> + */
> + return (rq->avg.runnable_avg_sum >
> + (rq->avg.runnable_avg_period / (rq->nr_running
> + 2)));
> +}
Why does the comment talk about load but we don't see it in the
equation. Also, why does nr_running matter at all? I thought we'd
simply bother with utilization, if fully utilized we're done etc..
More information about the linux-arm-kernel
mailing list