From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795926012; b=WirUrJk/0Dq3LlYjo1cSPgv9ZEk6UuEhSi6R+r6JbcrRKrZoN1vgAe+oZlxCLSMqtDiO 4M/kaCsVLPfrGLCSnY+Jv2JilPZUDlpbIPL98a3l4Tvyee1RcQmxqOslz8DS/2zqPSwS8 WnAcf0vE9WzwLaC4VaXJ8Z78ennalwUW/kEKaPIdC7jeKlMahcl5tX6V4CCurPp7yIYeV HqB/ydjZaXg0DiuvL+NB4cFRFA+kzNUpBylvv1jt5ENS6wuRGPD1WmNeJcK4eqabSjJcU Np+1u7qoqOoGrZs+1EBIMt2W5tbWQx/infDsHydAS6fj7pw/XJxHWxPA3rhv95Nsipg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795926012; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-Id: In-Reply-To:References:X-Mailer:Mime-Version:Content-Type: Content-Transfer-Encoding; bh=Gou8A6ar3VA4AsCPHRAJ5DpJhoXuYzrCKCuvGegg+bY=; b=u3UpKEkKfK5dJ3bAUjSNKv50F+WNUJmnizRV3wrXiWp9AwGbn1x3XN3jQD3WXzfqKM0w ItNkaJEpDbAHqstEF2ukWQIQO7c49+0cfra8Nm0lFRSz3Jq8MHiYiEcUTMYR3n/aWATv8 Ha05BjLazhvfCGV2oX4nk4WdqbWWnF1ClIKRYQ55zv2xJMaNV71FlR+xijO8SbQH6KMPa IvDd04bPYC8mUDxf+yll2Hd+FKP+fntFuPw9+4QepT1YA/zlJCjOPczuR9aCQIhZ/x6ia 1FD5bb46ADULKihXdKIMRo804wV3SOR4d1+7htoTiAq0zGl0KKTMReOxIqJ1nZ+LMqg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=xsOXg1z9; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F32A606A31C; Sun, 29 Nov 2026 04:20:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=xsOXg1z9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9112E1F000C1; Sun, 29 Nov 2026 04:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1795926011; bh=Gou8A6ar3VA4AsCPHRAJ5DpJhoXuYzrCKCuvGegg+bY=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=xsOXg1z9psBum7nbqMnTuk4k5tm/F+UcI9M/RcwNCTHjkaDz8ZrBUywjVexn6viVs Rx0Onds1gUdG+xFWrPHtTouqUoK4Dy9493177i3qr1JhpIH389jqC9x4kEr6bwLijq qJ751RDDiOI+BJnZ8WnThz9p1o+CNt4r7PuxH/lw= Date: Sat, 28 Nov 2026 20:20:10 -0800 From: Andrew Morton To: Yury Norov 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: <20261128202010.18f36e612d57eda194a6c534@linux-foundation.org> In-Reply-To: References: <20261127230128.111933-1-ynorov@nvidia.com> <20261128154039.e898002e7af1e8af883c6c8a@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 28 Nov 2026 22:01:46 -0500 Yury Norov wrote: > 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. :) I love it - you're a troll after my own heart. I guess we could try it as a standalone thing with lots of convincing justifications. Are you able to estimate the cost of these wasted resources? otoh, I'm sure our downstream have considered all this and have good reasons for these configurations so we should find out what those reasons are before adding shouty things to dmesg, ditto NR_CPUS? Who NR_CPUS Mainline default 64 RHEL 8192 SUSE 8192 Oracle UEK 8192 Ubuntu 8192 Debian 8192 Fedora 8192 AWS (Amazon Linux) 8192 Google (COS) 512 Microsoft (Azure Linux) 8192 Meta unknown Tencent (CubeSandbox) 128 Seems that as long as the machine gets nr_cpu_ids reasonably correct, the main cost here is one bit/cpu in the task_struct: 1k. Which is not insignificant.