Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp347352iob; Wed, 11 May 2022 16:09:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxupvxXempeTaqpDUWxY15mjfah+vbCgjzYwz04TENmtftJfhi4A3ELSDoOSMUVsl1ZFt/u X-Received: by 2002:a63:70c:0:b0:3db:421b:59c8 with SMTP id 12-20020a63070c000000b003db421b59c8mr3056564pgh.262.1652310576445; Wed, 11 May 2022 16:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652310576; cv=none; d=google.com; s=arc-20160816; b=inuceHKc8/g+1pkG5p1LvzWPBe8iQPWtuOKD+5NRNXzuJYhx0XEr7Ez0b9AGDZewO2 b/NV8tgpe2rRUZljhJHSllDl5nHVgmmgOYgGt9NAfzm/f7e0zCYZkHxqiSX6xbOWCuFp PohmNYMdi31aemj1/+n/041l4eMda+XyncJZHPBpnj8kWZny/bHdlQc7ijv3R57MUm45 vVbx9UfbhOXcEFpVN7T0+9dpRqPbibR6F2FBhiM0z9A9dSRWN5/YbLdrl7i6Pc5Yc9d3 AU4fIzihndMPxyxKVI2Uw05j+ZNH/bx982HltACtME5yQ7bEUXeucllmP9KZLlb4GP0C A1Ng== 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=aTDQ5No3c+DHnm9PYKgHMx+ZY/5ag8yyrLWGQhsGgjk=; b=DHQfVgmRE8w9EKfSsslnA9mYwS8pp1o5C3ht8H0oN0G/3URct2+r0to4iIa11Xz1VW lwU6hhC3mYVaUlX6T09nijPz4+bkbiUCNjAZuCSTA9RNPPlw6stLcVeLJpHwXjxtqS7N gab91nEI2+sM8LvlFFS/RWYxud26ZgJ7btv6+a1CLTIFSQpVcciVPIdsHs/5oOfzHNbF cRJtRMTNHjyFzggPCHBl+HhxBdPzvjKtygBsqrc5ROLjsBe+vJH3F7m0OUnUqpn7vfvM qH7oF+kTVvZFQT7tb/XNk1gnJlJDnBNzBWy1LyWfnlmujPw5IPVvK99VvmgRNEzaf9SX 6SLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob11-20020a17090b390b00b001dc6391a6aasi1373832pjb.79.2022.05.11.16.09.23; Wed, 11 May 2022 16:09:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244791AbiEKOb2 (ORCPT + 99 others); Wed, 11 May 2022 10:31:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244746AbiEKObF (ORCPT ); Wed, 11 May 2022 10:31:05 -0400 Received: from outbound-smtp15.blacknight.com (outbound-smtp15.blacknight.com [46.22.139.232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D56C527CF1 for ; Wed, 11 May 2022 07:31:02 -0700 (PDT) Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp15.blacknight.com (Postfix) with ESMTPS id D62141C4E62 for ; Wed, 11 May 2022 15:31:00 +0100 (IST) Received: (qmail 6634 invoked from network); 11 May 2022 14:31:00 -0000 Received: from unknown (HELO morpheus.112glenside.lan) (mgorman@techsingularity.net@[84.203.198.246]) by 81.17.254.9 with ESMTPA; 11 May 2022 14:31:00 -0000 From: Mel Gorman To: Peter Zijlstra Cc: Ingo Molnar , Vincent Guittot , Valentin Schneider , Aubrey Li , LKML , Mel Gorman Subject: [PATCH 1/4] sched/numa: Initialise numa_migrate_retry Date: Wed, 11 May 2022 15:30:35 +0100 Message-Id: <20220511143038.4620-2-mgorman@techsingularity.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220511143038.4620-1-mgorman@techsingularity.net> References: <20220511143038.4620-1-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- kernel/sched/fair.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index d4bd299d67ab..867806a57119 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2873,6 +2873,7 @@ void init_numa_balancing(unsigned long clone_flags, struct task_struct *p) p->node_stamp = 0; p->numa_scan_seq = mm ? mm->numa_scan_seq : 0; p->numa_scan_period = sysctl_numa_balancing_scan_delay; + p->numa_migrate_retry = 0; /* Protect against double add, see task_tick_numa and task_numa_work */ p->numa_work.next = &p->numa_work; p->numa_faults = NULL; -- 2.34.1