Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3191827imm; Tue, 29 May 2018 02:49:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrR+wdGILHnNfZnvhHuL4GGDrCHfxy1pMn82VNIxWWEkilslbbcHuKga/TkyFIxvji9cQwI X-Received: by 2002:a63:9205:: with SMTP id o5-v6mr13283477pgd.233.1527587353275; Tue, 29 May 2018 02:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527587353; cv=none; d=google.com; s=arc-20160816; b=mZGyqlA5wEIYuwb6s/wusHZqldoQFI7OYLWeSoEe9lDFLMi8kQtd5xeBX2nhgvMTFf fEr/RjYayyoURrN3CjgqL5IycM8tnnq6LuBdEweYlkNJ94GLg9JVTkV64xW4Mmj1mLRO v2WByNuBeGNXPznX3m6hhR7ivzRj+eZiiy5UV3X35PRUiX2X3hzCq//2cArNQwgkQ3AT xSnn3E5fp7aznGZD4h/Ax6VQKmeGIYwsiOxNQj6FCuVtxVmnjQ3bqPC9cFdn2wnfS42R nQHFBPaKlguGAMxbURJM9GwYx6V8xBsngY9vt0E4s9I06LWU4seU4w1CkIJu7+Mm2JX8 X6CQ== 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:arc-authentication-results; bh=P5rwIFTRblolHYfTDkWY5Kh3cCXd/sr1IVR2zRQKlKQ=; b=a8BmKhoN9NINRLrtD6uERBHQ19ACpvrCrzLSMkn0M9ynzlTnW1ajdUHRZFyD1snOFi bp8mhnbpvddgchuPFyYLOxSu4tLf5WozsgDhfh7gkJ508UbqktVAZ22J/+qdYgVdXnQD Md0WmZqc/QXNTXG8RCyO/fcPFptUzNeOIVv8/ciNZPiGWtky4t/sNZNQU7DpVAHj8gWE 3PJdFbx2ImgaUPCcNEDH1kLruPWHNX2Zj43iZgRQTIwKIkXwlb0t6TxBf6tCWAlbmheB acw4ZJRZdm3zmJt0FtE26WZ+91Ap5QS6w3VKtVdiIAF98Q3d1lRDZiaJDymrmgVxV439 /ghQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8-v6si31471411ple.222.2018.05.29.02.48.59; Tue, 29 May 2018 02:49:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932698AbeE2JsE (ORCPT + 99 others); Tue, 29 May 2018 05:48:04 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40640 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932657AbeE2Jrz (ORCPT ); Tue, 29 May 2018 05:47:55 -0400 Received: by mail-wm0-f65.google.com with SMTP id x2-v6so31358460wmh.5 for ; Tue, 29 May 2018 02:47:54 -0700 (PDT) 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=P5rwIFTRblolHYfTDkWY5Kh3cCXd/sr1IVR2zRQKlKQ=; b=dCRtkTxlwYZY7IalbRtnHwZJ2J32aodKiXxQHHLid0K/4DdZYoa9IcotWiF1XUtwxB Tnuwk8BiIZgS5PwKy8RFKmD116b/NG4NRuTvxw4O0ZvgPTTcIL0a7dfZzMP/MThnl72v /ktltUj9O7ovagvIcgzeZhdUSz1BOXrIudYpcZHWQM3A/XLYswBEB1cRQNcyXAhqGOgt +caNUgwH5YkUkKf3AIwdkZ8tsYxU637lONzytYkSqZlTrW2/GglWEWCcU5QouFuS6DrN wlZMS1aCykDvp0cjgRiD7G2ANR5lx1XW2w3EnCcYvpcE7Nh2qwi2d+nXec+tJipoLfJu /tdg== X-Gm-Message-State: ALKqPwedCJOORGaYtP4xVWARva2jb3S+2+HSMivM5EyjQ4FpsEMpRTe2 wSO11zkWNe/JOMG9WGT7qt0UhQ== X-Received: by 2002:a1c:aa0c:: with SMTP id t12-v6mr699974wme.56.1527587274108; Tue, 29 May 2018 02:47:54 -0700 (PDT) Received: from localhost.localdomain ([151.15.207.242]) by smtp.gmail.com with ESMTPSA id m69-v6sm22660545wmd.47.2018.05.29.02.47.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 02:47:53 -0700 (PDT) Date: Tue, 29 May 2018 11:47:50 +0200 From: Juri Lelli To: Vincent Guittot 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 Subject: Re: [PATCH v5 05/10] cpufreq/schedutil: get max utilization Message-ID: <20180529094750.GC8985@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 29/05/18 08:48, Vincent Guittot wrote: > 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 Sure. What I fear is a little CFS utilization generating spikes because dl.util_avg became big when running DL tasks. Not sure that can happen though because such DL tasks should be throttled anyway.