Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp849589imm; Wed, 10 Oct 2018 05:24:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV615g7WHyMUESeG8/Q9ZVeVMxmpqIiMpXW5xrMSaaCxM8JfSAVib06z/HB0awjX13H1kR0N0 X-Received: by 2002:a17:902:15a8:: with SMTP id m37-v6mr25976036pla.132.1539174278768; Wed, 10 Oct 2018 05:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539174278; cv=none; d=google.com; s=arc-20160816; b=CzgiPCPEtB9oPCIwETdkq4ATNptgTAJsl1gGRlpTzR6x9IOv6a4aIw7f9V7BMaMvQM N/vNf+YL6Qg0ct6LQHTJPuqC74EgXwniJunSHxu59Dlmp5RXZEAptfWTpnuD9lo0JpOS jvW++ggVzVCIC15/dL5Eyfd0Y+FreCkdXNTU/lRBOQK9LvP1xwbxbX66c5OPaujWHMVh UG8Yg0rmrmKg1rvqeYRsaoO/i3txkII1Ua1m1l3GdkLaq59W3jPfXrCTSDw4iAhRmZ7R Zdu/5lPSNVq6TYVRz8FYzrZpP7GUz4MvGRrEF1FEgR7jlGeCgMYKFvDZBrwpLdwA6UHb oAnQ== 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=KUtgjgh84pBHEsdGFr+PrRX3I1tGdmZZalV4HF4dWQ0=; b=PBs79xvgxEUFWEYVHqI+f+5wlTLNfBb9WyzIFcmhwoA8hUhJzdzP9rN5WEqKSFELBK rYVN8InnPhR9EF9i/pirSwwGkS5KIyLvK3/tz2dgeuiFANpNjQqB8KqmDrlFQ6/JwZw0 1H2HBIfNgp7nRJj2Wvmg/SDe6oRXYu8mOoMnl7G1jfSAPlH54tLYLL65EFA2MOzrdi5e w/JT0DhpaXoOyOFW/RO2BIcl2fXyEzpFYTFRfzsPODBhbeZcQOwnz/Mbmgx7FtQ0op7Y n2xOfoNZM4AFa0pYI9MgTYL/cVapRgvMFL8+VHenhEDU20tKBoEupAAKCSm7btSuiIM4 0qow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="mR2P/1CF"; 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 v32-v6si24499388pgk.16.2018.10.10.05.24.24; Wed, 10 Oct 2018 05:24:38 -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="mR2P/1CF"; 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 S1726770AbeJJTpu (ORCPT + 99 others); Wed, 10 Oct 2018 15:45:50 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38642 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbeJJTpu (ORCPT ); Wed, 10 Oct 2018 15:45:50 -0400 Received: by mail-wr1-f65.google.com with SMTP id a13-v6so5506496wrt.5; Wed, 10 Oct 2018 05:23:53 -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=KUtgjgh84pBHEsdGFr+PrRX3I1tGdmZZalV4HF4dWQ0=; b=mR2P/1CFJK6pZ1ekvNp19LgZTowr1IdHnppGE97ifAVO9cWmxG0/Nv7aewS0spKxBb 5WtJcSNF90Lw3QK/G+Q0sbranE/Ilf00MTktO9xmjyPirAEM9Gc9/OggltZ3tawkJsvK Jspt/SSfYp3jCtfAg/6Vea/+Qad+k6aZ0hBh4fZldWYDEriNqLiCPrm0s+GPAi1CU9L8 AjAzEBCgwJaYtpvQ2Y9u037CM6uuNWlg4EvCy7IyyQqLdiZo1xonZwuHwzqdSWN7mqSE TOK2wFb2EuqTnZ2JMO0UNbPjqsTEC3zq+bny6fFU9KA80OOE1AofRZyyGXZ05MRoeSs0 lQJg== 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=KUtgjgh84pBHEsdGFr+PrRX3I1tGdmZZalV4HF4dWQ0=; b=IB0FSFaXNLYBbWmB3X+aSAaO3yBOgXLmxs794aFSmqArkRYzL4q5pfmueVN+giC1C/ KcsgT/+FlOSDqiRZxQym60XyvWb44YZa/G0+f4B9JKjnwQYKindICMbr/MOEkdm4XNeV kqtyiFUi3nxCcebEB7Tp4S5NSOQUVFHpt9LLo8GGLqBU/NRX45g/EIU22AZr9lrbrYOS WmytSfZegZzv7It3qmqZ/Vd9EPuyDqb7TLE/KHF/ZehYgtM1tuqJ8K5vr/6N6WG24ETj vI81YpV8CIIPfm8yNLC1YaKxBupXdJu7DxIiNSi3rBSneOLjH7dAROYCmwrdSgbeGDNm jpTg== X-Gm-Message-State: ABuFfogftynQ4a0LxkY1lUDcotsAEFk+E1h6ArSdtVY8QkEurQ+SK0M8 3DRDQvN3CWeU0ULWCZ3PJIs= X-Received: by 2002:adf:9e09:: with SMTP id u9-v6mr22913105wre.51.1539174232573; Wed, 10 Oct 2018 05:23:52 -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 m12sm15391240wrx.75.2018.10.10.05.23.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Oct 2018 05:23:51 -0700 (PDT) Date: Wed, 10 Oct 2018 14:23:48 +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: <20181010122348.GL9130@localhost.localdomain> 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> 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 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?