Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2253414pxu; Mon, 7 Dec 2020 01:19:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjesa5RNCfoXyBbALUkbJoA08+qkfqCzkM+M6nyyms0SbPw4F4+Pj+pzAbqz0kIYkyI8YW X-Received: by 2002:a17:906:4c85:: with SMTP id q5mr17800642eju.375.1607332765830; Mon, 07 Dec 2020 01:19:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607332765; cv=none; d=google.com; s=arc-20160816; b=gVOoHUESMeud7wvPYLPMsaLnnFxo4WgQ9VPbTi7f8Vh6XesA6b7zjVzdl4+V9fAcjv L+xxADz4SgQvtXO6QnxF46TOMFWvJvx1SONlR5j4HIDVwRrDACZTwEWq3YkSUZvTR6iU YHAMMCLTyoEOeIAzKYYk7JcmzacSFf/HeyCRF6eOqwz0CFQFFuqxLdoG9+Baf34WOHfv vEU0dxg9KJ4NPekGAkD0w+CJh0kZMFFX1EkjLt2h9tDZEZA/KO/uTnxG+G6SW4XHo8Y8 hJdCqKxlITr5GvfvjtLiMpEi10Wf2aWual5GtAs4HNGUpHhzOjvCRDknZ+DNAKQehpjh t0Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=x3VO5DgwH6Xzs8Mv1gB/xeDjiCs0tmH/thbkQuz2XOQ=; b=G4XRg/oE/lft4PLWdllZQPPINbRgAq1Z0KOL2iFuQP8023CsX4kOEgj6F8CQTXPYOq 58HizTe7aoIlPvYbmn4kvK9bp5GAzh05tM6bRIBFzfjE+HQIwIbSq6sc2C9ACtjSd/+h eRQOBnTM6rZ220QDAy52+lwSbyQCZVOg/XXNH5ABOrAGJulEIAen2GToZGWDcAPsoDpA fr0bQwd98LD5YBZ9+l6ecaIpmGanbMg/zOWllyeCva/h2iiF82vAegUZ1yR30Sm6X9A/ MrE8n+t7wPc+TgR2li6V4lJK1POsFFflqyOahRW5WWLOgZZPEDCv9Xd6xtJ/i7eRs8H6 q2fw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si1628492ejh.224.2020.12.07.01.19.02; Mon, 07 Dec 2020 01:19:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726653AbgLGJQ1 (ORCPT + 99 others); Mon, 7 Dec 2020 04:16:27 -0500 Received: from outbound-smtp01.blacknight.com ([81.17.249.7]:46598 "EHLO outbound-smtp01.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726423AbgLGJQ1 (ORCPT ); Mon, 7 Dec 2020 04:16:27 -0500 Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp01.blacknight.com (Postfix) with ESMTPS id 43E2DC4A6D for ; Mon, 7 Dec 2020 09:15:38 +0000 (GMT) Received: (qmail 12082 invoked from network); 7 Dec 2020 09:15:37 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.22.4]) by 81.17.254.9 with ESMTPA; 7 Dec 2020 09:15:37 -0000 From: Mel Gorman To: LKML Cc: Aubrey Li , Barry Song , Ingo Molnar , Peter Ziljstra , Juri Lelli , Vincent Guittot , Valentin Schneider , Linux-ARM , Mel Gorman Subject: [PATCH 1/4] sched/fair: Remove SIS_AVG_CPU Date: Mon, 7 Dec 2020 09:15:13 +0000 Message-Id: <20201207091516.24683-2-mgorman@techsingularity.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201207091516.24683-1-mgorman@techsingularity.net> References: <20201207091516.24683-1-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SIS_AVG_CPU was introduced as a means of avoiding a search when the average search cost indicated that the search would likely fail. It was a blunt instrument and disabled by 4c77b18cf8b7 ("sched/fair: Make select_idle_cpu() more aggressive") and later replaced with a proportional search depth by 1ad3aaf3fcd2 ("sched/core: Implement new approach to scale select_idle_cpu()"). While there are corner cases where SIS_AVG_CPU is better, it has now been disabled for almost three years. As the intent of SIS_PROP is to reduce the time complexity of select_idle_cpu(), lets drop SIS_AVG_CPU and focus on SIS_PROP as a throttling mechanism. Signed-off-by: Mel Gorman --- kernel/sched/fair.c | 3 --- kernel/sched/features.h | 1 - 2 files changed, 4 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 98075f9ea9a8..23934dbac635 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -6161,9 +6161,6 @@ static int select_idle_cpu(struct task_struct *p, struct sched_domain *sd, int t avg_idle = this_rq()->avg_idle / 512; avg_cost = this_sd->avg_scan_cost + 1; - if (sched_feat(SIS_AVG_CPU) && avg_idle < avg_cost) - return -1; - if (sched_feat(SIS_PROP)) { u64 span_avg = sd->span_weight * avg_idle; if (span_avg > 4*avg_cost) diff --git a/kernel/sched/features.h b/kernel/sched/features.h index 68d369cba9e4..e875eabb6600 100644 --- a/kernel/sched/features.h +++ b/kernel/sched/features.h @@ -54,7 +54,6 @@ SCHED_FEAT(TTWU_QUEUE, true) /* * When doing wakeups, attempt to limit superfluous scans of the LLC domain. */ -SCHED_FEAT(SIS_AVG_CPU, false) SCHED_FEAT(SIS_PROP, true) /* -- 2.26.2