Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp861869imm; Wed, 10 Oct 2018 05:35:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV63m6gH2k8Afzgd98Q4CilXotDKqAEqmAl7OON7dapfS9x6JfNrRJwoPIyD0INIeG6Silqeq X-Received: by 2002:a62:c80d:: with SMTP id z13-v6mr34191858pff.176.1539174950598; Wed, 10 Oct 2018 05:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539174950; cv=none; d=google.com; s=arc-20160816; b=wUf0FUa4netm52iAZKtFT51HLsEhp0n6BXwMwBbdogagZkLENRpuomHKBULIf5Vr/7 bBB9vMbSmrajENMf3xwUFfmS/80utErZE5J7hYmcXiMDaV+wbOG/e3vJ4GprIVQdcBV3 eRyLd4U+qNd8YjEnwc2YqebbC7ovvpxtpYd1XvMzVYGLNurYgAKHANECWlhWiNNTg9bx JEIby4YfbECbM55cN7U191tN0ghF7Nf+pIqJNkktch+0qZVTiUut3RI/52zTGlFFA0kM SYfODmD24bKtSdXF/yGNIYHIQyndoYa9ZcDA3cgQkYwNunf5cJE/12DNG9Bfpj0iNlC8 O0Hw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=cF8e0940EhTdq/A/X0zHKvzVE/vZUBeRt2St8pXKHLA=; b=gl6IF/re55zyQcqTwBkqS1PaKFEvHwcEbczKJjyfKOmPN3FOH8z0jS52rAazkgbO1f T75k95ReXUH6+NuyE+LDeq4EOHwCK0OJcuykExc3VZ29zCmHivtsnArtij8LccdwFDIX k6WMmtfWcAlfu31dEEf5m6ehE2MDQbOndsiz2FyOlAg05JgZ/XIU2Td9dtDgRixXMEmo LZDJlXtmG1Qbyh5Vdp6kfPrn/hrELv9vEXgSjQbt/EiwyAWtJ2QWyiu2WnC/QnXROnHB hGILZkZecOOop4dk2amm4EUnsQJM5bdJpQ7Sg21io/nXvdqcKvVrkZmpilz+l1SE/tUn vdqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BGn26J5q; 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 q1-v6si27373083pfb.258.2018.10.10.05.35.35; Wed, 10 Oct 2018 05:35:50 -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=BGn26J5q; 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 S1726693AbeJJT4n (ORCPT + 99 others); Wed, 10 Oct 2018 15:56:43 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:37773 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbeJJT4m (ORCPT ); Wed, 10 Oct 2018 15:56:42 -0400 Received: by mail-it1-f194.google.com with SMTP id e74-v6so7672377ita.2 for ; Wed, 10 Oct 2018 05:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cF8e0940EhTdq/A/X0zHKvzVE/vZUBeRt2St8pXKHLA=; b=BGn26J5q3DdwtAkziyvsKv8pCwB5DbhcQDHTxD0RCJRKDoT7UOztg963tkZjrxZfFZ MKGmt6yy6bpVfM2//kR8BLATLahDFRxv2j33C0sFdv71OIBIk+NdLy1n468+aHkz8qYg XfnP2g+SLDp42xinbr5pRuCC484KAGXJzRHmI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cF8e0940EhTdq/A/X0zHKvzVE/vZUBeRt2St8pXKHLA=; b=J/OGagsU5FmSKBp2ia+R7a/0vG1ALm71VNMYI50l6YEob9iDeyoTEWEntehJHeIZzT IR9pfxJmuw9PXPMPb2vj55uKWWBZNVnJ1ks0YpOQXXHtZcvJX4d/I7UhKQZr5BSRCDZ5 Doi8DYBl8uxIbsc9fQVyESRoPmPy0gwOzJg7raeMOXh/bX4ASnBI1iVdSBS8D9Dp4n4u ejrc2pXSGtuYw+xoX0XfQcpm1r2hEtk0pYVYDCqaDEhnv2vVpXoHkKp+mUiAemutOJ/8 530Fb5N0FFAYPzaC3krZ702GJVp3C/So2IoLymFjhPdkHwfoqwLc0Z/N1SkA9TV+hYcP MVGw== X-Gm-Message-State: ABuFfog/yKpTAWAcJ7A7vkHGmfaR6MVFJYTPNoLmo0B+yYhfWPSf/TD1 /pOsP/NLzRn1Uqae859J6rrlcIgtEqvNJlW1P26plA== X-Received: by 2002:a02:844c:: with SMTP id l12-v6mr26657212jah.137.1539174883436; Wed, 10 Oct 2018 05:34:43 -0700 (PDT) MIME-Version: 1.0 References: <1539102302-9057-1-git-send-email-thara.gopinath@linaro.org> <20181010061751.GA37224@gmail.com> <20181010082933.4ful4dzk7rkijcwu@queper01-lin> <20181010095459.orw2gse75klpwosx@queper01-lin> <20181010103623.ttjexasymdpi66lu@queper01-lin> <20181010122348.GL9130@localhost.localdomain> In-Reply-To: <20181010122348.GL9130@localhost.localdomain> From: Vincent Guittot Date: Wed, 10 Oct 2018 14:34:32 +0200 Message-ID: Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure To: Juri Lelli Cc: Quentin Perret , Ingo Molnar , Thara Gopinath , linux-kernel , Ingo Molnar , Peter Zijlstra , Zhang Rui , "gregkh@linuxfoundation.org" , "Rafael J. Wysocki" , Amit Kachhap , viresh kumar , Javi Merino , Eduardo Valentin , Daniel Lezcano , "open list:THERMAL" , Ionela Voinescu 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 Hi Juri, On Wed, 10 Oct 2018 at 14:23, Juri Lelli wrote: > > On 10/10/18 14:04, Vincent Guittot wrote: > > [...] > > > The problem was the same with RT, the cfs utilization was lower than > > reality because RT steals soem cycle to CFS > > So schedutil was selecting a lower frequency when cfs was running > > whereas the CPU was fully used. > > The same can happen with thermal: > > cap the max freq because of thermal > > the utilization with decrease. > > remove the cap > > the utilization is still low and you will select a low OPP because you > > don't take into account cycle stolen by thermal like with RT > > What if we scale frequency component considering the capped temporary > max? Do you mean using a kind of scale_thermal_capacity in accumulate_sum when computing utilization ?