Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp930202imm; Wed, 10 Oct 2018 06:35:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV60dc0M7s2WGBAPCc/xkizW6LyRDow5Ma+uzijnpU2e4U+cwbpahJJp7B8T+ZK7bSEl62e+J X-Received: by 2002:a63:a54f:: with SMTP id r15-v6mr29992815pgu.176.1539178547372; Wed, 10 Oct 2018 06:35:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539178547; cv=none; d=google.com; s=arc-20160816; b=LBgbBlOAsdFkcKGVrtbQh3iKQ4mZOUve3uKot3zHyEEEcVRhUzzdSGJLAb4zoNpN5a AcQUxyCzhn3p23bGEqe0hxLMVfcApXYjGjsJf+uj87/Lh3EZfVUEC7ElGBUAIELLM6lO n7SdOFR+zhpStU22kJb2Qa1jSKn57zJjmMXOAH4bICHDlmC5D3SiOqq4SOrvVS3yDYIO eKp0v9Ib91J4Vvu2kbsohi8GvRQcisX7K0TyOF/dhNPC1VE7MivwEVSsIdoZhaVGrB44 JKGe05IwyEZvvBw50enKfs9GI0y6hE/MleiYb4fqHeWB62zjVOpOL0k+OdeP7x3q1tGz yekw== 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; bh=uffYuZBcMQvGeIQZqgL1IShi2mtpdHBe+6jz9Yahix8=; b=xnT3JSONMbRF2ROSVHeAYgl20rDk2qUPsRp9WS6AeY5+XxAJyIw6KqCzVos/VemBW9 ojVLzf6xajSYqT3VCjF1qbIKVrb7/Gtrp3KHzjbEev/lZ+TVnvzjWi6t4bm9NcGAFcTZ oZwyRyqN92Ua5g7BfsQ1Yo1tuStOQCGHPqvFLZcVLcw+Bqh+faGu2vvzd4xtUOAydZ4o MaCQEJNcioYPingvehA6JZCmb/i1/zmLCbWBuK8WaJ9c7ma6f9uqqH7vjK4VdE10GE1x waO/5kMwC0yYH0hrLeNXfI2RjOfKCrKatzsaSmpebeP0Nh2t+uXPaLUO52K86H8fCunI Yx+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BRiD1Yw1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si23927440pll.360.2018.10.10.06.35.30; Wed, 10 Oct 2018 06:35:47 -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=@gmail.com header.s=20161025 header.b=BRiD1Yw1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbeJJU5S (ORCPT + 99 others); Wed, 10 Oct 2018 16:57:18 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41176 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbeJJU5R (ORCPT ); Wed, 10 Oct 2018 16:57:17 -0400 Received: by mail-wr1-f66.google.com with SMTP id x12-v6so5761647wru.8; Wed, 10 Oct 2018 06:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uffYuZBcMQvGeIQZqgL1IShi2mtpdHBe+6jz9Yahix8=; b=BRiD1Yw1enEy4aFmnKPAkK48TJRPR7jnObfk+edc1b8mBHLM7x2+vDICL8Fl417kEW t3i1WISlqJOBYtsJka58D+Pat35xQNGPbh5GePwAv29rz4nkVGijlpKIeXMscdlkvjYU ltiuyaM3PUE3qLB8sUA6QsVE0dRxvIcQwB9qB/IIq0lnJ7bpgmT5WWi37nFGV/c+PgtY 7cKC/fdiL1NexEGMyPtXWoCR7Ls8pBUPPid98D/dsFsWqyC8DdUTz5AV0PMDvXcJ7ZgK 6lYIvUloKwbI0Zhm9ejw7WlL29EJNXVDweUml+HDA9TaA2GMVw09mHwO6JZKCzQ7OpZm KFGA== 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=uffYuZBcMQvGeIQZqgL1IShi2mtpdHBe+6jz9Yahix8=; b=ggsCyvK6NfDWqB8zS9DG/2BveDJ/IsMYqtFvKQW3k9trU7wfnJ7R/z11lacIt5/lqo ETrv7Tx/0kDA/TCSeM+wlrkIbUHZ9FDSo2v7cNYORGmBa7WnriL+2m05hnhKao3garMV GKUxy5AA62EOB/A0gQCzO66iT1Ol84eohDEsaYpDLvqQZc7VFwpIIXxRNqAgBDlYejPF 95L7Mu8d7sKYj1dIWh7YU9/6A+Qo7QNxKkbLRpiLnwXyUYB+ic19CLj6Ruko+MHYUDe2 05RgxX8GNt5inwZtm3nNnIs5FszDvqlkA05om6yTtn6GAf1xHD8Pe8dg6kreIWrY8dh9 ghyg== X-Gm-Message-State: ABuFfoiDApImvq4FMFQNoekDYqT3C7tj2eEWWbByauFvUWWI8h2kTDJL oLfdvcV6BCgdYiT2R+wMDuw= X-Received: by 2002:adf:f8cd:: with SMTP id f13-v6mr23780598wrq.265.1539178503555; Wed, 10 Oct 2018 06:35:03 -0700 (PDT) Received: from localhost.localdomain (p200300EF2BD31613C1F2E846AEDA540D.dip0.t-ipconnect.de. [2003:ef:2bd3:1613:c1f2:e846:aeda:540d]) by smtp.gmail.com with ESMTPSA id e196-v6sm10058822wmf.43.2018.10.10.06.35.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Oct 2018 06:35:02 -0700 (PDT) Date: Wed, 10 Oct 2018 15:34:43 +0200 From: Juri Lelli To: Vincent Guittot 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 Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure Message-ID: <20181010133443.GR9130@localhost.localdomain> References: <20181010082933.4ful4dzk7rkijcwu@queper01-lin> <20181010095459.orw2gse75klpwosx@queper01-lin> <20181010103623.ttjexasymdpi66lu@queper01-lin> <20181010122348.GL9130@localhost.localdomain> <20181010125033.GP9130@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/18 15:08, Vincent Guittot wrote: > On Wed, 10 Oct 2018 at 14:50, Juri Lelli wrote: > > > > On 10/10/18 14:34, Vincent Guittot wrote: > > > 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 ? > > > > Yeah, something like that I guess. So that we account for temporary > > "fake" 1024.. > > But the utilization will not be invariant anymore across the system Mmm, I guess I might be wrong, but I was thinking we should be able to deal with this similarly to what we do with cpus with different max capacities. So, another factor? Because then, how do we handle other ways in which max freq can be restricted (e.g. from userspace as Javi was also mentioning)?