Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755369AbeAHEB0 (ORCPT + 1 other); Sun, 7 Jan 2018 23:01:26 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:45047 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754987AbeAHEBY (ORCPT ); Sun, 7 Jan 2018 23:01:24 -0500 X-Google-Smtp-Source: ACJfBoscjkm6aKVqnZe37s0Pc1D8jn6vrelDBanb4Hwqfv0gjYYt9OYzf0MMOWCP7Ni99i8tNSZGbA== Date: Mon, 8 Jan 2018 09:31:21 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Leonard Crestez , Linux PM , Anson Huang , "linux-kernel@vger.kernel.org" , Patrick Bellasi , Juri Lelli , Peter Zijlstra , vincent.guittot@linaro.org Subject: Re: [BUG] schedutil governor produces regular max freq spikes because of lockup detector watchdog threads Message-ID: <20180108040121.GB4003@vireshk-i7> References: <1515184652.6892.26.camel@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 05-01-18, 23:18, Rafael J. Wysocki wrote: > On Fri, Jan 5, 2018 at 9:37 PM, Leonard Crestez wrote: > > Hello, > > > > When using the schedutil governor together with the softlockup detector > > all CPUs go to their maximum frequency on a regular basis. This seems > > to be because the watchdog creates a RT thread on each CPU and this > > causes regular kicks with: > > > > cpufreq_update_this_cpu(rq, SCHED_CPUFREQ_RT); > > > > The schedutil governor responds to this by immediately setting the > > maximum cpu frequency, this is very undesirable. > > > > The issue can be fixed by this patch from android: > > https://patchwork.kernel.org/patch/9301909/ > > > > The patch stalled in a long discussion about how it's difficult for > > cpufreq to deal with RT and how some RT users might just disable > > cpufreq. It is indeed hard but if the system experiences regular power > > kicks from a common debug feature they will end up disabling schedutil > > instead. > > They are basically free to use the other governors instead if they prefer them. > > > No other governors behave this way, > > Because they work differently overall. > > > perhaps the current behavior should be considered a bug in schedutil. > > > > That patch now has conflicts with latest upstream. Perhaps a modified > > variant should be reconsidered for inclusion, or is there some other > > solution pending? > > Patrick has a series of patches dealing with this problem area AFAICS, > but we are currently integrating material from Juri related to > deadline tasks. I am not sure if Patrick's patches would solve this problem at all as we still go to max for RT and the RT task is created from the softlockup detector somehow. One way to fix that can be to use DL for the softlockup detector as after Juri's patches we don't always go to max for DL. On the other side, AFAIR, Peter was very clear during the previous LPC that it doesn't make sense to use rt-avg as the above patch suggests. -- viresh