Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1900987pxb; Sun, 31 Oct 2021 03:19:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX+/EY0zQ1UCGmPPcUAGS0n4HJ1lTAIPSPNR25e1SVrMgQEmuKfIxWnbTX9OE3GE8sMUNa X-Received: by 2002:a05:6602:15cc:: with SMTP id f12mr15952815iow.2.1635675580274; Sun, 31 Oct 2021 03:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635675580; cv=none; d=google.com; s=arc-20160816; b=IxLHnlaBb0WIo3S0+0rpu4b8H0lkYJFDNFBCPfmZuBqI7S9Ml7T/Z6Lcm/dfjRjV8W 9aRK+EjbxGpWYoGuKbOTP4TRbOo3tXt6FnDl9V1OL2T0xkAeNJM4yvBrfK1TTBarVo6b cobGYYo06GSFljafIolDuNs3+sVzUt/ZmgzR81USCtyOwZW+P38IAChFm6udptGG9yH+ UhwuZPzDg49mqcreroVykVDrL3nTWQD+kZRSxu6iryk8bP7d5EsFza58odmjWl4TM3Gn 7O6DwQDXiyN4uFM7ic9ALPEJRQ4MOnlpOY6tMtH9JcmkvqE+WaTjTTFHYBlaLBGUvb0D EcDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=JzHdHJlbHhuYY33VjvFtkANtOHHDGM4IHZMWFqy4M/Q=; b=0KGgGdiWv6pBLD29xrn9zp6WU+NGzcytEqxvZUuBTdepOgwmuhjFVERDQLreuaxvOV Zl+BtkirZOYmsJWODCCMIiLkeAZlOBVMDXcMcXaF8mk/X6ZCYMofuUXCge26Dm5qfW18 zwQQ1vC13j+2JohIWgYmqR5cboq15j5IZl1hFNVgHLDGUGlEuOiqcrrkk7df6b8QrPOl W3Ye3+axDBUCUrx0YVHrojirqgwpyp75Lhw0N6ABcWEFkS3/pzEQPv9G8j0uxiKljzV2 7GH9v5S63WH6bMXmuToeuB/S4QRkLtNIUVwAf5mQKpaO2f/VsWzwGJtTYE0Uq8GB5I5r /42A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=JJwpCNQn; dkim=neutral (no key) header.i=@linutronix.de header.b=wPhA+6Yl; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si15393646jag.18.2021.10.31.03.19.12; Sun, 31 Oct 2021 03:19:40 -0700 (PDT) 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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=JJwpCNQn; dkim=neutral (no key) header.i=@linutronix.de header.b=wPhA+6Yl; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbhJaKTB (ORCPT + 99 others); Sun, 31 Oct 2021 06:19:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbhJaKS7 (ORCPT ); Sun, 31 Oct 2021 06:18:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CE1BC061570; Sun, 31 Oct 2021 03:16:27 -0700 (PDT) Date: Sun, 31 Oct 2021 10:16:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1635675385; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JzHdHJlbHhuYY33VjvFtkANtOHHDGM4IHZMWFqy4M/Q=; b=JJwpCNQnAVnclfOizdf8ZoYm1wHEYHyzhsi0+7EOT5N8Kj14TNqoD6nWBLH0OfwAsYjbfr QA01H1he1lVuSGpRBB3hGI3kWGHhF0XpKDQWr33I5QERdMlpcmPYhlJpttzU90sNHnk5Da 8ulriR6d3v8BqItKSHuTtUVZ3eZmCXWtIqULTZHZizOGSH4WJS3Zy7z9GqP7JzQJxLoDmI uLw7hTtNYPmOqTw7uG0/JekjWvWbbomLaMCinpf/yQfCXv7QyNwdkjVN2aY38F0WGWivzM eWQK52wMe9w+TcUQdOD5kqqlzN1sp7vMcb4gq3O+cCsNKSSAaG0Dl68ojxvzkA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1635675385; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JzHdHJlbHhuYY33VjvFtkANtOHHDGM4IHZMWFqy4M/Q=; b=wPhA+6Yln8yBKbUWEBn5w4/r9EHtynh5EdF0aYr+5tTWKPt6y1qCEIUgxPi50rRN2Iaxyk i4fy9bvArzfyLGDg== From: "tip-bot2 for Vincent Guittot" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/fair: Remove sysctl_sched_migration_cost condition Cc: "Peter Zijlstra (Intel)" , Vincent Guittot , Dietmar Eggemann , Mel Gorman , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20211019123537.17146-5-vincent.guittot@linaro.org> References: <20211019123537.17146-5-vincent.guittot@linaro.org> MIME-Version: 1.0 Message-ID: <163567538466.626.13781105021301301557.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: c5b0a7eefc70150caf23e37bc9d639c68c87a097 Gitweb: https://git.kernel.org/tip/c5b0a7eefc70150caf23e37bc9d639c68c87a097 Author: Vincent Guittot AuthorDate: Tue, 19 Oct 2021 14:35:36 +02:00 Committer: Peter Zijlstra CommitterDate: Sun, 31 Oct 2021 11:11:38 +01:00 sched/fair: Remove sysctl_sched_migration_cost condition With a default value of 500us, sysctl_sched_migration_cost is significanlty higher than the cost of load_balance. Remove the condition and rely on the sd->max_newidle_lb_cost to abort newidle_balance. Suggested-by: Peter Zijlstra (Intel) Signed-off-by: Vincent Guittot Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Dietmar Eggemann Acked-by: Mel Gorman Link: https://lore.kernel.org/r/20211019123537.17146-5-vincent.guittot@linaro.org --- kernel/sched/fair.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e50fd75..57eae0e 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -10895,8 +10895,7 @@ static int newidle_balance(struct rq *this_rq, struct rq_flags *rf) rcu_read_lock(); sd = rcu_dereference_check_sched_domain(this_rq->sd); - if (this_rq->avg_idle < sysctl_sched_migration_cost || - !READ_ONCE(this_rq->rd->overload) || + if (!READ_ONCE(this_rq->rd->overload) || (sd && this_rq->avg_idle < sd->max_newidle_lb_cost)) { if (sd)