Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp861083imm; Wed, 17 Oct 2018 09:22:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV61QAMSPKNuI3rsTi4jI3YLvV/aBvsgEDAokmqGAt1gWnmovgsak84TYDa9Z+RKaLYfUMK/i X-Received: by 2002:a62:34c5:: with SMTP id b188-v6mr24532265pfa.65.1539793336993; Wed, 17 Oct 2018 09:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539793336; cv=none; d=google.com; s=arc-20160816; b=LUF+foVsIGR6ma5d7NPsxd2Y57cGZiqyo8022twvqefgWjALrdNVw+Azp9+6h2k0FP /hQgI5waLQOKMJcAaK2TtS9C57/r2zOgP+Br1sm7OVMf118Vq2W8A/9icsCJ919eCCMt y9KT6CaZ2QrHYG5SazUvVQd/uP0T3Js9E/B/ip7cwDn+YbKX2RCNdeea9/yXPTuE4eVP uA8RpIEzqBhSMGnEnIeMbStY8F0w2O3UaKGDLR2tnCzrpJvd3T/DV3NHRjCkI3UG6Fsu IRVivh4j32CFVajwPlmyclFUSchn2B4NK8/j8sp++IT7HHGm+h0rM0vFwZ/MVnsrhce6 yA3Q== 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=WrfAD2+3i7ZJ95a4/drlAFrIwUpse9bbWec9AmIVWeY=; b=ZOtCyn23MTiYpsi9aJI6ycqyj0suIJrD1lqyR/NlReDr31yIf2GypRERLdPit6fSo/ pRfP3PvbFMIjGNl4FjjLgDp1iD39j7G68Pq7n3xJ53XfYj8RhPpOwHJL10O4xBVNGYRM cnqIIbxaOqZGcVjtu/OsCy0TTa6CEmock3ITkvQcNKBZZKj+wUHE6vvajkoW2SWwFAv+ hE7VqF++r313j0Vrswsm2SHWC90h71sCXWFPHXXZ6Kg5YBi+wEQaPWXz1zg1Ib2qo4+5 zP4Az4VAEvIB7v0A36Hna/iYvyrDeeZMQHtF6saiZIa115p9NcHi2vDhN5Dng53TLYfm Z6eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HWq0o+B0; 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 j13-v6si17409574pfn.288.2018.10.17.09.22.00; Wed, 17 Oct 2018 09:22:16 -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=@linaro.org header.s=google header.b=HWq0o+B0; 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 S1727731AbeJRARw (ORCPT + 99 others); Wed, 17 Oct 2018 20:17:52 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:45684 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727262AbeJRARv (ORCPT ); Wed, 17 Oct 2018 20:17:51 -0400 Received: by mail-qk1-f194.google.com with SMTP id m8-v6so16841561qka.12 for ; Wed, 17 Oct 2018 09:21:24 -0700 (PDT) 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=WrfAD2+3i7ZJ95a4/drlAFrIwUpse9bbWec9AmIVWeY=; b=HWq0o+B0MECQTEuDQoU2HMFEqdIkDtambj6jY0HSV5oM1jCpdTKkzrJqSvEY18igxX kv7s+wrxiV6EU3BgS2Vkl+GJWYGKoarCURg2XixipBFRDwrReQOLB+o45UL5VlzufL7s QpIwWoKu4BsWFmediMkC5xQ159/l739oq6RIg= 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=WrfAD2+3i7ZJ95a4/drlAFrIwUpse9bbWec9AmIVWeY=; b=L9YhyGSl0Mz1WdeBDHM/n1GrLipkG8oCo2B13cJcp1SHQXgZXDJGT4tBv/ZrHQFMyy fPoN/qPkOlGa6LNHtud/ESP8FdzZAd01vZu0bzUnNGn3/BXRUzW94iy9aZzsT39hcG3q xhSr92GCjO6gb99o7X8XpbeONUEF/MSlxYY9etkawqDVdEkoX3eiIKdLiAeooC3HNp2g Qcg4pYuScqA/wO7/zN5iHeKFCEcoEddUxnFV0g1TQd7s8A7HtL7AH2mo2XY+EXE4UkIz Xx33tzupkepnXOpYkj57F1BZMF2HDi2/ilqggsn2OD5UtYE33Ddr7XdLp/MtBzcJUvGi 8KFQ== X-Gm-Message-State: ABuFfoiP1Tld2MaBMiNlCX0ARyGA9+RAvm0stY4GKZIlv8BlF0zKidX9 RQZBh/C3ONPg3Lp3xndDp6zZGQ== X-Received: by 2002:a37:3bc1:: with SMTP id i184-v6mr2245831qka.286.1539793284125; Wed, 17 Oct 2018 09:21:24 -0700 (PDT) Received: from [192.168.1.169] (pool-71-255-245-97.washdc.fios.verizon.net. [71.255.245.97]) by smtp.gmail.com with ESMTPSA id l3-v6sm20084272qtl.2.2018.10.17.09.21.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 09:21:22 -0700 (PDT) Subject: Re: [RFC PATCH 0/7] Introduce thermal pressure To: Ingo Molnar References: <1539102302-9057-1-git-send-email-thara.gopinath@linaro.org> <20181010061751.GA37224@gmail.com> <5BBE1E1F.3030308@linaro.org> <20181016073305.GA64994@gmail.com> 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 From: Thara Gopinath Message-ID: <5BC76181.90105@linaro.org> Date: Wed, 17 Oct 2018 12:21:21 -0400 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: <20181016073305.GA64994@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/16/2018 03:33 AM, Ingo Molnar wrote: > > * Thara Gopinath wrote: > >>>> Regarding testing, basic build, boot and sanity testing have been >>>> performed on hikey960 mainline kernel with debian file system. >>>> Further aobench (An occlusion renderer for benchmarking realworld >>>> floating point performance) showed the following results on hikey960 >>>> with debain. >>>> >>>> Result Standard Standard >>>> (Time secs) Error Deviation >>>> Hikey 960 - no thermal pressure applied 138.67 6.52 11.52% >>>> Hikey 960 - thermal pressure applied 122.37 5.78 11.57% >>> >>> Wow, +13% speedup, impressive! We definitely want this outcome. >>> >>> I'm wondering what happens if we do not track and decay the thermal >>> load at all at the PELT level, but instantaneously decrease/increase >>> effective CPU capacity in reaction to thermal events we receive from >>> the CPU. >> >> The problem with instantaneous update is that sometimes thermal events >> happen at a much faster pace than cpu_capacity is updated in the >> scheduler. This means that at the moment when scheduler uses the >> value, it might not be correct anymore. > > Let me offer a different interpretation: if we average throttling events > then we create a 'smooth' average of 'true CPU capacity' that doesn't > fluctuate much. This allows more stable yet asymmetric task placement if > the thermal characteristics of the different cores is different > (asymmetric). This, compared to instantaneous updates, would reduce > unnecessary task migrations between cores. > > Is that accurate? Yes. I think it is accurate. I will also add that if we don't average throttling events, we will miss the events that occur in between load balancing(LB) period. > > If the thermal characteristics of the cores is roughly symmetric and the > measured CPU-intense load itself is symmetric as well, then I have > trouble seeing why reacting to thermal events should make any difference > at all. In this scenario, i agree that scheduler reaction to thermal events should not make any difference in fact we should not observe any improvement or degradation in performance. > > Are there any inherent asymmetries in the thermal properties of the > cores, or in the benchmarked workload itself? The benchmarked workload , meaning aobench? I don't think there arre any asymmetries there. On Hikey960, there are two clusters with different frequency domains. So yes I will say there is asymmetry there. Asides, IMHO, any other tasks running on the system can create an inherent asymmetry as cpu utilizations can vary. Regards Thara > > Thanks, > > Ingo > -- Regards Thara