Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752809AbdGFWeB (ORCPT ); Thu, 6 Jul 2017 18:34:01 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:63073 "EHLO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752452AbdGFWd7 (ORCPT ); Thu, 6 Jul 2017 18:33:59 -0400 From: "Rafael J. Wysocki" To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Juri Lelli , Joel Fernandes , Andres Oportus , Todd Kjos , Morten Rasmussen , Dietmar Eggemann Subject: Re: [PATCH v2 0/6] cpufreq: schedutil: fixes for flags updates Date: Fri, 07 Jul 2017 00:26:18 +0200 Message-ID: <1922385.Uty99Stho4@aspire.rjw.lan> User-Agent: KMail/4.14.10 (Linux/4.12.0-rc1+; KDE/4.14.9; x86_64; ; ) In-Reply-To: <1499189651-18797-1-git-send-email-patrick.bellasi@arm.com> References: <1499189651-18797-1-git-send-email-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1831 Lines: 42 On Tuesday, July 04, 2017 06:34:05 PM Patrick Bellasi wrote: > Each time a CPU utilisation update is issued by the scheduler a flag, which > mainly defines which scheduling class is asking for the update, is used by the > frequency selection policy to support the selection of the most appropriate > OPP. > > In the current implementation, CPU flags are overridden each time the scheduler > calls schedutil for an update. Such a behavior seems to be sub-optimal, > especially on systems where frequency domains span across multiple CPUs. > > Indeed, assuming CPU1 and CPU2 share the same frequency domain, there can be > the following issues: > > A) Small FAIR task running at MAX OPP. > A RT task, which just executed on CPU1, can keep the domain at the > max frequency for a prolonged period of time after its completion, > even if there are no longer RT tasks running on CPUs of its domain. > > B) FAIR wakeup reducing the OPP of the current RT task. > A FAIR task enqueued in a CPU where a RT task is running overrides the flag > configured by the RT task thus potentially causing an unwanted frequency > drop. > > C) RT wakeup not running at max OPP. > An RT task waking up on a CPU which has recently updated its OPP can > be forced to run at a lower frequency because of the throttling > enforced by schedutil, even if there are not OPP transitions > currently in progress. > > .:: Patches organization > ======================== > > This series proposes a set of fixes for the aforementioned issues and it's an > update addressing all the main comments collected from the previous posting > [1]. It seems to me that there is a nonzero overlap between this and the Juri's work. If that's correct, I'd like this series to go on top of the Juri's one. Thanks, Rafael