Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2321157yba; Thu, 25 Apr 2019 14:29:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQj84qnI3S3a9+yw3unB7jDsUXPpBu4nmHnBIBkBOObttdBrG30/07XT8NB5hBUnGvEsQj X-Received: by 2002:a63:f147:: with SMTP id o7mr40039936pgk.197.1556227773463; Thu, 25 Apr 2019 14:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556227773; cv=none; d=google.com; s=arc-20160816; b=tR21Njq9QoxjgBNFwHpZy0YgTijhBoqfYsXoxw+yNenhvO9BUNT57I6WgtEPPQCRpO UXcL5NM0BlTfy5sNEfnQft/m38VhV9FxgDxKIHY84NQyp9WzAdWfzu7019fBIjPv8wyB wAVztFxhN7R5yYIbBMeAIvsGLM3X3ewWUU8HypXnkrW+b3jHCv9ljM4EKY3TfKioCwuU ujpjc1vRMf45UbIEFWvEMEuBNqOvF/2YDZGdljxjZbmE9p1/vN1TnfAGr1l5GE++RKNA HSL3REn29Z0iVhP/lMxZTJejHNSIwmexZo2roh7ytc/MOjiTMPXxSZGCqw2OczWwVN/6 Bd1g== 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:dkim-signature; bh=dZHYHqpu9SWa5ODyfZe83JOj5HsHBUXs/KvHWmSE064=; b=CG866fBBvKJbpy+zykM+HNslsXizenAqpTQkiloWvLgGIik6kiYqsWI2zDC4ENo24j +yhw3G42BplJtHiX4Getpuibkkxn1wy/mC19EYKIzi9XbP9h8rvAS0xKAIExulCE1mpP RDvyDUstbHu93Lhz6Snd0UtD/c2kWTU0upHLiRpDMW5TjZybKNeIaumn9bQWDlaC+x0A 94srpL7U0o2qpAoADppoKokvxi5raVAGCCjl2ZmKVpUx1YeUo3DG0EZMk7FBzulomkeI 0iVOTRcJJ8j9W/E7zt6CA392vjIzcW0ZyQ9ywV0V36W11Q1XCL8KqJe32GFTPQQ/c10Z W49g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=purKpi5q; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si22905591plm.171.2019.04.25.14.29.13; Thu, 25 Apr 2019 14:29:33 -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=fail header.i=@gmail.com header.s=20161025 header.b=purKpi5q; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729102AbfDYRdj (ORCPT + 99 others); Thu, 25 Apr 2019 13:33:39 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42355 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728011AbfDYRdj (ORCPT ); Thu, 25 Apr 2019 13:33:39 -0400 Received: by mail-wr1-f65.google.com with SMTP id g3so502594wrx.9 for ; Thu, 25 Apr 2019 10:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dZHYHqpu9SWa5ODyfZe83JOj5HsHBUXs/KvHWmSE064=; b=purKpi5qU3/RaZEldCRCVgJK+0A7OJS3xEuMw1RWfPYP3+MPpNgO/b5CMMavL12jIt VlWMvArWcR+YlJsQ9UM2ch0BBHDKnHCNcNebphQNRYw7AZg19TtZIU1CCKIULyQomYoh YINqsWxmB/VjecNXejyqb4tlYgvdCWxElAbyI0QOzqyTcMVzS2WJuMunPnGkq6iI1D2i 8Lnu4u03c80W6nnY92KCJyPNmZqwkqGwPpm7o8FmEfg2kwJ3cBr/nBpKmywKNt7s3uG3 ffT/6vEEGZTIznnxWkgA1HIXGM966gfQh0U+e7Nw2D7OH5EMgGfNRsr6WU4g8v1CgCkg uuvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=dZHYHqpu9SWa5ODyfZe83JOj5HsHBUXs/KvHWmSE064=; b=a2NLHfsbs9Y2pgJk+rtU39am4/tR+vgNB6HfPMb8aRrW5sSwtX5cUOTWsQP9RU/5Cm exe5q8rugIPHcJWBiwtGBI7xCW0V2OS6Nwje2RiB4f8iRChoprSKVm1VLYU3Q1SO9/Cr GyfxaD2iEGwEcXEt1v5k53fw/S86qCPY1QSLfezquxqCImn5FgyWmDKglIjQTiVbpmxS QV4gi8Em8NES2xf3L19RMttwiDUJP64j2h9+5td6uCpT67Q2b+MtSCBX6Kt9yVVzWbS0 IAYuwPebAVzMD1qZPP80b9MadB4/VKjaqOs8xdmrzzcLhwFPERWDJngCAgE2VG6895wk HhQQ== X-Gm-Message-State: APjAAAWYQrLMN7keQqloTMBpYejVNGE6RRHS4kr25Egv8JRTUn0Bs5i4 sqUPQZs3RR3FQCAIX6c8wBI= X-Received: by 2002:adf:eb87:: with SMTP id t7mr1206647wrn.39.1556213617459; Thu, 25 Apr 2019 10:33:37 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id v13sm41988211wrg.46.2019.04.25.10.33.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 10:33:36 -0700 (PDT) Date: Thu, 25 Apr 2019 19:33:33 +0200 From: Ingo Molnar To: Peter Zijlstra Cc: Thara Gopinath , mingo@redhat.com, rui.zhang@intel.com, linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, viresh.kumar@linaro.org, javi.merino@kernel.org, edubezval@gmail.com, daniel.lezcano@linaro.org, vincent.guittot@linaro.org, nicolas.dechesne@linaro.org, bjorn.andersson@linaro.org, dietmar.eggemann@arm.com, Quentin Perret , "Rafael J. Wysocki" Subject: Re: [PATCH V2 0/3] Introduce Thermal Pressure Message-ID: <20190425173333.GA4081@gmail.com> References: <1555443521-579-1-git-send-email-thara.gopinath@linaro.org> <20190417053626.GA47282@gmail.com> <5CB75FD9.3070207@linaro.org> <20190417182932.GB5140@gmail.com> <20190424163424.GG4038@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424163424.GG4038@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra wrote: > On Wed, Apr 17, 2019 at 08:29:32PM +0200, Ingo Molnar wrote: > > Assuming PeterZ & Rafael & Quentin doesn't hate the whole thermal load > > tracking approach. > > I seem to remember competing proposals, and have forgotten everything > about them; the cover letter also didn't have references to them or > mention them in any way. > > As to the averaging and period, I personally prefer a PELT signal with > the windows lined up, if that really is too short a window, then a PELT > like signal with a natural multiple of the PELT period would make sense, > such that the windows still line up nicely. > > Mixing different averaging methods and non-aligned windows just makes me > uncomfortable. Yeah, so the problem with PELT is that while it nicely approximates variable-period decay calculations with plain additions, shifts and table lookups (i.e. accelerates pow()), AFAICS the most important decay parameter is fixed: the speed of decay, the dampening factor, which is fixed at 32: Documentation/scheduler/sched-pelt.c #define HALFLIFE 32 Right? Thara's numbers suggest that there's high sensitivity to the speed of decay. By using PELT we'd be using whatever averaging speed there is within PELT. Now we could make that parametric of course, but that would both complicate the PELT lookup code (one more dimension) and would negatively affect code generation in a number of places. Thanks, Ingo