Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3002007imm; Mon, 28 May 2018 22:09:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrW5Pm5uIvDLjRuFYLOq+juybNcNioD37JBcBQeNht11CCbj9pX+1os9m78hSKYHVm0aNC8 X-Received: by 2002:a17:902:8307:: with SMTP id bd7-v6mr16066701plb.234.1527570556242; Mon, 28 May 2018 22:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527570556; cv=none; d=google.com; s=arc-20160816; b=hTG7vXRl5hhbXeFATGf+XBwItCbPvaZAIEzT5mUx0LSCcJkh+5NeNW2krp8GmpI1gv VquAesMeIFc2tJ1A9AT26mqW3a79+QvKxtXIf9iLipONfmajR0rt7U0FLAtX9ZTtdOpe 8IEELEBsnOM0kPxU6R0Kpr3WVmvGmub03voJvdKKXkUUDnALIlpYemShRsci0CSzKoH8 L7y+wByPdzcYjXCFMX9iPkioD8Yck4VkqpIXTpNmnb02QqHR40ILpuUysTZGNVVMsOWQ R1/BI+UOiXrvtL+vR1mMU80BmnMjuujucLuB7RxjX1i/WPkhjUug66NaEXgXDKhfSHGF QBuQ== 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:arc-authentication-results; bh=Jrt5jFdbw3W1iVpFGHSAyHuSskhM3KM+U5D6NWPix+4=; b=jCq4jV/mIAtf6EgeIqxQy5X3eM+6UcnOWx8Jj/N1cAnHHWyWPTHPfX4LasPHL64cuz CXLOuR4jn/1pSrE5jLgxaKzonXU4YNBoc3P0UYqO+iqUNqDroO9AKiwxLyOrbLFO9g4Q enJ4b02yCiEj7d2eCN/5Txc3ia051QDB/JhE++Db1pva1fMWgXeV+Y2bnCGh1Gu/ArkN X29o9h2Fb19ErvydukfiKWg00tTmnrMQR5tfPCypXn9h66jgYY4sBwt+bQeQc6nDWnyW OBrGta+mRHskeiJkfDBt80u5frTLhwAw8Wi4Y9plBRO3B90oLoseaYTA1QuZl5FSkCVO 4bzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=YqdmwOEt; 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 b36-v6si32260362pli.30.2018.05.28.22.09.02; Mon, 28 May 2018 22:09:16 -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=@joelfernandes.org header.s=google header.b=YqdmwOEt; 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 S1751350AbeE2FIi (ORCPT + 99 others); Tue, 29 May 2018 01:08:38 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:45433 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbeE2FIf (ORCPT ); Tue, 29 May 2018 01:08:35 -0400 Received: by mail-pg0-f65.google.com with SMTP id w3-v6so6040403pgv.12 for ; Mon, 28 May 2018 22:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Jrt5jFdbw3W1iVpFGHSAyHuSskhM3KM+U5D6NWPix+4=; b=YqdmwOEt9WLe5Zr7iQj6EMQrvaL6geOh1OY/8KEr5VW4GW7aZwcECqjfnV/2U1b2Cw gJ9N+3a8XKlNaZqnkrb2B+mJdD88j6IyF0zZXrFLG5A6WfyETu4zQu/yd7axmpA7UoIq wZnh0wDU62SIOxn1HsVYJyf2KsbKZkrFgHdag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Jrt5jFdbw3W1iVpFGHSAyHuSskhM3KM+U5D6NWPix+4=; b=bb142o14MkYmMIpaa+czWv2h200wsrOrFAci86MvgBnz9Tgpu+N722witH7lfG66Zx MYqOlJJ9267QRxvVc5wmq1TdbNvvkTgSv5tBjJhgYS06/U7erAlFgZtUxd3MtU0662Ag CSZng/pKIHGEpJdCt9kJ6tF91xbqcAAYxV7HCdPWUlEyqr/yPxNJY3FS+Nkf5hF9ps68 HA34M56Wc+YiUFEHvSNphPr8quVu4vUSpMO/ywonU6JoJrHH6VA1gdy+Q14Y/1v1EX46 ncX/xcVPCt0bNNj0MG25MoQG9ZgunCillx5Sf4c3fuyA25jmrFnGpdNT9cMR+P5p2RAo YEMw== X-Gm-Message-State: ALKqPwdDr1GPGjNw0Q+Redp0QbICEG7RDYW64Uj/3kzyWrl+NZN0Ld3K FzfEScUJ76oHuKJs66nH1szCKw== X-Received: by 2002:a63:9d8e:: with SMTP id i136-v6mr12359276pgd.288.1527570514792; Mon, 28 May 2018 22:08:34 -0700 (PDT) Received: from localhost ([2620:0:1000:1600:3122:ea9c:d178:eb]) by smtp.gmail.com with ESMTPSA id e6-v6sm83014562pff.185.2018.05.28.22.08.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 May 2018 22:08:34 -0700 (PDT) Date: Mon, 28 May 2018 22:08:33 -0700 From: Joel Fernandes To: Juri Lelli Cc: Vincent Guittot , peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, viresh.kumar@linaro.org, valentin.schneider@arm.com, quentin.perret@arm.com, Luca Abeni , Claudio Scordino , Joel Fernandes , Alessio Balsini Subject: Re: [PATCH v5 05/10] cpufreq/schedutil: get max utilization Message-ID: <20180529050833.GA226378@joelaf.mtv.corp.google.com> References: <1527253951-22709-1-git-send-email-vincent.guittot@linaro.org> <1527253951-22709-6-git-send-email-vincent.guittot@linaro.org> <20180528101234.GA1293@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180528101234.GA1293@localhost.localdomain> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 28, 2018 at 12:12:34PM +0200, Juri Lelli wrote: [..] > > + > > + util = max_t(unsigned long, util, READ_ONCE(rq->avg_dl.util_avg)); > > + > > + return util; > > Anyway, just a quick thought. I guess we should experiment with this a > bit. Now, I don't unfortunately have a Arm platform at hand for testing. > Claudio, Luca (now Cc-ed), would you be able to fire some tests with > this change? > > Oh, adding Joel and Alessio as well that experimented with DEADLINE > lately. I also feel that for power reasons, dl.util_avg shouldn't drive the OPP beyond what the running bandwidth is, or atleast do that only if CFS tasks are running and being preempted as you/Vincent mentioned in one of the threads. With our DL experiments, I didn't measure power but got it to a point where the OPP is scaling correctly based on DL parameters. I think Alessio did measure power at his setup but I can't recall now. Alessio? thanks, - Joel