Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4667147pxu; Wed, 21 Oct 2020 02:05:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrkr3eHweGrqitNpe8S858GhZ4Qh0G0bhyC7zw4NUl6zWanHUgkdQe8MpFuxhqZfuoHau1 X-Received: by 2002:a17:906:340b:: with SMTP id c11mr2433124ejb.213.1603271140124; Wed, 21 Oct 2020 02:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603271140; cv=none; d=google.com; s=arc-20160816; b=K1/EXWWjJpaTSgOnegnUt4WiKNJZBSqQ/Ye+zi3rdX9+Jojdi//jwlsTlnPYg3FV8k tHBb7pjgl+3EosV1vfj/k5xDJsJ7UzQioNeMTHMR1nHkiMo44ZTBsI+z+xZngMbW8Wp0 Aupo/hJMo/uZhS2QpAlSPiUxWCf1hc2x7kIlLdTHf5apbPV1MwGUFyVSLNKu77Tlz1/n RR+QNAAn8wLjHOUueidQ0fdtZSkbRmZsgTaTzx/2FGKuzy4h4eTdrXA7cyFX9tgBOQPB bN2IzpAyHX/7oAxtAG+EjMbfq/IlY7OVjcjl3OYqYZNOjHb9w4RIJJtykaWE+ZaRyHkQ xwEw== 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 :message-id:date:in-reply-to:subject:cc:to:from:user-agent :references; bh=OyS0QgfijIwMB0nQTbuonBd/zymt2574Qgw/wE3cyl4=; b=OuVZtTYtJRTXxieh7B9BIDLQDuaLQYnyUa5nJwhm3g2Dx1vxNq4jjg/nvofV5J2zb/ JLlbvOWYfhjfObx8rzEcCzB3gY8ZTezrh4pArNCM+000n/UGkFefgcWC+dBGfZH+A1ys UVYj4Q+q5gRtqgZ7WBmRhofX+b1YomV3uZLC0qED7cIOFMUqfsnpFiSSeBbujdFvcaW1 rdod5WFmnNEi6bu9WLtXas06Sh2JKC5u6Ydmj4UBaoAWYZY7UKiaK1cwcEziIdAsVepR FAn3Af9WxWsCrpkOjiLe441AYQ+fIl/PD7FEwLN6YzU+nJjDfYF2XeqS+O2jdAqreTBn AM3w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si1022155edf.589.2020.10.21.02.05.17; Wed, 21 Oct 2020 02:05: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437302AbgJTSJm convert rfc822-to-8bit (ORCPT + 99 others); Tue, 20 Oct 2020 14:09:42 -0400 Received: from foss.arm.com ([217.140.110.172]:54862 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388059AbgJTSJm (ORCPT ); Tue, 20 Oct 2020 14:09:42 -0400 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 E179231B; Tue, 20 Oct 2020 11:09:41 -0700 (PDT) Received: from e113632-lin (e113632-lin.cambridge.arm.com [10.1.194.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1FE8F3F719; Tue, 20 Oct 2020 11:09:41 -0700 (PDT) References: <20201020173409.1266576-1-vanshikonda@os.amperecomputing.com> User-agent: mu4e 0.9.17; emacs 26.3 From: Valentin Schneider To: Vanshidhar Konda Cc: linux-arm-kernel@lists.infradead.org, patches@amperecomputing.com, linux-kernel@vger.kernel.org, Anshuman.Khandual@arm.com Subject: Re: [PATCH] arm64: NUMA: Kconfig: Increase max number of nodes In-reply-to: <20201020173409.1266576-1-vanshikonda@os.amperecomputing.com> Date: Tue, 20 Oct 2020 19:09:36 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Nit on the subject: this only increases the default, the max is still 2¹⁰. On 20/10/20 18:34, Vanshidhar Konda wrote: > The current arm64 max NUMA nodes default to 4. Today's arm64 systems can > reach or exceed 16. Increase the number to 64 (matching x86_64). > > Signed-off-by: Vanshidhar Konda > --- > arch/arm64/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 893130ce1626..3e69d3c981be 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -980,7 +980,7 @@ config NUMA > config NODES_SHIFT > int "Maximum NUMA Nodes (as a power of 2)" > range 1 10 > - default "2" > + default "6" This leads to more statically allocated memory for things like node to CPU maps (see uses of MAX_NUMNODES), but that shouldn't be too much of an issue. AIUI this also directly correlates to how many more page->flags bits are required: are we sure the max 10 works on any aarch64 platform? I'm genuinely asking here, given that I'm mostly a stranger to the mm world. The default should be something we're somewhat confident works everywhere. > depends on NEED_MULTIPLE_NODES > help > Specify the maximum number of NUMA Nodes available on the target