Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1836344ybv; Fri, 14 Feb 2020 06:53:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyHprPjfHyMSvdrSAMllqiqq7GbJbnXUnihFHszRPdHfv2LqC6nWMxnfes+whmF1a163bHP X-Received: by 2002:a9d:53c4:: with SMTP id i4mr2754908oth.48.1581692017021; Fri, 14 Feb 2020 06:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581692017; cv=none; d=google.com; s=arc-20160816; b=naDEHz4d8R/5M/ItSm7wTbAxvZVL4DoXDoJNmXtVstLlGm++hJ+kphhPRcZwLZzI7j I/PT8ZrLF/9MlLz6yGIFUoFfLgZozyb1jrxQ04FfBvZLHNXiKKzXyldKX3DygEw8GOFJ 1+WerE0L2BLCoT+casiQvt3WHVnCdhMcePoPAl8F67i7IAUmpwCD04TZUHDLyhhSt9H3 V1M9zKMJvxGOsXkKd8gCFuCUUGf/7z/yVL2VWcwF+cI9p4+prTFWfHXYYIu9oVVdGm2v GMbb17Q7tarTkyKykRiM3msqaYndllr19SZTt8sfXe+Ehl+9OF2+KK7O2bQKDhCVIJTW 2xew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature; bh=tnlmESUS7e/lt3iu4vQwY6s70Wopj6FQsQf7vvV54+c=; b=ZXuofxYk+N6l1gMgg1UbiSgiJUSskGCwyRvQb2wBBHavY4JtOL7gznZ5aZ5o3YSI8F GGGGAA1NlygtyWlEsK7TFP3YEAXpAde1COmnuDzJkpsr3/GnSnb34qw9BUfplsUqTVV7 Utug2vgkK5v6/FZTU0t9lWgwCsqWTP7Tv047VPNeQRAT8lwRQukYPdcHnoUlHi5egkoW Z226qNaDNF0tBNmSYTLlwYMo4mhENpW8/MFRnszJhFJtw9v1pMte4i6+LN02RWSJy/Fr pVZxwX1puqlIfeN86gH1y7OrXswJgs6jwFfJea8FqDqJhg8teVB2481H+E96Zp46OcDH MF1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="n/3pcw0b"; 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 b10si2562791oic.153.2020.02.14.06.53.25; Fri, 14 Feb 2020 06:53:36 -0800 (PST) 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="n/3pcw0b"; 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 S1729298AbgBNOwt (ORCPT + 99 others); Fri, 14 Feb 2020 09:52:49 -0500 Received: from mail-qt1-f171.google.com ([209.85.160.171]:39017 "EHLO mail-qt1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726191AbgBNOwt (ORCPT ); Fri, 14 Feb 2020 09:52:49 -0500 Received: by mail-qt1-f171.google.com with SMTP id c5so7098653qtj.6 for ; Fri, 14 Feb 2020 06:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=tnlmESUS7e/lt3iu4vQwY6s70Wopj6FQsQf7vvV54+c=; b=n/3pcw0bqVyvCWa1kqvFzqQ9YXmEGFKN0YRR2neUWdPPC8IvXRfn9NSRbfe06eEV1X 0bnKEk7wXfJPqsWe0gmvjoP7VRz9YighOU9Ql4ywCQJjd0ml6yaScSEopSJT3ze+gSLs yDfwsv3gqtKjGMLAoL9kIvR2mxg6zZnwhHLHJoMJFr+qPjR54dLMNNKA7IkVKMRE4cWR lxGRhhpBlYTSrO3SOzzb2yX736inibrzy/zDcnFQ4DGD5FDeq3cLv55TvzpDwLadVh5u IExqgmSzl/PWn1LXtRl1HE4tvmn2zrgkEIAn8G1rMTsqtaiJeabtt2qntICiDSQTN6qr A1HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=tnlmESUS7e/lt3iu4vQwY6s70Wopj6FQsQf7vvV54+c=; b=fI0RW9ecWiOjz/PW4sXNni5ULJtNfM/e0Z1wayi2itnxedws6ICYY2iT15ycIF8Xvk LmxNsBZvJi3edeiIW92OSYMeQFUXP6OupwysHDesX+1DMmC/J7vAD8ZFTfb45J/r8ZfI FZFu5oum0DJGfNPWjWt1N9zfz7bfE8xMEYLlqDq655nZOwvCN8RFYVJOCQvN3QMFDyhD GF1Br0yR19zgQTzkyZj0Rxl8g0hr3+PA6cn1YGk7BwcKe/PQzCN/iW97L94xl8QFnRlo RDDXAeD0AKK/AiP1+kwZk1zEmw+zPVHqkytby5/QH9mAYQ4nRNgk+5FQJQ6DjUPV1onT e5Ww== X-Gm-Message-State: APjAAAX1ibrukTB+0n6J5a5wsPg22vz01tlfb7mdA/DjOltRHoe8LFz7 3ouwNtpwR1A7CC1eT3mhv9X5eg== X-Received: by 2002:ac8:2a55:: with SMTP id l21mr2859273qtl.111.1581691968190; Fri, 14 Feb 2020 06:52:48 -0800 (PST) Received: from [192.168.1.169] (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.gmail.com with ESMTPSA id k58sm3516212qtb.60.2020.02.14.06.52.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Feb 2020 06:52:47 -0800 (PST) Subject: Re: [Patch v9 5/8] sched/fair: update cpu_capacity to reflect thermal pressure To: Amit Kucheria References: <1580250967-4386-1-git-send-email-thara.gopinath@linaro.org> <1580250967-4386-6-git-send-email-thara.gopinath@linaro.org> Cc: Ingo Molnar , Peter Zijlstra , ionela.voinescu@arm.com, Vincent Guittot , Dietmar Eggemann , Zhang Rui , qperret@google.com, Daniel Lezcano , Viresh Kumar , Steven Rostedt , Will Deacon , Catalin Marinas , Sudeep Holla , Juri Lelli , corbet@lwn.net, LKML , Amit Daniel Kachhap , Javi Merino From: Thara Gopinath Message-ID: <5E46B43E.1000304@linaro.org> Date: Fri, 14 Feb 2020 09:52:46 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/13/2020 08:39 AM, Amit Kucheria wrote: > On Wed, Jan 29, 2020 at 4:06 AM Thara Gopinath > wrote: >> >> cpu_capacity initially reflects the maximum possible capacity of a cpu. >> Thermal pressure on a cpu means this maximum possible capacity is >> unavailable due to thermal events. This patch subtracts the average thermal >> pressure for a cpu from its maximum possible capacity so that cpu_capacity >> reflects the actual maximum currently available capacity. > > "actual maximum currently available capacity" is quite a mouthful. :-) > > "Remaining capacity" or "Effective capacity" anyone? "Remaining maximum capacity"? > > IIUC, this remaining capacity is NOT the same as the capped/decreased > capacity referred to in patches 1 and 3. The delta capacity (aka > thermal pressure) there refers to the difference between HW max > capacity and thermally throttled capacity. > Here, we also subtract RT/DL utilisation. Is that accurate? Yes, here we do subtract RT/DL utilization as well. But from the thermal pressure point of view, it is immaterial. I am not touching the code that subtracts RT/DL utilization , I am just adding thermal pressure to the variables that has to be deducted from the stated max capacity to reflect the actual capacity. So as far as this patch series is concerned, capped/decreased capacity is the same across all patches.(Though there is the instantaneous capped capacity and the time-averaged capped capacity) -- Warm Regards Thara