Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932982AbdCUOuw (ORCPT ); Tue, 21 Mar 2017 10:50:52 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:50685 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932663AbdCUOuu (ORCPT ); Tue, 21 Mar 2017 10:50:50 -0400 Date: Tue, 21 Mar 2017 15:03:25 +0100 From: Peter Zijlstra To: Vincent Guittot Cc: "Rafael J. Wysocki" , Linux PM , LKML , Srinivas Pandruvada , Viresh Kumar , Juri Lelli , Patrick Bellasi , Joel Fernandes , Morten Rasmussen , Ingo Molnar Subject: Re: [RFC][PATCH v2 2/2] cpufreq: schedutil: Avoid decreasing frequency of busy CPUs Message-ID: <20170321140325.gf64gc7eaqu335t5@hirez.programming.kicks-ass.net> References: <4366682.tsferJN35u@aspire.rjw.lan> <2185243.flNrap3qq1@aspire.rjw.lan> <3300960.HE4b3sK4dn@aspire.rjw.lan> <20170321132253.vjp7f72qkubpttmf@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 927 Lines: 23 On Tue, Mar 21, 2017 at 02:37:08PM +0100, Vincent Guittot wrote: > On 21 March 2017 at 14:22, Peter Zijlstra wrote: > For the not overloaded case, it makes sense to immediately update to > OPP to be aligned with the new utilization of the CPU even if it was > not idle in the past couple of ticks Yeah, but we cannot know. Also, who cares? > > does exactly that. Note that the lack of idle time is an exact > > equivalent of 100% utilized. > > > > So even while we cannot currently detect the 100% utilized state through > > the running state tracking; because averages etc.. we can detect the > > lack of idle time. > > But after how much lack of idle time do we consider that we are overloaded ? 0 :-) Note that utilization is an absolute metric, not a windowed one. That is, there is no actual time associated with it. Now, for practical purposes we end up using windowed things in many places,