Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3550823imm; Mon, 4 Jun 2018 05:37:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKQNZbvTeVJugjPzp9BEnmZVKNQWJJ/RggWljUhsII/QSe0vTNYjh1TkHZiGXOdE0DsKDwU X-Received: by 2002:a62:d97:: with SMTP id 23-v6mr13464708pfn.202.1528115822353; Mon, 04 Jun 2018 05:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528115822; cv=none; d=google.com; s=arc-20160816; b=YJDSRjG6LbaJo4NeLWB11Oq3ZVEH9jH3AVd9QJw0Ww5u248VvtLMHuZxJA/GM1za+G KWNRrFFafX4ouvTPI8HcLDGESHyA8wE7ht2HH/Iv/JfVVLmPdl3bMewQZ9s1gJG+hrv2 5mUNWpwsjvxaRjshrgEm14OGA/GmDW91Q0GZOa5+zQusHd5hD0x0wKAPZ7eO22cjAsoU dVtrHr/L84ECA4bSz5VjS/xmX28atkXH2cAo1icZgP42DSD6Z4DS9YdBns38w9HZDI1H l8Quern0Pm0cHXjamv6BHZida8NxoOvonf4e4bWpIlcrFTSR4pBThW7ZReN5shCgdluF /6Ng== 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=05nx8y5v22W45MV6naF4LJ6wMQmEQASsCa5MsqQ7AVg=; b=Ncg29MZVyvKT3ZBKCmf5/ySm7nH98GgIgzTuWWiy6HRRfevsIvMCp8gw7cDMnWDqev l2Jxy4O5hk3G9HIMBAYrv063biucwVrn2mFYT+ZbdSp73euhhmLkV0n/PZ8DzR2v0d84 4r3oltUY37BGr5XhxQzv3dnS1T7GXddNi0ca2ZfAyhuezmB16WVGA8bHGABNUNtNCzq/ z34Ol9AXwvGjl2XoZqGTk4E2KaxMErtBfh9kWW3mU/N9QdOeTYE44Nl91Hw8midPV2JJ 8j8/IznCDa/1PgNmOd6V4kVJHdd7C+I3c3dhqtD692hJJlIVGixGfPXXrj/vQWwhfSYE FfZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FMZmP3Kr; 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 205-v6si19335130pgg.687.2018.06.04.05.36.47; Mon, 04 Jun 2018 05:37:02 -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=FMZmP3Kr; 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 S1752981AbeFDMgT (ORCPT + 99 others); Mon, 4 Jun 2018 08:36:19 -0400 Received: from mail-io0-f194.google.com ([209.85.223.194]:44627 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752288AbeFDMgR (ORCPT ); Mon, 4 Jun 2018 08:36:17 -0400 Received: by mail-io0-f194.google.com with SMTP id g7-v6so13970496ioh.11 for ; Mon, 04 Jun 2018 05:36:17 -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=05nx8y5v22W45MV6naF4LJ6wMQmEQASsCa5MsqQ7AVg=; b=FMZmP3Krex6VEh4itUgaZcXG7hCqQy47CVP9u5Lg2QXk/RAwxiXFDuVdEgbos8hY1P qy3XjheUbUAT4ubx7sDVEgknmZAHFrzJZ/9MMVIyBdeo4a0S3tN1WPSGZmktdPEcOUUq ExW7rkN1DQfpGRu61ASZaEwlPd8tb3PzZjVtU= 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=05nx8y5v22W45MV6naF4LJ6wMQmEQASsCa5MsqQ7AVg=; b=A+414tFNmygSQov0yNskPi5v2tm7vL0TyD/296tOrgJF9tTm8m1AtAX2RC97DBasqV iOJp8rKbzouwn0ez6ghNijt8DFSgF0nw9S6Y9EW5msEbehFD/AUJS03L49xJsraLiv0d S2FqMrBYXfGoG24QPxk95s+YMhSRZd5ltMkipoonx8d2CX8nRRdErGewSIz/6Tky7IbN +f12RzrLmd+I++Zz8XnUan9o4/SR22mED/xYX2YLhT/+vBMoEpbI1DKR4FnaQTYiFmNO jbdN4Lr6vT73uNHmzqtvh4z4f0DgCbHZj/WKkw/nGyd/2Hj2TPAxwZGOVbCXY0CfCACl QXmA== X-Gm-Message-State: ALKqPwcYN/No2hJt+OazqnQgDzxVdlqUiseN9q6BHVQTLH9OKowFKGPM PI/8lBElSR3nl0E5N4ZVxe0kArZlqp1h0+ePygrlcA== X-Received: by 2002:a6b:e315:: with SMTP id u21-v6mr22451102ioc.196.1528115776578; Mon, 04 Jun 2018 05:36:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:304a:0:0:0:0:0 with HTTP; Mon, 4 Jun 2018 05:35:56 -0700 (PDT) In-Reply-To: <20180604101247.GB2731@localhost.localdomain> References: <20180528152243.GD1293@localhost.localdomain> <20180531102735.GM30654@e110439-lin> <20180601135307.GA28550@linaro.org> <20180601174526.GA105687@joelaf.mtv.corp.google.com> <20180604070438.GA2731@localhost.localdomain> <20180604101247.GB2731@localhost.localdomain> From: Vincent Guittot Date: Mon, 4 Jun 2018 14:35:56 +0200 Message-ID: Subject: Re: [PATCH v5 05/10] cpufreq/schedutil: get max utilization To: Juri Lelli Cc: Joel Fernandes , Patrick Bellasi , 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 , "Cc: Android Kernel" , 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 4 June 2018 at 12:12, Juri Lelli wrote: > On 04/06/18 09:14, Vincent Guittot wrote: >> On 4 June 2018 at 09:04, Juri Lelli wrote: >> > Hi Vincent, >> > >> > On 04/06/18 08:41, Vincent Guittot wrote: >> >> On 1 June 2018 at 19:45, Joel Fernandes wrote: >> >> > On Fri, Jun 01, 2018 at 03:53:07PM +0200, Vincent Guittot wrote: >> > >> > [...] >> > >> >> > IMO I feel its overkill to account dl_avg when we already have DL's running >> >> > bandwidth we can use. I understand it may be too instanenous, but perhaps we >> >> >> >> We keep using dl bandwidth which is quite correct for dl needs but >> >> doesn't reflect how it has disturbed other classes >> >> >> >> > can fix CFS's problems within CFS itself and not have to do this kind of >> >> > extra external accounting ? >> > >> > I would also keep accounting for waiting time due to higher prio classes >> > all inside CFS. My impression, when discussing it with you on IRC, was >> > that we should be able to do that by not decaying cfs.util_avg when CFS >> > is preempted (creating a new signal for it). Is not this enough? >> >> We don't just want to not decay a signal but increase the signal to >> reflect the amount of preemption > > OK. > >> Then, we can't do that in a current signal. So you would like to add >> another metrics in cfs_rq ? > > Since it's CFS related, I'd say it should fit in CFS. It's dl and cfs as the goal is to track cfs preempted by dl This means creating a new struct whereas some fields are unused in avg_dl struct And duplicate some call to ___update_load_sum as we track avg_dl for removing sched_rt_avg_update and update_dl/rt_rq_load_avg are already call in fair.c for updating blocked load > >> The place doesn't really matter to be honest in cfs_rq or in dl_rq but >> you will not prevent to add call in dl class to start/stop the >> accounting of the preemption >> >> > >> > I feel we should try to keep cross-class accounting/interaction at a >> > minimum. >> >> accounting for cross class preemption can't be done without >> cross-class accounting > > Mmm, can't we distinguish in, say, pick_next_task_fair() if prev was of > higher prio class and act accordingly? we will not be able to make the difference between rt/dl/stop preemption by using only pick_next_task_fair Thanks > > Thanks, > > - Juri