From nobody Wed Apr 29 08:09:57 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93242C43334 for ; Mon, 13 Jun 2022 08:44:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239877AbiFMIoR (ORCPT ); Mon, 13 Jun 2022 04:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239657AbiFMInf (ORCPT ); Mon, 13 Jun 2022 04:43:35 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CACC2650; Mon, 13 Jun 2022 01:43:34 -0700 (PDT) Date: Mon, 13 Jun 2022 08:43:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1655109813; 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=+KE9yFAhJkFSxdjlp8+j+ThbDbFONBGfonA0pKJzp54=; b=EKaWSJzpuW5/HnFf4wHmt/MtGF1wjwB2ATMAnsTEXS4rMo3XCyOD8/zzneFUNDvVqTI6WT 24d6ndeqSFrPQAU/eoV+aIpz94hxKG4dwOp/c0v6Vnl23fTIMHt7XmtLyBjE4fsafqkMVz 5W/grFHvLy3ieZ78d+msvw2voGyRnmxLASpDRfmDzBE48OroxL/kJ7s35CqW3Ff56xJqbg e2AFeAo9vIW8Uj1dGjaTo0e7gN8KKQGixdcqK+B9zE51EZpXARoh5sL+uNEHO14ZJGrYGT LjxQxEC24Xcl2BJN5TJo8s5SfL0TPISELAuKAlZuXDP74fwtpAIXZiMTI+6akQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1655109813; 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=+KE9yFAhJkFSxdjlp8+j+ThbDbFONBGfonA0pKJzp54=; b=w1rBCN8H75IKrLkUZ5bJF2Iz5Lby5LIPLvXCz2fUOCq84D/lAI+aEuSlh2SiXIpJzwgcQc EkiSZmXsy+laxRCA== From: "tip-bot2 for Mel Gorman" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/numa: Initialise numa_migrate_retry Cc: Mel Gorman , "Peter Zijlstra (Intel)" , K Prateek Nayak , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220520103519.1863-2-mgorman@techsingularity.net> References: <20220520103519.1863-2-mgorman@techsingularity.net> MIME-Version: 1.0 Message-ID: <165510981202.4207.14005671845758536625.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: quoted-printable 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: 70ce3ea9aa4ed901c8a90de667df5ef307766e71 Gitweb: https://git.kernel.org/tip/70ce3ea9aa4ed901c8a90de667df5ef30= 7766e71 Author: Mel Gorman AuthorDate: Fri, 20 May 2022 11:35:16 +01:00 Committer: Peter Zijlstra CommitterDate: Mon, 13 Jun 2022 10:29:59 +02:00 sched/numa: Initialise numa_migrate_retry On clone, numa_migrate_retry is inherited from the parent which means that the first NUMA placement of a task is non-deterministic. This affects when load balancing recognises numa tasks and whether to migrate "regular", "remote" or "all" tasks between NUMA scheduler domains. Signed-off-by: Mel Gorman Signed-off-by: Peter Zijlstra (Intel) Tested-by: K Prateek Nayak Link: https://lore.kernel.org/r/20220520103519.1863-2-mgorman@techsingulari= ty.net --- kernel/sched/fair.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 77b2048..51836ef 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2885,6 +2885,7 @@ void init_numa_balancing(unsigned long clone_flags, s= truct task_struct *p) p->node_stamp =3D 0; p->numa_scan_seq =3D mm ? mm->numa_scan_seq : 0; p->numa_scan_period =3D sysctl_numa_balancing_scan_delay; + p->numa_migrate_retry =3D 0; /* Protect against double add, see task_tick_numa and task_numa_work */ p->numa_work.next =3D &p->numa_work; p->numa_faults =3D NULL;