Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3505378ybi; Tue, 2 Jul 2019 08:52:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBLxPNQxiLzILJepGnbDxwjPd/M63hA8gOdyaToUBFIUgMdcn8ugM6xW3Rx6yWH8ElWCpO X-Received: by 2002:a63:dc50:: with SMTP id f16mr31778963pgj.447.1562082722000; Tue, 02 Jul 2019 08:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562082721; cv=none; d=google.com; s=arc-20160816; b=vgSII8WySmN0eU5UhKWsWB4GwB5pkbEUFTJqlIY0kv2OH5dN33ejmH1lbTT1toO2/W pdD1kGgGZCGrpjxGkN/XEOrt7dxzmZ+rS04AGlUePliCr9ugFeNZFEV4WQWD8SDA6ryD RBYkH4IpPdZPkVX8Q/uoHCRiYTiluOQIGVEb3b1dyDSy04cQABXDOr0T7NPmUmlo1KFS C5JIJXpgvSlTHEfaXqlBxOLrcI/5sl/0//7DHrfbU11+I6YmglBsDho9pbBuiZP6wpYf qtM22JoyuHbmyGkzTo/cgaWh+JHabfhwtOB7mnuk3nAFAK8SV1jSGPjIZUxRVmTM0vLj vNVA== 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:dkim-signature; bh=KLwUF+icpY+NvjPg4hCU2tdrBb0AljHtBhiYk13AZqw=; b=BMw5TjzqopVODLUHtZaGkoxA3LNdFEHS0PUNOsMF2sj7jGI1e7q3RUh3ZZJeH6GhrG 7gnbcWI5NMPSLymKejdvE2kcEuyT2WQg5Mjb11K7fNI50vsYdtHqpcB+4UHKUsvXXBj5 GpPt5PrMMTYJa+IeNlKAbpsHX/7ywIiuWiRDOrFlc2Q1qdTO5MWP9s+9MeXyhLVgrSjU iF3e1dRKQsvPcPHUShWmAh5DRPHyMoCkegonRMIVX5+IE+Vnp1QgUBp4QPr49Y5rD5Mt oCL05GyYFNnzVmTSi74knDEiS+Vdjc/V3oWBJxSVKS6Se9sZdJLMTTgn3tyrtYRqXCfk wSQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=CUJnZ9HI; 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 t21si2436494pjq.62.2019.07.02.08.51.46; Tue, 02 Jul 2019 08:52:01 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=CUJnZ9HI; 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 S1726930AbfGBPvX (ORCPT + 99 others); Tue, 2 Jul 2019 11:51:23 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50020 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbfGBPvV (ORCPT ); Tue, 2 Jul 2019 11:51:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KLwUF+icpY+NvjPg4hCU2tdrBb0AljHtBhiYk13AZqw=; b=CUJnZ9HI9SeWFonIC7HtQq1TH r/+EJ0czLxUhbo1zSc6SyubnA2lnVcxBrH/Na7K8zabPBwzM7MLvqT5xmIolyX5Xhjem7C5no90Ze mEu+eBvH/JxsV4E6nhzO/ZunGmGY6gx0ybQOZjL+Rney6LOhL5j3zu7Ce5c7JbGneVozT0kNJ1Agk sr5MqZEEpgJ7gy54PvuRHzdIdQBP+a02Itwda7W1+ZPtIe3JZ8AXY9YGDANy6SRVetoOhLwulyQiw uoBYP6L54Igt22rOLYPvUgOaaX62fT1gHZVlu6mlcUjTPBpzNz7PGMjX32dWuhsso1Z/sU7t4u96F lRhPQ6cDQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hiL3t-0003Zu-Dg; Tue, 02 Jul 2019 15:51:17 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D1199203C694A; Tue, 2 Jul 2019 17:51:15 +0200 (CEST) Date: Tue, 2 Jul 2019 17:51:15 +0200 From: Peter Zijlstra To: Douglas RAILLARD Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mingo@redhat.com, rjw@rjwysocki.net, viresh.kumar@linaro.org, quentin.perret@arm.com, patrick.bellasi@arm.com, dietmar.eggemann@arm.com Subject: Re: [RFC PATCH v2 0/5] sched/cpufreq: Make schedutil energy aware Message-ID: <20190702155115.GW3436@hirez.programming.kicks-ass.net> References: <20190627171603.14767-1-douglas.raillard@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190627171603.14767-1-douglas.raillard@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 27, 2019 at 06:15:58PM +0100, Douglas RAILLARD wrote: > Make schedutil cpufreq governor energy-aware. > > - patch 4 adds sugov_cpu_ramp_boost() function. > - patch 5 updates sugov_update_(single|shared)() to make use of > sugov_cpu_ramp_boost(). > > The benefits of using the EM in schedutil are twofold: > 2) Driving the frequency selection with power in mind, in addition to > maximizing the utilization of the non-idle CPUs in the system. > Point 2) is enabled in > "sched/cpufreq: Boost schedutil frequency ramp up". It allows using > higher frequencies when it is known that the true utilization of > currently running tasks is exceeding their previous stable point. > The benefits are: > > * Boosting the frequency when the behavior of a runnable task changes, > leading to an increase in utilization. That shortens the frequency > ramp up duration, which in turns allows the utilization signal to > reach stable values quicker. Since the allowed frequency boost is > bounded in energy, it will behave consistently across platforms, > regardless of the OPP cost range. > > * The boost is only transient, and should not impact a lot the energy > consumed of workloads with very stable utilization signals. So you're allowing a higher pick when the EWMA exceeds the enqueue thing. This then obviously has relation to Patrick's patch that makes the EWMA asymmetric, but I'm thinking that the interaction is mostly favourable? I'm not immediately seeing how it is transient; that is, PELT has a wobble in it's steady state, is that accounted for?