Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757919AbdCUPEX (ORCPT ); Tue, 21 Mar 2017 11:04:23 -0400 Received: from merlin.infradead.org ([205.233.59.134]:57620 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756686AbdCUPEU (ORCPT ); Tue, 21 Mar 2017 11:04:20 -0400 Date: Tue, 21 Mar 2017 16:04:03 +0100 From: Peter Zijlstra To: "Rafael J. Wysocki" Cc: Patrick Bellasi , Vincent Guittot , Linux PM , LKML , Srinivas Pandruvada , Viresh Kumar , Juri Lelli , Joel Fernandes , Morten Rasmussen , Ingo Molnar Subject: Re: [RFC][PATCH v2 2/2] cpufreq: schedutil: Avoid decreasing frequency of busy CPUs Message-ID: <20170321150403.GU3093@worktop> References: <4366682.tsferJN35u@aspire.rjw.lan> <3429350.K2FUBgvcIK@aspire.rjw.lan> <20170321143842.GE11054@e110439-lin> <1844525.jBn1oKmyb6@aspire.rjw.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1844525.jBn1oKmyb6@aspire.rjw.lan> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 516 Lines: 12 On Tue, Mar 21, 2017 at 03:46:07PM +0100, Rafael J. Wysocki wrote: > @@ -207,6 +212,8 @@ static void sugov_update_single(struct u > if (!sugov_should_update_freq(sg_policy, time)) > return; > > + sg_policy->overload = this_rq()->rd->overload; > + Same problem as before; rd->overload is set if _any_ CPU in the root domain has more than 1 runnable task at a random point in history (when we ran the load balance tick -- and since that is the same tick used for timers, there's a bias to over-account there).