Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1608610ybv; Sun, 23 Feb 2020 10:40:28 -0800 (PST) X-Google-Smtp-Source: APXvYqy9Gn2SBHzrmGUiwQ64aREp1wsNekfwsWQgBsPKPUWgq2xkdiAuFrL6d0NYKQHXXx4w/SIb X-Received: by 2002:a9d:7083:: with SMTP id l3mr35475071otj.193.1582483228073; Sun, 23 Feb 2020 10:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582483228; cv=none; d=google.com; s=arc-20160816; b=iVu8cwV0mDt3owZeML7ulywRAZxvbW6b6CVp/1kjFQVDcrktP/smKNg08QGQ4KXuKa gZWs8zlvLjxcqe6I5JewzTKmz8sar7vfGBRKxJ/AsCNf0t8oXgwTx4iWJPWzZ+hVPooo iIY86bfUc0lCNzTShnDlvU6zPG30OaGNaapKVtZTijyWVrCJbRa9YMFGgIBgut68DWrn priArJmO8Hea4AL4pRWL85r48TpIiXfn69iBj7PguE9sOnOBHjKmidyg9J8D1fHEFc2l l71daV7xHBNv8NABOaevwbJeeDiBbBnzYkmY13MHbfZSZMv1voGjhEbzmJzZXEJdY5lW f3Jw== 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; bh=tjYJbuODa1DgP0EVSWtRf23t0s+E9UStstXNgPHZrSg=; b=HRaHcZ11SSLuU4HuCYKOPhSwu+i2J/PR3VW7MyZG05LK63yjKwfsc4ePCT3QsdkfKx 7OB+AVA5gWMq5osCXxGWoTOOCxfLiKX06o6SIpTmn/Kxrm90CJuw+AdFYQAO8y5mHtcR b826w+DPuopf4cxYqOi8VgwA2KyFwL8U1W5PMNeu1G8xzdMpgI5/P6x/18row9aPQ2dF R+g7cJy0ZJVJ+V62I/ZgJvQ3aYS/l8sszvYoy66HcrD1oxVIB/PgnblX2uSrTz/VKfAj KNnaS566QID+GJ6AbI/iClVcIgfGaLbcwdgkRI7rHpUPOmH4Vd0VPTDEPdH1ck1A6/ga JN1w== 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 g10si4733968otn.12.2020.02.23.10.40.15; Sun, 23 Feb 2020 10:40:28 -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 S1727115AbgBWSkJ (ORCPT + 99 others); Sun, 23 Feb 2020 13:40:09 -0500 Received: from foss.arm.com ([217.140.110.172]:50442 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbgBWSkJ (ORCPT ); Sun, 23 Feb 2020 13:40:09 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 63F2330E; Sun, 23 Feb 2020 10:40:08 -0800 (PST) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EC8FE3F703; Sun, 23 Feb 2020 10:40:06 -0800 (PST) From: Qais Yousef To: Ingo Molnar , Peter Zijlstra , Steven Rostedt , Dietmar Eggemann , Pavan Kondeti Cc: Juri Lelli , Vincent Guittot , Ben Segall , Mel Gorman , linux-kernel@vger.kernel.org, Qais Yousef Subject: [PATCH v2 0/6] RT Capacity Awareness Fixes & Improvements Date: Sun, 23 Feb 2020 18:39:55 +0000 Message-Id: <20200223184001.14248-1-qais.yousef@arm.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pavan, Steve and Dietmar pointed out a few issues and improvements that could be done to the logic of RT Capacity Awareness. This series implements them. The main issue that triggered the discussion is the missing fallback mechanism in cpupri_find() if we are running on unfitting CPU and no fitting CPU was found. In this case we fallback to the best lowest_rq, which means unfitting tasks can move freely in unfitting CPUs, which better honours the priority of the task. This is implemented in patch 1. The 2nd major issue is on wakeup, the logic that forces a push was incomplete. Steve suggested using the overload flag, but Pavan pointed out this could cause unnecessary IPIs. Patch 5 addresses that. The discussion on patches 1-4 seemed to have reached a consensus. Patch 5 still needs more eyes staring at it. Pavan, if you can provide your Reviewed-by on the patches you're happy with that'd be appreciated. A Tested-by would be ever better :) Discussion on v1 can be found here: https://lore.kernel.org/lkml/20200214163949.27850-1-qais.yousef@arm.com/ Thanks Qais Yousef (6): sched/rt: cpupri_find: implement fallback mechanism for !fit case sched/rt: Re-instate old behavior in select_task_rq_rt sched/rt: Optimize cpupri_find on non-heterogenous systems sched/rt: allow pulling unfitting task sched/rt: Better manage pushing unfit tasks on wakeup sched/rt: Remove unnecessary assignment in inc/dec_rt_migration kernel/sched/cpupri.c | 167 +++++++++++++++++++++++++++--------------- kernel/sched/cpupri.h | 6 +- kernel/sched/rt.c | 137 ++++++++++++++++++++++++++++++---- kernel/sched/sched.h | 3 + 4 files changed, 237 insertions(+), 76 deletions(-) -- 2.17.1