Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6763518ybi; Mon, 8 Jul 2019 08:16:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZxUHzq157IroVIWTDLj3Cup7YcZp14P0sg5LmTHuTJumu2F/jFm+fGWOj7KXkfkciJh13 X-Received: by 2002:a65:498c:: with SMTP id r12mr23849749pgs.27.1562598969988; Mon, 08 Jul 2019 08:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562598969; cv=none; d=google.com; s=arc-20160816; b=JfTUEx9kbbLhgxBdWsDPMfONFwcuA0yWJbS/D8inSeDfuwL4rA7IgZyfupzNmcYN4l e9jRcJjJDILb9L73AlDe70R7lksYwdZqZlZjBRahttp1du9tBtSVSRE7ufuaqT1hkMyy KGea1B54pYeBi3rPA+99g2wgdx8vz2p3aMz22SI7qf1I2x6xu6HNB48ZVGNRdAqtHDNh IOjkHSdI0+DwGem0PRGoa1RX3BqBtsVhsN5K6ju1fSNfjn7WmLkRrr/I92ik/WbBIthc 7xH1WbARqEV9N/vf4XJWg33X1H8KH9AkMPRU/ZzZY4ljSwPa9DUFY3QGUZb9hKI0toVC Csbg== 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; bh=2yNxFjPtJ0ZVvCw1VgBJ4UFxDLVS5euKlxGnlTIO3M0=; b=RhPipSwMitlm176G96VI/rmfZc4YFLE/3/GK2B5yIou3ItOYWx1Dlq1Vy6FVc6GGPe mIk1E0L1VtW/RbIALoxSSDtmCZmGlIrQ7FyM6mA87eNLGwcZT1ZQz8R9EJJu3jxx9E3T gU1gGi6UpX1R0V9pqGzaxtQrHe5/gjBG8sDlLKNbfC45NuE9LcnZGRIHcgUiZFCMR2MP xSHQ688UFjNfWsEYqBiaKnSeM1V26FtnaIkDakh1fx3oQDlj7DU3CCf0YWJVuVeKyRnE Kd/CXMGiM4OxGt8d6ET7Z8GRvugik4lmbZExBy/iKWQWICnGpEL/sLGoTGzhCNKjLE/3 +6qA== 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 k7si14135034pga.132.2019.07.08.08.15.54; Mon, 08 Jul 2019 08:16:09 -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; 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 S1730393AbfGHLNx (ORCPT + 99 others); Mon, 8 Jul 2019 07:13:53 -0400 Received: from foss.arm.com ([217.140.110.172]:45042 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730294AbfGHLNx (ORCPT ); Mon, 8 Jul 2019 07:13:53 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4C85B360; Mon, 8 Jul 2019 04:13:52 -0700 (PDT) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.194.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 123B63F738; Mon, 8 Jul 2019 04:13:50 -0700 (PDT) Date: Mon, 8 Jul 2019 12:13:49 +0100 From: Patrick Bellasi To: Douglas Raillard Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, mingo@redhat.com, rjw@rjwysocki.net, viresh.kumar@linaro.org, quentin.perret@arm.com, dietmar.eggemann@arm.com Subject: Re: [RFC PATCH v2 0/5] sched/cpufreq: Make schedutil energy aware Message-ID: <20190708111348.o6o63jisbukuk64d@e110439-lin> References: <20190627171603.14767-1-douglas.raillard@arm.com> <20190702154422.GV3436@hirez.programming.kicks-ass.net> <590e3dd9-ea4e-5230-d12c-d04bb3916e89@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <590e3dd9-ea4e-5230-d12c-d04bb3916e89@arm.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03-Jul 14:38, Douglas Raillard wrote: > Hi Peter, > > On 7/2/19 4:44 PM, Peter Zijlstra wrote: > > On Thu, Jun 27, 2019 at 06:15:58PM +0100, Douglas RAILLARD wrote: > > > Make schedutil cpufreq governor energy-aware. > > > > > > - patch 1 introduces a function to retrieve a frequency given a base > > > frequency and an energy cost margin. > > > - patch 2 links Energy Model perf_domain to sugov_policy. > > > - patch 3 updates get_next_freq() to make use of the Energy Model. > > > > > > > > 1) Selecting the highest possible frequency for a given cost. Some > > > platforms can have lower frequencies that are less efficient than > > > higher ones, in which case they should be skipped for most purposes. > > > They can still be useful to give more freedom to thermal throttling > > > mechanisms, but not under normal circumstances. > > > note: the EM framework will warn about such OPPs "hertz/watts ratio > > > non-monotonically decreasing" > > > > Humm, for some reason I was thinking we explicitly skipped those OPPs > > and they already weren't used. > > > > This isn't in fact so, and these first few patches make it so? > > That's correct, the cost information about each OPP has been introduced recently in mainline > by the energy model series. Without that info, the only way to skip them that comes to my > mind is to set a policy min frequency, since these inefficient OPPs are usually located > at the lower end. Perhaps it's also worth to point out that the alternative approach you point out above is a system wide solution. While, the ramp_boost thingy you propose, it's a more fine grained mechanisms which could be extended in the future to have a per-task side. IOW, it could contribute to have better user-space hints, for example to ramp_boost more certain tasks and not others. Best, Patrick -- #include Patrick Bellasi