Received: by 10.223.185.116 with SMTP id b49csp4983266wrg; Wed, 7 Mar 2018 04:33:37 -0800 (PST) X-Google-Smtp-Source: AG47ELuhJu2TnQvjK54nFqLNq2jvolruTMRm0IJTMLwB1pnQZ3mwEtDwYsTCotr2HhYaoN8/kVkk X-Received: by 2002:a17:902:70cb:: with SMTP id l11-v6mr20638817plt.192.1520426017882; Wed, 07 Mar 2018 04:33:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520426017; cv=none; d=google.com; s=arc-20160816; b=kBr/0KymIgRX0Eue4p1qML8ywk6hAs6+s5lsAtk51uqBRn2vSfD2Ilgi5L7pFWylRQ +aLeE2k8VwAJ0OZmAZ6aSgBkEzwsHkOWlkcDcVsDVGu7En7SmhjfnI1MKuIeUP5LpVUa ZpTV1Ll4e/YfJ29B9bk3y78LFRrsTlyl5+g8551ABHSRs2pm38ftiMetfd3zP+15TKLX sh3xv5qymLHiZJ7WM8FOkgik9xoU3TFpQF1CYP6LhyrTGZ8Qpu3AsiN5++akN2fArJMB BUjE+6SxMVYcwkPTPDh9EIFCf0vw5WTnzbtaon6hNDFgTLaRshli0HppwwN7NAvqPT+4 a93A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=MOEv1M7+8tVO+7P1L/am2xw11flwzjSBr5SaD7zJ/uQ=; b=ceQiit7vwjLsMsLdnW0hE9QBImZ7DWC/qgbMJGixtRmhiUjZoDAu21DZMPqWJezWmm yF0FpSKIFVtybJzGpf/KqF3VLpIU4FCN+8vBuWTT7tWdTiHY/fIZPK/d/ZjTgOFOfmzW e9kRNLnvwSwsBPS7cvdCrkgs5dEYH4Nq0HvrAQuW3nPfbDPsN17SUuzxVWuDmhYxmnc9 VCrKiUDiVdyGj+yIlIxySTU22rQMwTxcsdKzCBVR6SB865hVAd5MxbdmQDeY2Oz4AxOM ZU26rQLubVEw2I0KJ9ZwxUsZLue2I3rkM50Huo7uRAy3L8dBvfx0eeAfdFCcdNZxZlkb NCYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m24si11324239pgd.763.2018.03.07.04.33.23; Wed, 07 Mar 2018 04:33:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753920AbeCGMc3 (ORCPT + 99 others); Wed, 7 Mar 2018 07:32:29 -0500 Received: from foss.arm.com ([217.140.101.70]:49758 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751067AbeCGMc1 (ORCPT ); Wed, 7 Mar 2018 07:32:27 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9208A1435; Wed, 7 Mar 2018 04:32:26 -0800 (PST) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.210.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 378893F487; Wed, 7 Mar 2018 04:32:24 -0800 (PST) Date: Wed, 7 Mar 2018 12:32:21 +0000 From: Patrick Bellasi To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle Subject: Re: [PATCH v5 1/4] sched/fair: add util_est on top of PELT Message-ID: <20180307123221.GC2211@e110439-lin> References: <20180222170153.673-1-patrick.bellasi@arm.com> <20180222170153.673-2-patrick.bellasi@arm.com> <20180306185614.GF25201@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180306185614.GF25201@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06-Mar 19:56, Peter Zijlstra wrote: > On Thu, Feb 22, 2018 at 05:01:50PM +0000, Patrick Bellasi wrote: > > +/** > > + * Estimation Utilization for FAIR tasks. > > + * > > + * Support data structure to track an Exponential Weighted Moving Average > > + * (EWMA) of a FAIR task's utilization. New samples are added to the moving > > + * average each time a task completes an activation. Sample's weight is > > + * chosen so that the EWMA will be relatively insensitive to transient changes > > + * to the task's workload. > > + * > > + * @enqueued: instantaneous estimated utilization of a task/cpu > > + * task: the task's util_avg at last task dequeue time > > + * cfs_rq: the sum of util_est.enqueued for each RUNNABLE task on that CPU > > + * > > + * Thus, the util_est.enqueued of a task represents the contribution on the > > + * estimated utilization of the CPU where that task is currently enqueued. > > + * > > + * @ewma: the Exponential Weighted Moving Average (EWMA) utilization of a task > > + * Only for tasks we track a moving average of the past instantaneous > > + * estimated utilization. This allows to absorb sporadic drops in > > + * utilization of an otherwise almost periodic task. > > + * > > + */ > > The above comment appears to have whitespace issues, the paragraph > starting with "Thus" looks indented by one character for exmaple. That was actually intentional... I wanted to keep it aligned after the "@" to better mark paragraphs describing the struct members. However, I've just notice the overall format is not sphinx valid. Thus, I'll update it to ensure also that the documentation is properly generated. -- #include Patrick Bellasi