Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3057626imm; Fri, 19 Oct 2018 04:30:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV60BmNSW16jlsauF0DL1haZ+gl3cWxfG1Onv/CEUFqrbe3osaupnCLsyZqkA2iHUTB6fawf7 X-Received: by 2002:a62:968a:: with SMTP id s10-v6mr33956372pfk.191.1539948621669; Fri, 19 Oct 2018 04:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539948621; cv=none; d=google.com; s=arc-20160816; b=VdQXmFhMgfUc8nHSRdYI2MYwsPn3+PjldQUcNtnG5oqPBAzNIZ8sRMWQi1s763mxjE Y6jlUQGgWr0u3z1NR3pYDoQSQ2vU5lh4R4MDqCDrVfUUrXy9bcy518Ga10O8J9+9hR+a uYCZqyJXREqIKhh2Iu6JAWN5HVZvaGlcvH3tJVoVWLC6d4SYHlbrqjwGNjQ3whqrW2bI DpVRdfDOBKF+qsth60DIlPIWxOnSIFAaTwCiqKsM6LbgCu+I46cg99RqUtffaDZ1jd4Y CCkbWtnOCa6ywozERuHbOrYbWhHIrMrL1JTupdryCxi2YvJSsXuXXTyyvBuc1x5O81d8 BAKg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Ee6qahCgjUk4IGAdzl+n8iAnDR0E9PvhwiNOGIdnW4c=; b=Jz9cMvTm+oVLtGNdv0lHJ9HnnBbb7hxDkBLGySDb05KUFH2NngbiWKuMKoUxOd7OU+ U93+5iMFjQg5XhSYubw26EmLXL6gelWChPmeWMndJ/jCI+JNOuWujHL1qJn0bv8zVi1Z x2hwF5UL7EB7giFbl9i/vw5BcR5Gcot0BHUU53mNwGYJ17s8DXiGmr2zda0O0PgnNDzY ZT93dduGOrg5New3Q8zU3DT0MG2lTHQoZv8Of+2X26KcRelqWxFKwgyCx2A6PLteLQjT coY8WtOcgC4rYPZfdLJsZZ3c+dcRGpUSxv6agVHDBAEkCa+yKVL8ETeK+Qaf43IP1XGg Ho8g== 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 h185-v6si1020390pge.308.2018.10.19.04.30.05; Fri, 19 Oct 2018 04:30:21 -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; 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 S1727365AbeJSTfV (ORCPT + 99 others); Fri, 19 Oct 2018 15:35:21 -0400 Received: from foss.arm.com ([217.140.101.70]:50780 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbeJSTfU (ORCPT ); Fri, 19 Oct 2018 15:35:20 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9B4FE80D; Fri, 19 Oct 2018 04:29:40 -0700 (PDT) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EB4DD3F71D; Fri, 19 Oct 2018 04:29:37 -0700 (PDT) Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure To: Ingo Molnar , Thara Gopinath Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, rui.zhang@intel.com, gregkh@linuxfoundation.org, rafael@kernel.org, amit.kachhap@gmail.com, viresh.kumar@linaro.org, javi.merino@kernel.org, edubezval@gmail.com, daniel.lezcano@linaro.org, linux-pm@vger.kernel.org, quentin.perret@arm.com, ionela.voinescu@arm.com, vincent.guittot@linaro.org References: <1539102302-9057-1-git-send-email-thara.gopinath@linaro.org> <20181010061751.GA37224@gmail.com> <5BBE1E1F.3030308@linaro.org> <20181016073305.GA64994@gmail.com> <5BC76181.90105@linaro.org> <20181018064849.GA42813@gmail.com> <5BC8B226.2040109@linaro.org> <20181019080218.GA35752@gmail.com> From: Valentin Schneider Message-ID: <9671fd5c-a745-5936-ee57-11d2da89f105@arm.com> Date: Fri, 19 Oct 2018 12:29:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181019080218.GA35752@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 19/10/2018 09:02, Ingo Molnar wrote: > > * Thara Gopinath wrote: [...] > So what unifies RT and DL utilization is that those are all direct task > loads independent of external factors. > > Thermal load is more of a complex physical property of the combination of > various internal and external factors: the whole system workload running > (not just that single task), the thermal topology of the hardware, > external temperatures, the hardware's and the governor's policy regarding > thermal loads, etc. etc. > > So while obviously when effective capacity of a CPU is calculated then > these will all be subtracted from the maximum capacity of the CPU, but I > think the thermal load metric and the averaging itself is probably > dissimilar enough to not be calculated via the PELT half-life for > example. > > For example a reasonable future property would be match the speed of > decay in the averaging to the observed speed of decay via temperature > sensors? Most temperature sensors do a certain amount of averaging > themselves as well - and some platforms might not expose temperatures at > all, only 'got thermally throttled' / 'running at full speed' kind of > feedback. That would also open the door to having different decay speeds on different domains, if we have the tsensors for it - big and LITTLE cores are not going to heat up in the same way (although there's going to be some heat propagation). Another thermal decay speed hint I'd see would be the energy model - it does tell us after all how much energy is going through those cores, and with a rough estimate of how much they can take before overheating (sustainable-power entry in the devicetree) we might be able to deduce a somewhat sane decay speed. > > Anyway, this doesn't really impact the concept, it's an implementational > detail, and much of this could be resolved if the averaging code in > pelt.c was librarized a bit - and that's really what you did there in a > fashion, I just think it should probably be abstracted out more clearly. > (I have no clear implementational suggestions right now, other than 'try > and see how it works out - it might be a bad idea'.) > > Thanks, > > Ingo > > >