From patchwork Fri Aug 4 13:40:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 109399 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp1382394obb; Fri, 4 Aug 2017 06:40:35 -0700 (PDT) X-Received: by 10.84.205.70 with SMTP id o6mr2875414plh.51.1501854035677; Fri, 04 Aug 2017 06:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1501854035; cv=none; d=google.com; s=arc-20160816; b=FG9rN1P4VLgx1wTJnBCHYONOzpMzCRHYXXymJh1u/swVa3rsVwDklTxrwkUjxcFRSj ehuhJjcI8vHGwpRtdihIJfmj2gdzpeZtIJDTBBXT/oOyeFbYRA9havIZZdTCMTcYokXy NQfbg7SV5NQoFVzkdrN15nTeegwhNjPJTn7WOUui5sKzIbxtV9gzJ33sNdsUhL8krfWW O8o6S4B472eRB08KTdtTBTy5VtI3+x1Ed+7C143fQvGZXoYq0ar2OaUkpA6Vr8wue0kk O/zpIsV1v4u0+OrG/hLxGzzv1X0ARJp5Ucae7CCpzXNQ5eagS80kksCldlza8iLS5jNz CoNg== 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=diW9dEA/v5gTibJBuaKMHCYt2bhNgEl6HdicQIrxzVU=; b=Jxe/1aZUXGwepIjduW9qcwYiu4FHW6xnw6NJtVyoB/5qxuGvKOc6+4CLt4sz3fAk07 fIR50LeQIKa3gaYFdn7hf4ffx1lEY8i8T6Fb6qIg+7jQPWKqKtzFIi9/lQ9+9Ihe50om LTCtQ+CnvtaXE4XuW7MK3lXYQChzemdczhHOU8pEre7GQ11g90+OGMd0dfwHwKjeLQTU vSkb9bEyYpIO6JRi+vNMdrEuJ1iQt5b3LMm+LzHuPSsW/LLY8BJvY5riMzMx1LDTH3bA JwTj451W6TssdAZeXGoISSj/JvnazQ5N/i5W4JI96y9E1xVZK4305hrZakZFM4maJa81 NdIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=CqS2dcdI; 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 u72si1030833pfi.537.2017.08.04.06.40.34; Fri, 04 Aug 2017 06:40:35 -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 header.b=CqS2dcdI; 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 S1752729AbdHDNkc (ORCPT + 25 others); Fri, 4 Aug 2017 09:40:32 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:34620 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752153AbdHDNkb (ORCPT ); Fri, 4 Aug 2017 09:40:31 -0400 Received: by mail-wm0-f46.google.com with SMTP id t138so11856291wmt.1 for ; Fri, 04 Aug 2017 06:40:30 -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=diW9dEA/v5gTibJBuaKMHCYt2bhNgEl6HdicQIrxzVU=; b=CqS2dcdInhTQ5GtW7Uhc3cC7pSBzGtmikcWjNZwI2h659y43J04flKrWDv0Requ2QS mlUlQN5HgF6Gf8iVh+5/k8vOlY7DzL1oy9lV8Ei7JXGTsYltYD9VZd1xYLmjEAB73iH2 0PTsuMJ+Y5cdwpKKw0thbeKo5aX7wuhVg8Fuo= 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=diW9dEA/v5gTibJBuaKMHCYt2bhNgEl6HdicQIrxzVU=; b=OGL6wBSQcKcy3Rq2+UUGYsd7TZWcHuAywKDzJ2So9jRsynCmXYoN6+r+IuqlIaELX/ dGSd/P4hI2NffrCwKtcLLrJgu+7IQ8ifEB+IAJX5+Hgtntc4FimIeqgdTrZEb8gU/Z45 +XUdfqWfuRGHpGEWWRVGu1+lwjPJMrPGFyOfkYI4huk5ywhT6pMZHtbtcM7nZQzS8sk1 vrSgkyXR2TeFCki2qJMxl+yiqVjAYU9CNJFYZmuwtrOyUzMxbiBwwuBd4VStTT9o+ZDt 8RWLPtvDJeTSuQwNEXGqUGMyx+TO4mTpWHpv7pG64N8r+d136bHvDMxDD5BuCuOPNfud 9YJg== X-Gm-Message-State: AHYfb5iKedvxxZJ7Agw6yimg0846Ezj6HxbMBJDYXmVTOl6RNUCXB5Lc XdEgv1fLFD255hWn X-Received: by 10.28.127.81 with SMTP id a78mr1313722wmd.153.1501854030011; Fri, 04 Aug 2017 06:40:30 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:f:6020:f960:58a5:a4a:6f6c]) by smtp.gmail.com with ESMTPSA id 196sm3903874wmg.36.2017.08.04.06.40.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Aug 2017 06:40:29 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net Cc: juri.lelli@arm.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, viresh.kumar@linaro.org, Vincent Guittot Subject: [RESEND PATCH v2 0/2] sched/rt: track rt rq utilization Date: Fri, 4 Aug 2017 15:40:20 +0200 Message-Id: <1501854022-22128-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 Change since v1: - Only a rebase. I have addressed the comments on previous version in patch 1/2 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