From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754906Ab2GDRUZ (ORCPT ); Wed, 4 Jul 2012 13:20:25 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45927 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972Ab2GDRUV (ORCPT ); Wed, 4 Jul 2012 13:20:21 -0400 Subject: Re: [PATCH 14/16] sched: make __update_entity_runnable_avg() fast From: Peter Zijlstra To: Paul Turner Cc: linux-kernel@vger.kernel.org, Venki Pallipadi , Srivatsa Vaddagiri , Vincent Guittot , Nikunj A Dadhania , Mike Galbraith , Kamalesh Babulal , Ben Segall , Ingo Molnar , "Paul E. McKenney" , Morten Rasmussen , Vaidyanathan Srinivasan In-Reply-To: <1341416463.19870.6.camel@laptop> References: <20120628022413.30496.32798.stgit@kitami.mtv.corp.google.com> <20120628022415.30496.53532.stgit@kitami.mtv.corp.google.com> <1341416463.19870.6.camel@laptop> Content-Type: text/plain; charset="UTF-8" Date: Wed, 04 Jul 2012 19:20:08 +0200 Message-ID: <1341422408.19870.12.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?