From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753152Ab2GIUSh (ORCPT ); Mon, 9 Jul 2012 16:18:37 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:50871 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753121Ab2GIUSd (ORCPT ); Mon, 9 Jul 2012 16:18:33 -0400 From: Benjamin Segall To: Peter Zijlstra Cc: Paul Turner , linux-kernel@vger.kernel.org, Venki Pallipadi , Srivatsa Vaddagiri , Vincent Guittot , Nikunj A Dadhania , Mike Galbraith , Kamalesh Babulal , Ingo Molnar , "Paul E. McKenney" , Morten Rasmussen , Vaidyanathan Srinivasan Subject: Re: [PATCH 14/16] sched: make __update_entity_runnable_avg() fast References: <20120628022413.30496.32798.stgit@kitami.mtv.corp.google.com> <20120628022415.30496.53532.stgit@kitami.mtv.corp.google.com> <1341416463.19870.6.camel@laptop> <1341422408.19870.12.camel@laptop> Date: Mon, 09 Jul 2012 13:18:29 -0700 In-Reply-To: <1341422408.19870.12.camel@laptop> (Peter Zijlstra's message of "Wed, 04 Jul 2012 19:20:08 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.