From patchwork Wed May 24 09:00:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 100420 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp177326qge; Wed, 24 May 2017 02:03:51 -0700 (PDT) X-Received: by 10.98.78.193 with SMTP id c184mr35652790pfb.85.1495616631197; Wed, 24 May 2017 02:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495616631; cv=none; d=google.com; s=arc-20160816; b=l/ZG4fVOyv+36Kj0waPjSYmeKnrSjHE8keFwQloRb91xoPDLAZtKYk24iK06EErfO5 159bsMU0mHBXpFeVAl8UebDYLMNnt86jitlAJ/Mh19Gm0bvWEwA6bHmUAwF5WICB1Mov ae8dU2Ol2IunD/pTAzonMW7WhB0GLJaCfmcMLaO/ZjkxwJoG0MnWkiFgV+UZV6W7SasH g38O3NZoZluZJOZq9m6+MDIKXri/hZPMBZESd6LpDyQEvQCK6XQyDF+URCxR0mi8s6Ec 5E4I+oN39tWmDbqdDx7q2bDSi0E/gvHbbTUjqcfps3+BoNP07Ez73sL8oc4kPFLNASHx 07Kg== 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 :dkim-signature:arc-authentication-results; bh=D4fwPHvmPMJWMVpJ0Pbhas/XCARIFrfSBqxgFVjnu9g=; b=tHeK+Kff16YTtRhfgdetN/r5q+k4O6FoBycmbFSV/2kEnPUpOz5KosK297e19hvMiO pjpc3Hmygh1wTZFu7kYjgPhUPLfsBxajPWkZReEU1RUGAitDU+47jokjVeS1ljm4p+M5 tfRHnpKhvTZXy0f5Buna5ioXWa0NtBwp64qEgi+nXiQ8zos0Qdtz21SIhG9Dn5aDioWA nRhwixlO/7QRTI1e3L9L8hNKfXTc24KpgDj86gwGq5gbpvUWMvbyjzxEM+sbPdPH+QQQ /NByhSKRangyB3kTWdIg7jymwHh2vfJnjzqW78BPoPaDFH9VpMPQ1UyHEv/8h6TUCqht mmXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si24043573pgn.332.2017.05.24.02.03.50; Wed, 24 May 2017 02:03:51 -0700 (PDT) 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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162973AbdEXJDn (ORCPT + 25 others); Wed, 24 May 2017 05:03:43 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:35121 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162000AbdEXJBE (ORCPT ); Wed, 24 May 2017 05:01:04 -0400 Received: by mail-wm0-f42.google.com with SMTP id b84so56359133wmh.0 for ; Wed, 24 May 2017 02:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=D4fwPHvmPMJWMVpJ0Pbhas/XCARIFrfSBqxgFVjnu9g=; b=MmbjlrB+WDo7KpRqiLQqH+weVFfYBolBc5ixti4SK4njaZXPtSSP3LXYl7ZHgVTrKk vNODDp0Qv3T112nDn2fV2omZX4AUqHG6o/4A7Lf+mAE6w1ZHWt43o4v2wMDQfrd73vJt bmiNxMqXIwo6cLZLBv9bPgnCf15NHVG0337Qo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=D4fwPHvmPMJWMVpJ0Pbhas/XCARIFrfSBqxgFVjnu9g=; b=PPY8iJItcp4lNqxtXjPKMGv/RDAMqhruPZc3Sy0//VKM7hp5cgXl5AW4W8kRtgLzFw b35G7nqZQ0i4kp7mqPmvnXaYDLDidMHbXd2hXRUQ7wRlS4UnhE7qmmVhl5Yzm5kyfV+N MKuM8eGRjGpVXYXcNlFn0es1gD+ZYcIvj8UTPFpOU+Ahsbcsbkj09zgqUJnAC8G1FDoZ Q37LqRoLXDJvA27JfZgIwjVe0AD7HK1iXp3e1Mp40bGGUod1Y7kCfm/pGfXJEXlpOaRY feSteUo2BSmaPqoAiibrN5YwP7S5hO9990DK+jRoFanM0tWfXfB/kIvhf15umizr9t2b HbmA== X-Gm-Message-State: AODbwcAhrpM/04Rpiut8L2QcobTTW06fO+/CFe6z9xfbT0DImdlHzrMV E1m0rEK+lf6S4NJf X-Received: by 10.223.155.2 with SMTP id b2mr18388811wrc.87.1495616457785; Wed, 24 May 2017 02:00:57 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:f:6020:90ff:f881:739b:af16]) by smtp.gmail.com with ESMTPSA id w96sm4552076wrc.14.2017.05.24.02.00.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 02:00:56 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: rjw@rjwysocki.net, juri.lelli@arm.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, Vincent Guittot Subject: [PATCH 0/2] track rt rq utilization Date: Wed, 24 May 2017 11:00:50 +0200 Message-Id: <1495616452-7582-1-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When both cfs and rt tasks compete to run on a CPU, we can see some frequency drops with schedutil governor. In such case, the cfs_rq's utilization doesn't reflect anymore the utilization of cfs tasks but only the remaining part that is not used by rt tasks. We should monitor the stolen utilization and take it into account when selecting OPP. Patch 1 tracks utilization of rt_rq. Patch 2 adds the rt_rq's utilization when selection OPP for cfs tasks This patchset doesn't change the OPP selection policy for RT tasks Vincent Guittot (2): sched/rt: add utilization tracking cpufreq/schedutil: add rt utilization tracking kernel/sched/cpufreq_schedutil.c | 2 +- kernel/sched/fair.c | 21 +++++++++++++++++++++ kernel/sched/rt.c | 9 +++++++++ kernel/sched/sched.h | 3 +++ 4 files changed, 34 insertions(+), 1 deletion(-) -- 2.7.4