Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753257AbcDBMcR (ORCPT ); Sat, 2 Apr 2016 08:32:17 -0400 Received: from mail-lf0-f49.google.com ([209.85.215.49]:33513 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752237AbcDBMcQ (ORCPT ); Sat, 2 Apr 2016 08:32:16 -0400 Date: Sat, 2 Apr 2016 14:32:07 +0200 From: Frederic Weisbecker To: Peter Zijlstra Cc: LKML , Byungchul Park , Chris Metcalf , Thomas Gleixner , Luiz Capitulino , Christoph Lameter , "Paul E . McKenney" , Mike Galbraith , Rik van Riel , Ingo Molnar Subject: Re: [PATCH 2/4] sched: Correctly handle nohz ticks cpu load accounting Message-ID: <20160402123205.GB27395@lerouge> References: <1459516987-15745-1-git-send-email-fweisbec@gmail.com> <1459516987-15745-3-git-send-email-fweisbec@gmail.com> <20160402071520.GE2906@worktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160402071520.GE2906@worktop> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 34 On Sat, Apr 02, 2016 at 09:15:20AM +0200, Peter Zijlstra wrote: > On Fri, Apr 01, 2016 at 03:23:05PM +0200, Frederic Weisbecker wrote: > > Ticks can happen in the middle of a nohz frame and > > I'm still miffed with that.. And this changelog doesn't even explain why > and how. Indeed, it looks like I've cooked sloppy changelogs in this series, I'll do another pass on all of them. > > > cpu_load_update_active() doesn't handle these correctly. It forgets the > > whole previous tickless load and just records the current tick, ignoring > > potentially long idle periods. > > > > In order to solve this, record the load on nohz frame entry so we know > > what to record in case of nohz interruptions, then use this recorded load > > to account the tickless load on nohz ticks and nohz frame end. > > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > index f33764d..394f008 100644 > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -4527,9 +4527,9 @@ decay_load_missed(unsigned long load, unsigned long missed_updates, int idx) > > * term. See the @active paramter. > > ^^^^^^^^^^^^^^ > > What active parameter... you need to update that comment. Yeah, forgot that. Thanks.