Re: [RFC PATCH 08/14] sched: normalize tg load contributionsagainst runnable time

From: Peter Zijlstra
Date: Mon Feb 20 2012 - 11:10:29 EST


On Fri, 2012-02-17 at 04:32 -0800, Paul Turner wrote:
> > Neither the comment nor the changelog mention this, it should, it should
> > also mention why it doesn't matter (does it?).
>
> It doesn't and it should. Although I'll take the liberty shortening
> it a little to something

For the in-code comment that's fine, it would be good for the changelog
to have the entire story though.

> like "unfortunately we cannot compute
> runnable_avg(tg) directly, however, XXX is a reasonable
> approximation."

Yeah, not easily done indeed, you could compute a corrective term if
you'd have something like the avg and variance of runnable over the
various CPUs, but those too suck to have to compute.


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