Messages in this thread | | | Subject | Re: [PATCH 14/16] sched: make __update_entity_runnable_avg() fast | From | Peter Zijlstra <> | Date | Tue, 10 Jul 2012 12:51:30 +0200 |
| |
On Mon, 2012-07-09 at 13:18 -0700, Benjamin Segall wrote: > Correct, the sum is 1..n. The maximum was chosen as 516/46742 because > that is the point when the approximation of loop + fixed point math > being used reaches a maximum, even if the ideal y^n series would cap out > slightly differently.
Can you run a simple kid like me through the math here.. it seems strange that fixed point math would give a higher order term than the regular case. And by such a wide margin as well, (516-320)/32 ~ 6, so that's 1/64-th of the 320-th term.
| |