Received: by 10.223.176.5 with SMTP id f5csp560449wra; Wed, 7 Feb 2018 03:58:09 -0800 (PST) X-Google-Smtp-Source: AH8x224u8YanKShQzEmV4z2tA7kl/fD6Mv7nwEGx+FZpwZaj2ipy5MuoMU6YuFkSpMfExMiDcQYP X-Received: by 2002:a17:902:6e88:: with SMTP id v8-v6mr5873669plk.374.1518004689196; Wed, 07 Feb 2018 03:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518004689; cv=none; d=google.com; s=arc-20160816; b=fSvhBD1ns7k+GOgtJvJRJZ8XUdwB1LR+f/VCP9ZpMDo0CSXNHIIVa/HaDc9FUOLpd/ CUSlje1oxCABp3jBz1BWOZA6G4wUUXa8c7yvKCZJnVDP3Ng8/u1OgGvn8RthD0Q7IHRi sSJteCXg4m2d6Uhhje0Itn+pJ/UXC/KwPPcO1V79Mw63dVtdP4Hlv9gJADDEKOwOdT5f 9U7prhPZchyhvwGUmFeV45NpocSCyIkgTx/KP96CpaqA2/gBjujtTt5BfPkJ/xa7auM4 vAlxnYquBEDVosqPPCdqQ7/pmzhvCpaspZa2ZcQQTT5F2Hl3uHBsA6EXsao0kIWoE8+7 rLCQ== 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=c3UaznvbCeNXcysGpo1HDbgd4VPb095f9bd0s0FBxck=; b=lk8jBi7hT487pN1l7Fq1ub9GrzdqIqKT1ZnzUSEfZaV8PqCPSo2gadAU+7AWX0uDxc a0iBrjJuPb0C4/U3Z6wGVxXAnFbHMnrwTxLABzofzJBxmGktDhClU0iTmZC1ss196ioA 5kJWVVCRqw17HbDTjt3tZX9knzUnjPCtkCYVKTYk+hPtRznJVrdHIYelEIzhgSZ0+NE2 glKDr5YRL6mWVM7lHrp03q1jCkZo5uzmp90RKztCXJgFW5VqV6gdycKMumnZGtyxqbQu 0J+/tE38C+7bmqMyEVTULllall7F3A7coEVCzC3TZA60hERwDIKEH5XmreZ7J4XutrRN ZoHg== 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 k71si840783pgd.533.2018.02.07.03.57.55; Wed, 07 Feb 2018 03:58:09 -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 S1753809AbeBGL5O (ORCPT + 99 others); Wed, 7 Feb 2018 06:57:14 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:49890 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753497AbeBGL5N (ORCPT ); Wed, 7 Feb 2018 06:57:13 -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 D0D0E80D; Wed, 7 Feb 2018 03:57:12 -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 7650D3F53D; Wed, 7 Feb 2018 03:57:10 -0800 (PST) Date: Wed, 7 Feb 2018 11:57:07 +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 v4 1/3] sched/fair: add util_est on top of PELT Message-ID: <20180207115707.GJ5739@e110439-lin> References: <20180206144131.31233-1-patrick.bellasi@arm.com> <20180206144131.31233-2-patrick.bellasi@arm.com> <20180206155056.GF2269@hirez.programming.kicks-ass.net> <20180206183315.GG5739@e110439-lin> <20180206190900.GN2249@hirez.programming.kicks-ass.net> <20180206191507.GU2295@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180206191507.GU2295@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-Feb 20:15, Peter Zijlstra wrote: > On Tue, Feb 06, 2018 at 08:09:00PM +0100, Peter Zijlstra wrote: > > On Tue, Feb 06, 2018 at 06:33:15PM +0000, Patrick Bellasi wrote: > > > > > Good point, I was actually expecting this question and I should have > > > added it to the cover letter, sorry. > > > > > > The reasoning was: the task's estimated utilization is defined as the > > > max between PELT and the "estimation". Where "estimation" is > > > the max between EWMA and the last ENQUEUED utilization. > > > > > > Thus I was envisioning these two calls: > > > > > > _task_util_est := max(EWMA, ENQUEUED) > > > task_util_est := max(util_avg, _task_util_est) > > > > > > but since now we have clients only for the first API, I've not added > > > the second one. Still I would prefer to keep the "_" to make it clear > > > that's and util_est's internal signal, not the actual task's estimated > > > utilization. > > > > > > Does it make sense? > > > > > > Do you prefer I just remove the "_" and we will refactor it once we > > > should add a customer for the proper task's util_est? > > > > Hurm... I was thinking: > > > > task_util_est := max(util_avg, EWMA) > > > > But the above mixes ENQUEUED into it.. *confused*. > > So mixing in ENQUEUED seems to give it an upward BIAS if the very last > activation was 'high'. Thereby improving ramp-up. > > That seems to be what we want.. might be nice to have that in a comment > ;-) Ok, I should have read this one before... to avoid you a longer (boring) response to your previous email :/ > I'm thinking we want a different name for max(EWMA, ENQUEUED) though, > but I really can't come up with a sensible suggestion, which I suppose, > is why you stuck an underscore on it and went on with things. The only sensible way I come up with is to consider that max as a util_est "internals"... while the actual task_util_est() (without "_") should consider util_avg as well, for PELT tracking when a task is becoming bigger the it's previous activations. Is that not reasonable enough? Potentially I can add also the task_util_est() version... but right now we do not have clients... still gcc should not be upset. -- #include Patrick Bellasi