Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp491358pxj; Thu, 10 Jun 2021 05:56:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA43qwSlOTwmWdBnr0KMKSswNW1LyWzdPHnlqUko3Sx0obUqKkH+yUdZ62FXdrhnBNE3Dy X-Received: by 2002:a05:6402:1458:: with SMTP id d24mr4542871edx.85.1623329767974; Thu, 10 Jun 2021 05:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623329767; cv=none; d=google.com; s=arc-20160816; b=k+3X1SS4LavzPY1m7zCqAPEJx/Mp/kHMbNr7OTN0P5BIdaB7wA3fRd3GL29yjvp5fP GZdQbJcKC3eqibYchD8OxQ+0imxro/m5VU/QukKCFeC9Pd0QAFvWknwQqTrCYjO4k7b6 yCF67suR5cg0WM7pGq0jk6jcbOJTqeyKQ8tgYplxgenhEVwVLmWefVxE8M6sway6BAGY MUD9h/HHjT5cUEQhya3yCtgcLzdxNORXWEdz21acfhWKA7eQEdZb6vVVRRkJAqxeEqPD XIUgj1IaE2sxZtHkYSGkszsJ/LuXuozXGfNR+NiIKWSvIfBRJOJSnLWZrr0bzB5yd9Cz seng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=xLA5VkvHDPkTDmVRrno/ugJTLhoRFusucpbouHNsG5c=; b=h4UiKu/irVJNv4HjxLtfIB0UoIZIAijea9/8khisdygT41Gvb9L3+CLBfekyfeypTQ f2n5kXoDjtc+0Zn24//dT/T41r0kGPOIFQlbpoHKb0pTyc0xtfmQjdU34mKGo20/t/Ft GMBtyLbJR2L/K0oYLYkn6apy8TBhAVgfCHx/6mQeDCVv/mEsi3ra3PQjUUsh9ASenixo EXv37SPWT/LZuu8mDfiWwwLTeQM2ayauRs7qLiLqi5ASdgxvG+44SlzmVb4QALEuidGR aGV8iBtUZ79KJcWSr6rsjY6E6yLZqkC+vST78+LiT/u0AhRj3yHhfjNMwX1n/Hl6WAKL zZ9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv3si2827465ejc.102.2021.06.10.05.55.44; Thu, 10 Jun 2021 05:56:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230238AbhFJMzT (ORCPT + 99 others); Thu, 10 Jun 2021 08:55:19 -0400 Received: from foss.arm.com ([217.140.110.172]:59212 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbhFJMzS (ORCPT ); Thu, 10 Jun 2021 08:55:18 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0B68F106F; Thu, 10 Jun 2021 05:53:20 -0700 (PDT) Received: from [10.57.4.220] (unknown [10.57.4.220]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2C24F3F73D; Thu, 10 Jun 2021 05:53:17 -0700 (PDT) Subject: Re: [PATCH v2 1/2] sched/fair: Take thermal pressure into account while estimating energy To: Vincent Guittot Cc: Dietmar Eggemann , linux-kernel , "open list:THERMAL" , Peter Zijlstra , "Rafael J. Wysocki" , Viresh Kumar , Quentin Perret , Vincent Donnefort , Beata Michalska , Ingo Molnar , Juri Lelli , Steven Rostedt , segall@google.com, Mel Gorman , Daniel Bristot de Oliveira References: <20210604080954.13915-1-lukasz.luba@arm.com> <20210604080954.13915-2-lukasz.luba@arm.com> <2f2fc758-92c6-5023-4fcb-f9558bf3369e@arm.com> <905f1d29-50f9-32be-4199-fc17eab79d04@arm.com> <3cfa5690-644b-ba80-3fc3-7c5a3f292e70@arm.com> From: Lukasz Luba Message-ID: <80283949-8a07-5aed-1e56-0a1094ba3ba0@arm.com> Date: Thu, 10 Jun 2021 13:53:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/10/21 1:40 PM, Vincent Guittot wrote: > On Thu, 10 Jun 2021 at 14:30, Lukasz Luba wrote: [snip] >> >> So for this scenario, where we want to just align EAS with SchedUtil >> frequency decision, which is instantaneous and has 'raw' value >> of capping from policy->max, shouldn't we use: >> >> thermal_pressure = arch_scale_thermal_pressure(cpu_id) > > Yes you should probably use arch_scale_thermal_pressure(cpu) instead > of thermal_load_avg(rq) in this case > Thank you Vincent for valuable opinions! I will rewrite it and experiment with a new approach, then send a v3. Regards, Lukasz