Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1282399ybx; Tue, 5 Nov 2019 13:30:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxpncgYDeQSiYLt8qTX7lDBhM3/U/+n3eAZMZ/CTYsV95ZC+4NsgT7wb2nqCPS/XINLRh7O X-Received: by 2002:a17:906:7202:: with SMTP id m2mr31368411ejk.138.1572989403701; Tue, 05 Nov 2019 13:30:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572989403; cv=none; d=google.com; s=arc-20160816; b=CFmc7+M/YqmaDaiZCFtoD/jj2h0HR56AUoQk7I2J1m31cfihZkFYOfsjf7eN5J8+xm dnS0yvfqM8XhEh69yIpgjsSb+aRM6ilx8D0BMRZ24rbl3M9OZh62qRdNZokVGtnUcNgY Nc6HVzUXcPK0e2tY5GS5dqDtR6A/UWYZC4H+ehUkMo0Jf5pBt5lODza7L14rzSPkguN2 uLOCjXYM7J1HteLtd7bHhcSwdD0llEHNM83shWUc4agJEBuTsUtBrBd9bhOdv/Lx7yET BGsnnhiUrVISPaMh9K99mBFWXALwcVRk/aPw0yzfok/5ukknAftJkVMf6+aNHDwKZDcX hOLQ== 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; bh=rh45YLubnGxov8daRSqho43BE3AHKbe0i/OD4qfiH9o=; b=o2cpdzsjp0rJl+xlK8DS9lJndMaKPwC/xEuyEH1qe3pCG8AJd9sjCXmMRIgzq31gcc MhVegC39LQ2sqFX2g8uloJQk3pRcTV3rxW2gLHW759eDBSZgmbBTAgyoeQhZoI68k5q1 KFhltUXo8AWzmIVB3oaOneKKfJvhbJDv2gsCCzuAyZSgp/F3928rdpKUa54TaFMc/PCk L41VdiAluiIbjlYyDSngcXoe49MJ5DU+d6B/Xc9GpIlC99q27ndWy4gPxFrV4kxyhs8A msGB8vAKfLNE86Uq31Hw6T/u8jVadARESlelVXzgV7nHVEFF9UaAGw4QN3FqdmL/V8wx yOMg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ec22si13729142ejb.232.2019.11.05.13.29.40; Tue, 05 Nov 2019 13:30:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729962AbfKEV3E (ORCPT + 99 others); Tue, 5 Nov 2019 16:29:04 -0500 Received: from foss.arm.com ([217.140.110.172]:54224 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729680AbfKEV3D (ORCPT ); Tue, 5 Nov 2019 16:29:03 -0500 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 DE9D930E; Tue, 5 Nov 2019 13:29:02 -0800 (PST) Received: from localhost (e108754-lin.cambridge.arm.com [10.1.199.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7ED5C3F6C4; Tue, 5 Nov 2019 13:29:02 -0800 (PST) Date: Tue, 5 Nov 2019 21:29:01 +0000 From: Ionela Voinescu To: Thara Gopinath Cc: mingo@redhat.com, peterz@infradead.org, vincent.guittot@linaro.org, rui.zhang@intel.com, edubezval@gmail.com, qperret@google.com, linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, daniel.lezcano@linaro.org Subject: Re: [Patch v4 6/6] sched: thermal: Enable tuning of decay period Message-ID: <20191105212735.GA32353@e108754-lin> References: <1571776465-29763-1-git-send-email-thara.gopinath@linaro.org> <1571776465-29763-7-git-send-email-thara.gopinath@linaro.org> <20191104161035.GA6680@e108754-lin> <5DC1DADE.60603@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5DC1DADE.60603@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 05 Nov 2019 at 15:26:06 (-0500), Thara Gopinath wrote: > On 11/04/2019 11:12 AM, Ionela Voinescu wrote: > > Hi Thara, > > > > On Tuesday 22 Oct 2019 at 16:34:25 (-0400), Thara Gopinath wrote: > >> Thermal pressure follows pelt signas which means the > >> decay period for thermal pressure is the default pelt > >> decay period. Depending on soc charecteristics and thermal > >> activity, it might be beneficial to decay thermal pressure > >> slower, but still in-tune with the pelt signals. > > > > I wonder if it can be beneficial to decay thermal pressure faster as > > well. > > > > This implementation makes 32 (LOAD_AVG_PERIOD) the minimum half-life > > of the thermal pressure samples. This results in more than 100ms for a > > sample to decay significantly and therefore let's say it can take more > > than 100ms for capacity to return to (close to) max when the CPU is no > > longer capped. This value seems high to me considering that a minimum > > value should result in close to 'instantaneous' behaviour, when there > > are thermal capping mechanisms that can react in ~20ms (hikey960 has a > > polling delay of 25ms, if I'm remembering correctly). > > > > I agree 32ms seems like a good default but given that you've made this > > configurable as to give users options, I'm wondering if it would be > > better to cover a wider range. > > [...] > > Hi Ionela, > [...] > > Regarding a slower decay, we need a strong case for it. > > I think you mean faster decay, if you refer to my comment above. To be blunt, I'm not sure there is a strong case for either kind of dacay, if we look at the test results only. There is a theoretical case for both, in my opinion and given that the purpose of this patch is to give options to platform with different thermal characteristics, I do believe it's worth providing a good range of options for the decay period. Thanks, Ionela. > > -- > Warm Regards > Thara