From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.209.19 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795921315; b=cl8uGuczZu4m6m08J/QW4NGIg0DC7wcAHOZGzsHZZ69lPPBXiMR1PtUWQ6AtkrQKMmjN 2ZZ0Nfv1DUXhQ4Gpn408JpQGOTie/c/znF2PukEX5h2poKUme7HpQqIMs5cFzu1TY07oy fZxvw7X+uNcls+QnnScjQgEyShxW5LJTA2E7I/T/vFRYa9sogFJJmIQint9uYkSmIywXc K4nfPc1ra8Cl7k6iNI6MqFbfQgca4urcHaTi5xP2Opi17DGfbwkSkhX0TZWQlTrUoS0xe e5tfzFZq7OuvJzcJ2htP8TB8rgIBaX7pFsMN8QoGLYqsTTFFaT8ja9MZ+lE/n+Tk/+A== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795921315; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:Content-Type:Content-Disposition: In-Reply-To:X-ClientProxiedBy:MIME-Version:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=A58DCb7pHmHyEhkTWh7U7hOsahDt6AV5p+E0Cwjs1A8=; b=lLKN2EteLpicjr9i98zyEwf0ciWljIHXK7dfAAkAqnaCfzwYAmLTXpV4c+QaxNQ/ezAX 3aSXug5Mc8zmAwiWwopF2WuzRGOgAnZcBzms48XC1WIUrPGMLK8tYWbqw1Me+o573qNhx Lxz3WUIIYVJpt7UK2od2V49QuFwXdSGuFxAUsw7Nk6OBny8tq3bdmEPL8tgD5YBAa6m6G fGo7PO/AGtXwp81M3yioi4O2DihNUOYkJW9b5NmBM1F6RqTjMvjbMg9WlPyCEHUD/UFZb HuM2yJg9NNsCNYJWI4nD3fFDzGQ2IQvjf+ne1yAFEXYQym7gCp97AGHU3xIcFh9VSAQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=ngkSHX1Q; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.209.19 Received: from PH8PR06CU001.outbound.protection.outlook.com (mail-westus3azon11012019.outbound.protection.outlook.com [40.107.209.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D85C8606A31C; Sun, 29 Nov 2026 03:01:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D85C8606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=ngkSHX1Q ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FL9hbUIyl+Jbs3Owf4XWJuJqC6AKewMAL8nD0gwCDN7fQtNKQbGaHngfaMvOgnKuPECt2Pc+AwZcZLSeizLnYcozRr9Nr3ZGKZ00r1/D8b3blow7Tkujn7I0YHWZXLRX2sIL8pVkiKZkZ2aIUnCnmv6jL0G+LZdXAHGbgMNdji9dQo0vRqaJBlMGhr0Srovcc0yaMNPp9A8q1EpsJTsGqyhJ5jMmPfMTgfjs1m70v3h7hU1p+Z+qhqt7M645fW1QTaGVvjFf87g2MGQj5g5F/806i4npCzo1wLa4eOmb095xX1RWgrsF7awzfPKAZeT1abvd9FEQt32csLNx/uh6Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=A58DCb7pHmHyEhkTWh7U7hOsahDt6AV5p+E0Cwjs1A8=; b=JQWGT6XhRKtMay/cK8frVQtONSJ0eJPaFg/aLWnEJ6LjpNG5ST1RiYiTnGOLQa09RWNtZkc0et8vN+xUyW5gpTFJQ1PB2k8QtwaKSGz0aoj1K3Mfh8M0iuImUpobpqsNcM52kt/PRWd9guLnT9tOfC9TqoPmxlIIM3adei4MOd4B9oD4+c1L41kfaEyStqB1KUP/Xg9VSJeJTGdXPu4h5tXnq/V6qPuvtKn6tnlXy1mmn2ZEY+mF3HhrqF2Q2W++J9IFcyEvE9UrQZV+rkf2wKZzqipwQdTXad8TsizD4/Nm1zaC6OkJd42qFkuOumxIKlTFD9qWDu+KYYkWYGNdzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A58DCb7pHmHyEhkTWh7U7hOsahDt6AV5p+E0Cwjs1A8=; b=ngkSHX1Q6K6Ywe5V6QOJ2XYhl0XNXDB145c/YjxlS02nVIjv0grGkhP1i6H4I5DkzUvRnAeaqK4XM/hqWR3h1dLysEYB9UUVIr5SabKFiiNq5BZ86qfEBSM6a2dPFkfeCax1j8jadBXzUXVLpbe28fcZXjeAJCpH5lTETx1mpgRV659LDM8mmHXWxw0FjxCcDERuLq4EvzyDdDx8sRw5xEU+vyI269+GqBhtM0tZo3BlAKE84INsWT5nZzZwJJti42wIQ075LMthDX7CiAamA+2421zXdA5s9ERRT1V0qBbwzME52Wef3AC/KRAfzjMuFSvWxjtJCPduQln8OBy/Ng== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from SN6PR12MB2814.namprd12.prod.outlook.com (2603:10b6:805:72::33) by SA1PR12MB7197.namprd12.prod.outlook.com (2603:10b6:806:2bd::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.6; Sun, 29 Nov 2026 03:01:49 +0000 Received: from SN6PR12MB2814.namprd12.prod.outlook.com ([fe80::9a18:413c:9702:8f59]) by SN6PR12MB2814.namprd12.prod.outlook.com ([fe80::9a18:413c:9702:8f59%6]) with mapi id 15.21.0662.007; Sun, 29 Nov 2026 03:01:49 +0000 Date: Sat, 28 Nov 2026 22:01:46 -0500 From: Yury Norov To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Rasmus Villemoes , David Hildenbrand , Gregory Price , Zi Yan , Joshua Hahn , Rakie Kim , Ying Huang , Muchun Song , Oscar Salvador , Johannes Weiner , Kairui Song , Thomas Bogendoerfer , "Rafael J. Wysocki" , Len Brown , Jens Axboe , Peter Zijlstra , Mel Gorman , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , linux-mips@vger.kernel.org, linux-acpi@vger.kernel.org, linux-block@vger.kernel.org, linux-trace-kernel@vger.kernel.org, "Liam R. Howlett" , Axel Rasmussen , Baolin Wang , Baoquan He , Barry Song , Linus Torvalds , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Qi Zheng , Shakeel Butt , Suren Baghdasaryan , Vlastimil Babka , Wei Xu , Yuanchu Xie , Yury Norov Subject: Re: [PATCH 00/11] nodemask: switch to runtime nr_node_ids Message-ID: References: <20261127230128.111933-1-ynorov@nvidia.com> <20261128154039.e898002e7af1e8af883c6c8a@linux-foundation.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261128154039.e898002e7af1e8af883c6c8a@linux-foundation.org> X-ClientProxiedBy: MN2PR16CA0064.namprd16.prod.outlook.com (2603:10b6:208:234::33) To SN6PR12MB2814.namprd12.prod.outlook.com (2603:10b6:805:72::33) X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR12MB2814:EE_|SA1PR12MB7197:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b5e3b19-c35b-4919-b03a-08df4dc51c1b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|366016|376014|7416014|1800799024|10070799003|6133799003|18002099003|22082099003|10067099003|261021121427099003|261102123227099003|4143699003|56012099006|11063799006|261022113327099003|261022105027099003|261021135927099003|261022075727099003|261026121527099003|261021123027099003|261026140227099003|261009223027099003|261028144727099003; X-Microsoft-Antispam-Message-Info: otJffj4kG4bkyIkt9+Pw/U/1RxaBgv1C9y+Q88YOYNzUDqhFvWhAfzWGjGmmdMvyH8fiS8ELBUT8xFxuo7SGghdpETfBmuTq/XKoGQiE/Eb5TCtoZNdYlCIlLqlASY5+zo2uRA1zhM/EVTFgWo+9NbX2G2md0OtxaIkltKzQSyYPpdk3No1bq1ddddIhLd01z9b0lOYMo2t1aq6zPC2E8zgeraW7iS3ddkNFeRJtchQejjFWtkOmXEF5iQIA31Hx3/AW/bC3Zz6hy0jzyD520/fZDo9tjlilWwW/cD9NDhuA93ZzZd4uApMSb0/C1v8KC3PWlk5u01tff7/FIzwC/AuaiIWRSgqRiT9WUcl15U5jX/oFDvoB5ozwM3t4a66kHuiG068tambT/lK1vK1p6YWS3XcKUdEdNhOPoVgqPcwHPlnCyfXmEAxPjmT3zk1fIGS1mj9ohmdhMu7keqe6YSaI4VCGV5jtidCthHho4dS5m4epLHJEmW/5FEAgviR8sKZukTQfYHKENuq317aiyFHeijvWQzR0eUbEg6CPiTHeqD6kvY5kQXDKnbo7nbOO3LaRI/FuftfZbTp/NA6O9zkm4qZG3sg5JhClNPI99tv6eZFZV54QanB/5dw5KAJv6GKH6GOvOSDmhvYbniirDSkQ2YEVAK6toVvpOvG5ZQQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB2814.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(23010399003)(366016)(376014)(7416014)(1800799024)(10070799003)(6133799003)(18002099003)(22082099003)(10067099003)(261021121427099003)(261102123227099003)(4143699003)(56012099006)(11063799006)(261022113327099003)(261022105027099003)(261021135927099003)(261022075727099003)(261026121527099003)(261021123027099003)(261026140227099003)(261009223027099003)(261028144727099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?PJzWZXdxS8JUon/8V6AO5vrn/Zw/ublmNh9CPVue55RAkRTVfpbe6Ji4vj5k?= =?us-ascii?Q?ARUA4IQQF00tMNoY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Tenant-Network-Message-Id: 7b5e3b19-c35b-4919-b03a-08df4dc51c1b X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2814.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2026 03:01:48.9459 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0NOdPVxPPtH5nJZ66QcFIIgWWsw+ZEthICWgBFHxU2iws4xE3zLedqKd+WQH6+xzRWIZv9qPrPThy35GKLFSjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7197 On Sat, Nov 28, 2026 at 03:40:39PM -0800, Andrew Morton wrote: From: Yury Norov To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Rasmus Villemoes , David Hildenbrand , Gregory Price , Zi Yan , Joshua Hahn , Rakie Kim , Ying Huang , Muchun Song , Oscar Salvador , Johannes Weiner , Kairui Song , Thomas Bogendoerfer , "Rafael J. Wysocki" , Len Brown , Jens Axboe , Peter Zijlstra , Mel Gorman , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , linux-mips@vger.kernel.org, linux-acpi@vger.kernel.org, linux-block@vger.kernel.org, linux-trace-kernel@vger.kernel.org, "Liam R. Howlett" , Axel Rasmussen , Baolin Wang , Baoquan He , Barry Song , Linus Torvalds , Lorenzo Stoakes , Michal Hocko , Mike Rapoport , Qi Zheng , Shakeel Butt , Suren Baghdasaryan , Vlastimil Babka , Wei Xu , Yuanchu Xie , Yury Norov Bcc: Subject: Re: [PATCH 00/11] nodemask: switch to runtime nr_node_ids Message-ID: Reply-To: In-Reply-To: <20261128154039.e898002e7af1e8af883c6c8a@linux-foundation.org> On Sat, Nov 28, 2026 at 03:40:39PM -0800, Andrew Morton wrote: > On Fri, 27 Nov 2026 18:01:17 -0500 Yury Norov wrote: > > > Nodemasks have a compile-time capacity of MAX_NUMNODES, and > > nr_node_ids describes the runtime node ID usage. > > > > Modern distros, like my Ubuntu, default MAX_NUMNODES to 1024, while the > > actual number of nodes is typically smaller. All nodemask functions > > currently refer to the MAX_NUMNODES, which adds a substantial overhead > > on every traversing operation. > > > > Thanks Yury, this is a worthy effort! Thanks Andrew, I'm glad you like this. > First thought: mainline Linux defaults x86_64 MAX_NUMNODES to 64. But > 99.9% of our users say "well that's crap, let's use X instead". I guess, 99% of our users don't even know that MAX_NUMNODES exists. I think they don't care, and they shouldn't. The real problem is that those major distros configure their kernels without common sense check. Even consumer oriented Ubuntu tunes the kernel knobs to full max where possible for no good reason. That's how we end up with the NR_CPUS == 8K and MAX_NUMNODES == 1K. In real life, if systems incorporating that many CPUS and memory nodes ever exist, they will likely run highly customized version of Linux, not something like stock Ubuntu or Fedora. So, in my opinion the mainline Linux makes better choice for an average setup than the distros do. > The below is unreliable and very approximate, but my LLM's scouring > turned up the following guesstimates: > > Who MAX_NUMNODES > RHEL 1024 > SUSE 1024 > Oracle 1024 > Ubuntu 1024 > Debian 1024 > Fedora 1024 > AWS ~1024 > Google ~64 > Microsoft ~1024 > Meta ~64-1024 > Tencent ~1024 Yeah... It's another interesting topic to estimate the bloat in kernels delivered to end users, comparing to what we've got in defconfig. > I suggest that we change mainline's default so what-we're-testing > better represents what-they're-using. This somewhat offtopic, but > wdyt? Would such a change affect this patchset? The patchset would not be affected. It switches to runtime number of nodes, which, to some extent, helps to mitigate insanely high MAX_NUMNODES bloat. The small/large nodemask sizes machinery borrowed from cpumasks allows the users who configure their MAX_NUMNODES to reasonably small values to have the API optimized at compile time. I would suggest another experiment. Let's on the system boot print a message like: The kernel is configured to support for up to 1024 NUMA nodes, while the actual number of nodes on this system is 2. This leaves 99.8% of the allocated resources unused. Please consider reconfiguring. We can show it, say, at 90% rate or higher, and wait until this will start showing up in the people's boot logs. :) > > This series switches the kernel to runtime length of nodemasks, which > > also saves up to 8K of .text for minimal config, and accelerates basic > > nodemask operations ~4x if MAX_NUMNODES == 1024 and nr_node_ids == 2. > > I'm saddened by how many instances of MAX_NUMNODES remain in the tree! > I'd love to see that become zero. But that would involve using > alloca() or its equivalents. I think alloc() is neat but I've always > lost that fight (LT), never really understood why. > > Series looks nice, applies cleanly for me. Sashiko said a thing > (https://sashiko.dev/#/patchset/20261127230128.111933-1-ynorov@nvidia.com). > I'll continue to monitor, see what reviewers have to say (please). Thanks for the feedback. Now waiting for more comments. Then will send v2 if needed or take it with bitmap-for-next (or with your -mm if you prefer). Thanks, Yury