Re: [PATCH 14/16] sched: make __update_entity_runnable_avg() fast

From: Peter Zijlstra
Date: Wed Jul 04 2012 - 13:21:03 EST


On Wed, 2012-07-04 at 17:41 +0200, Peter Zijlstra wrote:
> On Wed, 2012-06-27 at 19:24 -0700, Paul Turner wrote:
> > +#define LOAD_AVG_MAX 46742 /* maximum possible load avg */
>
> With 1024 * 1/(1-y), with y^32 = 0.5 I get 47788.. sup?

Ah, if we do the series starting at 1 we get: 1024*y/(1-y) which yields:
46764. So you're not adding the first term u_0?

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