From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AB6D606A320 for ; Tue, 1 Dec 2026 15:03:50 +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 kanga.kvack.org (Postfix) id 304626B05E4; Tue, 1 Dec 2026 10:03:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2B59B6B05E5; Tue, 1 Dec 2026 10:03:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 17C7E6B05E6; Tue, 1 Dec 2026 10:03:49 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id D83D16B05E4 for ; Tue, 1 Dec 2026 10:03:48 -0500 (EST) Received: from smtpin24.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay10.hostedemail.com (Postfix) with ESMTP id C7533C0F3C for ; Tue, 1 Dec 2026 15:03:47 +0000 (UTC) X-FDA: 85495733694.24.DB09941 Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by imf29.hostedemail.com (Postfix) with ESMTP id E4A22120018 for ; Tue, 1 Dec 2026 15:03:45 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=CTSLQs9X; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf29.hostedemail.com: domain of ljs@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=ljs@kernel.org ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796137426; b=nN2p55zTXePYGI5Jj+jNBTd4RiV8UlLsrJ8HxCldhzpCtG0c/HnMbBe1qfDRy46jXuNfpq ux9xgwYHVTO80cw+idExAv/uCyFmXhdks/zlGZDyu48Om64vr0edvaF1v/57IX1WQJb8xF fwgy9jn0FBXGOBcSLtS60ejYuxBML9Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796137426; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=HEJ07l7ZSOd3nxFU+3UY78PmSphnwiCyt6CSzPQFMxw=; b=sLLo8we4d/vm4mAwd37RMRuMNCMkEg3JotMylOMAwRIt8jyOMznx1I6v1LH2I15xS/aqzm 2luyRoDBkVxNy4jqwPOTT/bdW4/IYBTXaDccvMNI7vNiYn+El7nGu9H/Cq6VQykB3wWtvG h4kuOSAQp7hfoZWxQsmgj8ZVaJM69aw= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20260515 header.b=CTSLQs9X; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf29.hostedemail.com: domain of ljs@kernel.org designates 172.105.4.254 as permitted sender) smtp.mailfrom=ljs@kernel.org Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 5C02B60603; Tue, 1 Dec 2026 15:03:45 +0000 (UTC) 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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <179613669459.412063.2372288091171323325.b4-reply@b4> X-Stat-Signature: jqx47d567bgxsmkcm7a3h8cs56c56x9s X-Rspamd-Queue-Id: E4A22120018 X-Rspamd-Server: rspam02 X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Rspam-User: X-HE-Tag: 1796137425-234247 X-HE-Meta: U2FsdGVkX19Xco8Km2XEYw227RbEfe1uiU/hv4eF/nr3ntHo9VRPLMoci9oYjGL5r80uXFZ9w0jsJQzIAhBPKlLATy6X191r+0t5PXuqZeFg6sAWaAvk/8Ppok8w5nok8XafGzFlCsaWyeXxqQwPCPoni8P7Vh1mVjyzOZCY+3R6Ir5i8Sn0cvHTK0GHtmBBEZ2jF8hh3C94Xg38nKckRXRw7/PdMidDjOxSdKzVBu+gKdFQXACoaiz1owcj4cQoQcPCZz5aASojvEV9iIpyzdE4ghYiurrNRRuxx+tXXnzCi6/ZxQ6auDO/eDHlMoQkUI5QaMFneBpLFkznBUT1poJUQ5LRrUJER3OMINmczsxyl+RKY6R1BiTrIRx+FFHv2dFyg6hejYlVFENuGSFdKsHhORFtLyS8UuYpE4oWN4iXl87l9UV6MX45X0akzf0rfv5FknFiuQal5b1n8r/tPr+qr68fKFUeQtHr9yoNR9x7fo34bdbgd3nEjuiVRfWqw70SoDyfwLmjrCE7JPEezWIkkg7wmMiZnMsO9r+Gu18Kvsjjq2WDj2fZTMaP6Ba6CNtvWdeUYWRJUs5E6HIRB2Yv+XbzAjzs5RplbSAUu5HiBVqrLfXQYV593Kt08ThTZOfIvQIi9jj1f5GAsEqji704bNAzyyfiir1IP6Nqp3eNmtwa/6fCUlqQqsBKOvZ23k988MNHJQbcVNX5kkBQPg8AI29c2S81UazBd3J27DOX6qVZOMKixoV6cbPeuckRfpoGNMILm0XetZD+Uhbha8Yb+9ciJ9ImShGOorm6J33EdoQdkb86LYDKouO90Nq2EHIE7OGIRdHM8WN8cNlc2KStWfFSm1CNnnabYBr2w0HYfTQ0fbdHPw8GLM0E+EXjPDIsR8NqoTUHtCVkVCY/dg1aP0zGxv70uXHoIqzrCJ1WNS0nJsJZ7dE+uR0LTsDbi/KWw3QWIFxeD+kRKny cjqrpwrL 6LeJfRM9VukQQyQhaIou+p+Z/dtNxWPXlBmaFI4m1ddAOHffUHd2d+lJqti4/40G3HGm/qWbzvebIfrhMSMj8rw84qGEJPV/qFEKZGLrTTop/cPoJESJLw0mQtxsCJebCKoi/z3+rs8AbMLl9PBGry2nx3EEVPV7750hmEeJfTdKj6TJohs0f+sBcMe2sa8PnYEuRf3mRbdtds34wVMjwxtqxURfEYo9fAQ1kO5RsPxevU+cOzdMwXsVkbZv02BXxblQbWwTJj1O7o+pMzwO7d6F3UywRRW15a7qyIeR3U1uOmy3Yf50Ox1WVbYwAhbEg9np0wq8id2PyRL1GD5Rkz7evAWAIH7wXYv2A3NWU7G9GVfKr/tpRsb0xStRUrd6CkAqQzvzbwvFrEK0Bu9F7l4FoXHKHY4vgQ4fySzeeLIdMxdaBVceGC+veIQwkzLxOhAzfM8qmPcI0d5AzW2VAFqbGMx7/o1myyeAbgpAo2zu4mAIeCgh/zH2Z1vVkHa730yzX/ormGXBv1N/2YeKwdmHJ4jFwW4oZBRtisi1tzyNtORHtSkZtNvoKN3oy8v5qTHZigOL0x0Hggact7j4ijCfoe/NAghN8XCQ8rzikB4L1+/DYaYsiciAp/Q== Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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