Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754763AbcKUPeP (ORCPT ); Mon, 21 Nov 2016 10:34:15 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:49540 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752859AbcKUPeN (ORCPT ); Mon, 21 Nov 2016 10:34:13 -0500 Date: Mon, 21 Nov 2016 16:34:06 +0100 From: Peter Zijlstra To: Patrick Bellasi Cc: Juri Lelli , Viresh Kumar , Rafael Wysocki , Ingo Molnar , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Vincent Guittot , Robin Randhawa , Steve Muckle , tkjos@google.com, Morten Rasmussen Subject: Re: [PATCH] cpufreq: schedutil: add up/down frequency transition rate limits Message-ID: <20161121153406.GA3174@twins.programming.kicks-ass.net> References: <20161121100805.GB10014@vireshk-i7> <20161121101946.GI3102@twins.programming.kicks-ass.net> <20161121121432.GK24383@e106622-lin> <20161121122622.GC3092@twins.programming.kicks-ass.net> <20161121135308.GN24383@e106622-lin> <20161121145919.GA3414@e105326-lin> <20161121152606.GI3092@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161121152606.GI3092@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 21 On Mon, Nov 21, 2016 at 04:26:06PM +0100, Peter Zijlstra wrote: > > For example, a task running 30 [ms] every 100 [ms] is a ~300 util_avg > > task. With PELT, we get a signal which range between [120,550] with an > > average of ~300 which is instead completely ignored. By capping the > > decay we will get: > > > > decay_cap [ms] range average > > 0 120:550 300 > > 64 140:560 310 > > 32 320:660 430 > > > > which means that still the raw PELT signal is wobbling and never > > provides a consistent response to drive decisions. > > > > Thus, a "predictor" should be something which sample information from > > PELT to provide a more consistent view, a sort of of low-pass filter > > on top of the "dynamic metric" which is PELT. Note that a simple low-pass IIR filter will only shrink the wobble, not take it out entirely. Or rather, if you make it so strong as to take the entire wobble out, it'll likely react like molasses.