Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3067818imm; Mon, 28 May 2018 23:51:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqxxBj+fsDsN2q2TUiwKZh7KusPVcfCuBAa2ez3LzcpIPjCQbVm8Nf0xrWLxSltKPoD9Glo X-Received: by 2002:a17:902:b08f:: with SMTP id p15-v6mr16093665plr.36.1527576681004; Mon, 28 May 2018 23:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527576680; cv=none; d=google.com; s=arc-20160816; b=BylVifZmB02P3OIeNIn8FSZjDjQzMrvBXyzjMbIXvAO9czhKrSau0ClRhr4/N11NA6 ywlekZIC7VwBE/cpz1V4sPv69+6j0J5RnsLqZbLziaHSvth4WVd1fmp8EeDwNW2Uj4Uc 7tZHT8t0EgySIfjWGEIPPa8sq8CQtAwqFAAkAPYE9PXQEVaXoFVIz0HcuKvEg97r02rM t+skcW0ntWVwmJfYA65473uqc7wU5+y2K2QTDf/EUCOz4Kp3OLY1bQ/DcQL7vIrMp5r4 zVCHAk6W0S8mgJ4qDunRYXIbO1HvN8fs7GcLsL/1jAxf87Q632XOpuuv/DRJ0sCIg67r PwkQ== 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=QW2Yzhx36EKIiA+PmUlPccDVyAZBV5/Af5gkfdt1se0=; b=QeN5UH4xkt2Rp967mc6tI/EKOnAnpzG22D70+0Gb8xibKZcGo87UM+y6MHXbGW/fn9 7jrZaqhWzCkK/YSBCHyyJzHOAPrReojRhERlkcnClpr+cz3HVETqM2HM8TItOfmRiiua qtb6VbHnrEUxPE5Thvcixmj5YZF6tIhnqmKGDjnn7xtrxTuGoedGk+FtYvQnA9QdJwJA fPSnaJkNgeNJpwLOtT7ZFo25Cc+8eMIRxmhaFloTaOj1TIqtBk/Cb5Gyxam6hlonrW5z 0vmgmEqimwwaab+UjZ+1TIC7TD/+/hRXNoEb56sTQS5LG+siw+IqPstJtl1l84XyDPUK i1kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QzWxvZdD; 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 g7-v6si30815460plt.149.2018.05.28.23.51.07; Mon, 28 May 2018 23:51:20 -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=QzWxvZdD; 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 S1754739AbeE2GtT (ORCPT + 99 others); Tue, 29 May 2018 02:49:19 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:44938 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754466AbeE2GtQ (ORCPT ); Tue, 29 May 2018 02:49:16 -0400 Received: by mail-io0-f195.google.com with SMTP id y2-v6so11080546iob.11 for ; Mon, 28 May 2018 23:49:16 -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=QW2Yzhx36EKIiA+PmUlPccDVyAZBV5/Af5gkfdt1se0=; b=QzWxvZdDjSNFRgafEjLWny8Qgwb92PXFhkfnAT38FsoqxLALWYGPywXntV5lsw7PIl Z7qUeiZ3dDIyE/ErsoTsMnc9pt2Tk2GfCLRvg60/ZKFJ024cKG5Z3SIO1P2WkOkYMU8d X2z764BzKlH3hIrPKrNWM2tyxmsXp/oXcfFCY= 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=QW2Yzhx36EKIiA+PmUlPccDVyAZBV5/Af5gkfdt1se0=; b=nxP+GBOGImf4CzkSoQNPb8eQFHIrMSI1je3iXl3I7Jji8ox37697rIyIh98+QkUJHN so8KWiHCIed+uJdLREm/sU9/BXiP0KCWL2zYAd3UtHhXc0QZO7KL30STANrIVnEtSJmD Zo9moYB/gEclCVRngT+eHMkoGC7NjefYE8TQge/4WapN1xAby+2r4GWToPIllqWBUuMD nBrPY7t9S37Surh4x5cwXqdbrdOOZofbw76eVBPQRNUOwX7ErmBFlLjyBhoGIkfvDrP8 9cPikid5xsR87f+iaoBMzs8g1FbKwX9PbTLlZySZVjJLCTGQKhV6Ez3M0vZ60VjaOl9N jhGw== X-Gm-Message-State: ALKqPwc7HCHf92j5fGBWnsNH9XnOxoBa316yPZ31Lw38br2b1oG53h91 prxWJWR9cvQVb6Vh2yzRQmvPKV+gvAnTx9sRmJAhjA== X-Received: by 2002:a6b:c88c:: with SMTP id y134-v6mr3176334iof.295.1527576555898; Mon, 28 May 2018 23:49:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:4cc:0:0:0:0:0 with HTTP; Mon, 28 May 2018 23:48:55 -0700 (PDT) In-Reply-To: <20180529063158.GB8985@localhost.localdomain> 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> <20180529050833.GA226378@joelaf.mtv.corp.google.com> <20180529063158.GB8985@localhost.localdomain> From: Vincent Guittot Date: Tue, 29 May 2018 08:48:55 +0200 Message-ID: Subject: Re: [PATCH v5 05/10] cpufreq/schedutil: get max utilization To: Juri Lelli Cc: Joel Fernandes , Peter Zijlstra , Ingo Molnar , linux-kernel , "Rafael J. Wysocki" , Dietmar Eggemann , Morten Rasmussen , viresh kumar , Valentin Schneider , Quentin Perret , Luca Abeni , Claudio Scordino , Joel Fernandes , Alessio Balsini 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 29 May 2018 at 08:31, Juri Lelli wrote: > On 28/05/18 22:08, Joel Fernandes wrote: >> 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. > > It's however a bit awkward that we might be running at a higher OPP when > CFS tasks are running (even though they are of less priority). :/ Even if cfs task has lower priority that doesn't mean that we should not take their needs into account. In the same way, we run at max OPP as soon as a RT task is runnable > >> 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? > > I see. Thanks.