Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp176006imm; Mon, 14 May 2018 23:22:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrfj40tv44xihkrN+SFmPgkuhMj0CPH+03Ht0mbwbO+yccNENAo1DE9B34o0eE772AAUtEm X-Received: by 2002:a63:6bc7:: with SMTP id g190-v6mr10992811pgc.230.1526365377387; Mon, 14 May 2018 23:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526365377; cv=none; d=google.com; s=arc-20160816; b=F9n9I4cF+JlE/W3VtHsnMEaZ1cCbNLlhnE0/95nZr/jBF/KLm1rDRd1S1zoRKrSaR6 qL5Zm4KUwKBNqzMhvG5XD0kR+htqGubnMe7K42UOu9a5JVgLkRGoMwR/04HuJmja0lvN CgjGW2jw9qf6Lcc7rx5cdp8QxvrKSMTo9pT2SIozKW95KDMSkhApinF7T7vNHxM0VFE1 T7d6jNJMZVkjBv4f8b1pk2I3jRWXuWUQeGSqd7ww4vpM/QIsvc7nPmXIe1Vo9CdQvYap d9096PmKwIq4XJ+8uuoOtnlirWyqLWLzYtm0NxD/vSpBEnpcCvd5S6jPNfb0dfuBpQbT 2ZOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Akn2m2cej+7aQZWWVAKeEmii8USiGbCrIT6MPV47TB8=; b=pw2N2k4QFB4OTdepYqmXjr8oRcEHzArCJ2puPESQsU2GZzzH76JPBZvKXr30nUkIer 2gBaUIWlw/NyxxS0kelN9yccT1Xo26TJMZ9swZnL/MSLSEq/tM4Q1uFvaQ64b5X8zj6a VzN0SPw27oX4Fa4WvElqxRuefAZ2apcY+GKLiNTqAzOOSrQYP30ODCrtaBdOnKecM2ou sgXZjRAeU4hv2FMMeNeSS69Fh0G2fTxr5MtLCHzvCC/SQeyr/lB38DMevq/2qJEjJj13 2eK/1HWnTF2bNPHW8JyfedqHojxYJ0STOtUkWM/GKEhxrwK0PCzRdvskfbJ2ekRVZFTb fQ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UGVG1br0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si8871881pgs.396.2018.05.14.23.22.43; Mon, 14 May 2018 23:22:57 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=UGVG1br0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752239AbeEOGVw (ORCPT + 99 others); Tue, 15 May 2018 02:21:52 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:50743 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752089AbeEOGVt (ORCPT ); Tue, 15 May 2018 02:21:49 -0400 Received: by mail-it0-f67.google.com with SMTP id p3-v6so16439092itc.0 for ; Mon, 14 May 2018 23:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Akn2m2cej+7aQZWWVAKeEmii8USiGbCrIT6MPV47TB8=; b=UGVG1br0yOGA/hBcHIHWzqG6S/C1sLiy20NX2ec5XZ0LMwKU+CnPDaKDJlH0NCxbNI frOI/6w3siznCeRg7w6DdwjnbF1zJ6GQnZRPbQlf8I8Jranq/xO1hJivPfmtUOa+U14z f0e0Zlm6iL1fxtK6W9ZI33Sy8AF6+gkaQdJe4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Akn2m2cej+7aQZWWVAKeEmii8USiGbCrIT6MPV47TB8=; b=P0Pd9s7lASKsqxfkPP1REAwhq6Vh5HLHcWORS5a2DOpdiYiB2Fexb0O7cd6f3a+ffi qDXWwgZ7dGdRDNVN84T2JH6JMpqnLbj6b2pecCU/5mkThlt1GrF046OX5o0dekU2KKhH lZwSLAyi/iNhzUPysyahl3xoqAGRSEKcw3UawvvZBeOKigR4BedzBaM060Ovn34G0nOG CY/zHYf0N1TQ72Kfv+dNmTU6Zc7vkJRl0g7xwSvcAQxfLfnB+fCGkNleRSjPk8aEd+u6 B8KLCjhnLt9QFG0nkc0WwbTZjtaP9UBZY7cQI9F6XizaUi3GNK/a3iDc/6RDc5zQ8U99 ic8Q== X-Gm-Message-State: ALKqPwffi7eVAbBmGhjGDtQHj0B4Il6kD0sT++pAWviQmKNH9O4YxDvq VlM/yfQ2FEZEIEq2D0J9b+sxON1Bg9PPtquNBoV/xw== X-Received: by 2002:a6b:30cd:: with SMTP id w196-v6mr13339981iow.183.1526365309113; Mon, 14 May 2018 23:21:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.4.204 with HTTP; Mon, 14 May 2018 23:21:28 -0700 (PDT) In-Reply-To: <20180514164812.GI30654@e110439-lin> References: <20180511131509.16275-1-patrick.bellasi@arm.com> <20180511131509.16275-2-patrick.bellasi@arm.com> <20180514164812.GI30654@e110439-lin> From: Vincent Guittot Date: Tue, 15 May 2018 08:21:28 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] sched/cpufreq: always consider blocked FAIR utilization To: Patrick Bellasi Cc: linux-kernel , "open list:THERMAL" , Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Viresh Kumar , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Joel Fernandes , Steve Muckle Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14 May 2018 at 18:48, Patrick Bellasi wrote: > On 14-May 11:16, Vincent Guittot wrote: >> Hi Patrick, > > Hi Vincent, > >> On 11 May 2018 at 15:15, Patrick Bellasi wrote: >> > Since the refactoring introduced by: >> > >> > commit 8f111bc357aa ("cpufreq/schedutil: Rewrite CPUFREQ_RT support") >> > >> > we aggregate FAIR utilization only if this class has runnable tasks. >> > This was mainly due to avoid the risk to stay on an high frequency just >> > because of the blocked utilization of a CPU not being properly decayed >> > while the CPU was idle. >> > >> > However, since: >> > >> > commit 31e77c93e432 ("sched/fair: Update blocked load when newly idle") >> > >> > the FAIR blocked utilization is properly decayed also for IDLE CPUs. >> > >> > This allows us to use the FAIR blocked utilization as a safe mechanism >> > to gracefully reduce the frequency only if no FAIR tasks show up on a >> > CPU for a reasonable period of time. >> > >> > Moreover, we also reduce the frequency drops of CPUs running periodic >> > tasks which, depending on the task periodicity and the time required >> > for a frequency switch, was increasing the chances to introduce some >> > undesirable performance variations. >> > >> > Reported-by: Vincent Guittot >> > Signed-off-by: Patrick Bellasi >> > Acked-by: Viresh Kumar >> > Cc: Ingo Molnar >> > Cc: Peter Zijlstra >> > Cc: Rafael J. Wysocki >> > Cc: Vincent Guittot >> > Cc: Viresh Kumar >> > Cc: Joel Fernandes >> > Cc: linux-kernel@vger.kernel.org >> > Cc: linux-pm@vger.kernel.org >> >> With this patch, I can't see the spurious OPP changes that I was seeing before > > Cool thanks... regarding OPP updates I've added some more comments in > my reply to Joel's comments to my last patch of this series. > > Would be nice if you can have a look... toward the end there are some > considerations about schedutil updates (indirectly) triggered by your > patches for blocked load updates on IDLE CPUs. I have started to have a look at the 3rd patch and was checking if there were some hole and your proposal regarding the update of blocked load and the removed utilization I will read your latest comment. > >> FWIW >> Acked-by: Vincent Guittot >> Tested-by: Vincent Guittot > > Thanks for testing, will add these to the next respin. > > -- > #include > > Patrick Bellasi