Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp878853imm; Wed, 10 Oct 2018 05:52:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Xmj9lri/w5lYquqTdHpnZfCGikgjfnnFoY4WTnsHcdmUuSD6/cZF2cbsMinSNsAqyo4Nw X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr13025424pla.73.1539175967136; Wed, 10 Oct 2018 05:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539175967; cv=none; d=google.com; s=arc-20160816; b=Y12vYJ1tmle+5zT2Lr6wH5AMZoGBrFg9sWQNG+1LveJLifDcct72jrtKgYrlcGyUC+ Xcf2vXbuO6+OXJjQeJcKvN2XmLp9ngKe5HPIEe6KhIrfc+a93kKCcSfNg7npwVkHajvH KzsQvnuOO6pKuj4FoSrLV83BazwQg5/fym3+T4lSYOWSQ/l+58Z+XjL4CC8WtK5lnRtD ybWz89dQOL8qfx1EfKkdFR3+n1Fq9WySv2dvx/Cs1lhIoItGultSkopLYa4reQVuPn0N 8+ZhPNQ8p6/Z1JMTerD0XxpsKKsaXXeYYAQ8AIzB11sseVehs216844J2r9V6zA89I8p DnaA== 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=q6H2RkjdYJ9dOgf//cL2kQO3iV8MOCmgeDmaXmfkjjQ=; b=e5z1Y5XfESGVm+/u3FAKcv4cXm0gDUj9TKo507K7IhwuvF8mnT5VqgjjHdPmCw4qDl KeB2BaDWqWnOIvtI4crVcnz3xZyk02XA9837TLqoa651TwdCIf+2DuQTNUZByN+/ibBc KqOvu5LlpsMxqgnfS74t3oPJI5DzFtAVW4mOQIxFBPia818OUeAHmQcOldaygrvXnSWp ocReQvN5iV+TowATcbVNJQALWyzp15/JRyz5/9AIBqnLukaalvApLAslv5BD+3wt0RK1 6xHAGlwTcJEE/gALRh60CHk17R107k8i0sv/C/o0b0O4KgAwj7aZ8uudZwqyzqQ9GRG4 r4QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IgRaP0Uk; 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 g34-v6si25701453pld.325.2018.10.10.05.52.02; Wed, 10 Oct 2018 05:52: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=IgRaP0Uk; 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 S1726870AbeJJUMm (ORCPT + 99 others); Wed, 10 Oct 2018 16:12:42 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38455 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726503AbeJJUMm (ORCPT ); Wed, 10 Oct 2018 16:12:42 -0400 Received: by mail-wm1-f67.google.com with SMTP id 193-v6so5599846wme.3; Wed, 10 Oct 2018 05:50:39 -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=q6H2RkjdYJ9dOgf//cL2kQO3iV8MOCmgeDmaXmfkjjQ=; b=IgRaP0UkWritTfjrO0qmGrFzOQHnYm/5fLSdxkHcBjBfxUJIxZy2kYnXl6beWtJ2LB qHEjps85WxkarkUoU1ltMOcmq5pOWT04r6k+8+hy/Axdw6MCTbknbJTWGwUZRj2ukAf8 lDMd0KDZ8qIhu/tSf6sfamntM8n4CXbYgWQGLOwHsM2AGNrBWHb6XMFR4AfQomWdfimR 3YJthySYLFiWsJNXWnKtqzUgFk4cnhhT/zp9AcIKvZIsVOLgH5LixT5QueEq0wI4/4R2 E6zkFzICAgUD8PJgiWZU8TWTlvnUns9pNh8GzU1PJiAucfO9WGwB8CU3W6iNnAEdR1Q1 BzqQ== 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=q6H2RkjdYJ9dOgf//cL2kQO3iV8MOCmgeDmaXmfkjjQ=; b=ZO1mc9fWDDEV5lvecLHYC71m0aRR2b8e0776C1VTETuM2TeflelhGMJpjgw926BkV9 gYWyLlJRxFgY/BGpfROY/0oYwltMYMTE997gteBypzGSXdjaA8cJnkJp96tG2UnsBZjQ ffMgo4NlU29who/TPDhVRUUB5S7zYb8tsYxxGPLDpcPeCUorMUdhsAkx4fXtCE/J8arS ugNZ7ATw4LEcQSm5tab0gj40ia1yRReieq3YiR6YKbWGCd67TR+W/YurzwHuuNxmkpF2 gOhRhami+xg8nPTEtPvbz2xrTJaZuHxui9wGWe5hmtnQBl4+zq4VN9DJp69T4cA7olr8 +xHA== X-Gm-Message-State: ABuFfohySdJmu95zAfo4OsfloveA3niwVEK7yZeLQo82pphp/PsGZikn AClyQXFReZvoliWqS9Z4AOU= X-Received: by 2002:a1c:bc82:: with SMTP id m124-v6mr812079wmf.76.1539175838503; Wed, 10 Oct 2018 05:50:38 -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 o3-v6sm17369297wrw.93.2018.10.10.05.50.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 10 Oct 2018 05:50:37 -0700 (PDT) Date: Wed, 10 Oct 2018 14:50:33 +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: <20181010125033.GP9130@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> <20181010122348.GL9130@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 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..