Received: by 10.223.164.202 with SMTP id h10csp548600wrb; Thu, 30 Nov 2017 03:50:01 -0800 (PST) X-Google-Smtp-Source: AGs4zMYEkvYd3DK6O82OycMxhSO6/3/caeUFg3fNSUu+0h2ljg+ThDMKEmc2Jqe7WtBkBjMDZBE6 X-Received: by 10.101.72.132 with SMTP id n4mr2082448pgs.288.1512042601823; Thu, 30 Nov 2017 03:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512042601; cv=none; d=google.com; s=arc-20160816; b=QYrjvNqYv0vwot96q2nNHPVaPPB1r/VjRe8rz2v7V+q3cYlB+DoJNj0cVMOyOnN33g Isri33/F2AyOphoIiHueNhidsyrGUl/IY5+ikszusWKtn59Qz1M7mkHu494N0H8YDpd9 oK4CIAatEqFy1/aDtqNbUQbPJm+VzlXofNjHBScfT6A4EJBBWuX1X8qNR4+0zc9EEOlR MRCZt2wehTGv7M89iJyEmusCXwRYWRkASuLqYi0YqhjpQyZppTIsN0yBGXlLKcDHC4GW GMYSXH3mtvJRh5P6XFk3/NB3Klw9VyNNH7AXo4Tl80tdkRjWvjDyZ8VxNB5AG+cr5jP/ ubQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=L8w0IH/lOq83iOIloFYdenQqZrD2zdWu32wfOAm8GB0=; b=KsfQ9mOHD6AA8pTVajXbUGIC+rkFeVB+IsHbmB2IrOo+61vWkGc/0dxJEzJBv5fqFI m1fqux3diKRzQ/9dtBjQdJJ+x8ijUAizD1dVIeOpKKwbKxb9IghlfdshOnobIWF1TIvb GLbyUpb18nZyrodiBqqs27oSHWZQwVF2+iCREWq2uhDhztVhBi0/yW5sV159LHFmayE9 lsMM7Xi8TU/xBhbcRsd4ToSUZ0BUp10/TOh5YTe7h+oQQz/aSn1f3meGCEZyJ86uGYW+ diXNk9QXXHvKW7aOYDVo9Z2BM7BRZPUtqHs6+r+AJx3TSbaLspQLXvetwPNl+OQp8oqT o6kw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si3049899pll.616.2017.11.30.03.49.48; Thu, 30 Nov 2017 03:50:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752423AbdK3Lrs (ORCPT + 99 others); Thu, 30 Nov 2017 06:47:48 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51226 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751513AbdK3Lrq (ORCPT ); Thu, 30 Nov 2017 06:47:46 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6117A1435; Thu, 30 Nov 2017 03:47:46 -0800 (PST) Received: from e110439-lin.cambridge.arm.com (e110439-lin.cambridge.arm.com [10.1.210.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 28AF33F236; Thu, 30 Nov 2017 03:47:44 -0800 (PST) From: Patrick Bellasi To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes Subject: [PATCH v3 0/6] cpufreq: schedutil: fixes for flags updates Date: Thu, 30 Nov 2017 11:47:17 +0000 Message-Id: <20171130114723.29210-1-patrick.bellasi@arm.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a re-spin of a previous posting [1], rebased on v4.15-rc1. A detailed description of the series, as well as experimental results, is available in the cover letter of the previous posting. Here is a resume of the main results: - reduces energy consumption by ~50% by ensuring that a small task is always running at the minimum OPP even when the sugov's RT kthread is used to change frequencies in the same cluster - increase from 4% to 98% the chances for a RT task to complete its activations while running at the max OPP. - The sequence of tracing events reported in a trace is much more deterministic and matching the expected system behaviors. For example, as soon as a RT task wakes up we ask for an OPP switch to max frequency. A detailed report for these results is available here [2]. According to the discussion in the previous posting, one patch: cpufreq: schedutil: ignore the sugov kthread for frequencies selections was considered the more controversial. That's why in this posting I'm still proposing that patch, since it still makes sense to me, but I've moved it at the end of the series, after the less controversial ones. Cheers Patrick .:: References ============== [1] https://lkml.org/lkml/2017/7/4/495 [2] https://gist.github.com/derkling/0cd7210e4fa6f2ec3558073006e5ad70 Patrick Bellasi (6): cpufreq: schedutil: reset sg_cpus's flags at IDLE enter cpufreq: schedutil: ensure max frequency while running RT/DL tasks cpufreq: schedutil: update CFS util only if used sched/rt: fast switch to maximum frequency when RT tasks are scheduled cpufreq: schedutil: relax rate-limiting while running RT/DL tasks cpufreq: schedutil: ignore sugov kthreads include/linux/sched/cpufreq.h | 1 + kernel/sched/cpufreq_schedutil.c | 61 ++++++++++++++++++++++++++++++++-------- kernel/sched/idle_task.c | 4 +++ kernel/sched/rt.c | 15 ++++++++-- 4 files changed, 67 insertions(+), 14 deletions(-) -- 2.14.1 From 1585361627284005541@xxx Wed Nov 29 01:24:26 +0000 2017 X-GM-THRID: 1584865790453913324 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread