From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757550AbbGGWyo (ORCPT ); Tue, 7 Jul 2015 18:54:44 -0400 Received: from casper.infradead.org ([85.118.1.10]:52979 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755460AbbGGWyh (ORCPT ); Tue, 7 Jul 2015 18:54:37 -0400 Date: Wed, 8 Jul 2015 00:54:30 +0200 From: Peter Zijlstra To: byungchul.park@lge.com Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, pjt@google.com Subject: Re: [PATCH] sched: make decaying sched_avg's variables happen on period boundary Message-ID: <20150707225430.GX3644@twins.programming.kicks-ass.net> References: <1436247776-30946-1-git-send-email-byungchul.park@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436247776-30946-1-git-send-email-byungchul.park@lge.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 07, 2015 at 02:42:56PM +0900, byungchul.park@lge.com wrote: > From: Byungchul Park > > decaying time happens on every period boundary. if it does not reach > the period boundary yet, the partial time needs to be kept so that > the time can be decayed on exactly period boundary at next update. > > sa->avg_period is not appropriate for getting partial delta_w because > the value is a decayed average value, with which we cannnot get partial > delta at all which does not reach the period boundary yet. lkml.kernel.org/r/1435018085-7004-1-git-send-email-yuyang.du@intel.com There is a comprehensive rewrite of all this under consideration.