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=1796137425; b=MU6vKNON2tAzmfxIg3mBs0UJwpMekGp392rdf/J8rwGXthGZ3KHIH4psUw++A2njxU0j el4BjyI6xFML0gxVvqdSkblKTPqhDm4s8hQVbPa9s6Grne0F9d9r5PCNUrBrfW/NXKwd3 4EacNFkOf6CieRAFXl3xveDwSiUcFTRW/DCCrAqNRXXOniSGWokfXjyg5jgm5oP1Rk+fZ J1JHjQa9hynqXgHCooRuqY7ZKjOM4tATq3LUKfrUkHVBDRsdKnpt15Rs8jln84WZKniL3 UREjqgEo2iv60D2qYXpYLD2og2OrVIjvYR6j1Wvg46qNM8HEpKkjz+EQovMyE/ISN0g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796137425; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=HEJ07l7ZSOd3nxFU+3UY78PmSphnwiCyt6CSzPQFMxw=; b=1sJ7hsyfQWIDXBA5GDgSbUh6EpDloq4f5j0ve/pkoWfK8MDeqa2r1BqVo4peyg3BzYMk xzsDKAAOfntRNhnW9KdIKvcP1xvvV2xEcOdssFzcxMwF4w0DfnOfZM5+dpfX51Vnhqolg unG+2p6nmNELCc60GENqsTiJcsYaDh8PDoobOz0GXMnkOTcxXYaBjLZAO/5Mkda4SVh9F oS8y+7M/ppXWuzD8PEGOd5x3ll15fPT8LDY1106n3KdsU6NojuZjUCjRnNx1k1TY2keyb JanlgVvWByuYMB+/TXhUTbaoaz7ZVyOZnraAK4/UazWN6r2DyM0ypc4w07nyIX5X1WQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CTSLQs9X; 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 8ACEF606A31A; Tue, 1 Dec 2026 15:03:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CTSLQs9X Received: by smtp.kernel.org (Postfix) with ESMTPSA id A773E1F00893; Tue, 1 Dec 2026 15:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796137425; bh=HEJ07l7ZSOd3nxFU+3UY78PmSphnwiCyt6CSzPQFMxw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=CTSLQs9XfMBRPVgM+qPjwMWU6XlJmzNtr1tsKQPLDoJB64w7JRTayj4gVPAoHUn5o /7/ousnN+a/L96l9Zozl0F3GwOXlHeQCupbwxH/sppYJChxFT1TFePPWG75J++2Oqb ttAf6cEQLlVBFiY2ts+cmiWmPdYS68VfKforZ+EclppnRFTh7+82N69oCVAxKmA6V3 G9MkbbygwPL9ui1YS13odZ1N0yC0Uh0WPazusfq6geuHirUaIMQsLNfWJdVyBT/WM0 jH4xv5HjEtL+tdH/eA86gjCxE1JByd1Okef26VdHckGEe2gNWqfmRyLfjJDqxE4fhe M9OOtE3opllTQ== Date: Tue, 1 Dec 2026 15:03:33 +0000 From: "Lorenzo Stoakes (ARM)" To: "Gregory Price (Meta)" Cc: Andrew Morton , Yury Norov , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Rasmus Villemoes , David Hildenbrand , 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 , 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> <20261128202010.18f36e612d57eda194a6c534@linux-foundation.org> <179613669459.412063.2372288091171323325.b4-reply@b4> X-Mailing-List: linux-acpi@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-Disposition: inline In-Reply-To: <179613669459.412063.2372288091171323325.b4-reply@b4> On Tue, Dec 01, 2026 at 09:51:34AM -0500, Gregory Price (Meta) wrote: > On 2026-11-28 20:20 -0800, Andrew Morton wrote: > > 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, > > > > the cpu bitmask has implications for whether the masks live on or > off the stack, so minimizing it is nice but it seems most everyone > bit that bullet a long time ago. > > We (Meta) recently ran into this because we *hadn't* converted to > using 8192 until more recently. I think everyone just shipped 8192 > to avoid "I bought a random box with +1 cpu and linux exploded". > > The nodemask is a bit less of an issue because it's already limited > to 1024, but you'll find the use of SCRATCH increasing as more node > work gets done - which is probably an indication of a bad pattern. > > That said, I found two issues that sashiko didn't and it wasn't > all that hard to see them. I suspect there are other silent changes > that this makes which aren't obvious. I fear the CPU side will be fraught with problems a lot more than the nodemask, especially given hotplug. So I think we should be conservative, especially while we are in the midst of getting 20M AI bug fix reports for everything :)) This nodemask change seems a lot more laser focused so less of a problem that way (though I stand by my requests re: cover letter detail). -- Cheers, Lorenzo