From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796136706; b=SwVtcJhGtxitL2/oV7yrXjorNzlVueXf5SYbKTXjWzjChfn8xcgyd1vXPUMpoO0V0f24 rglFPCqYbNA0uxSqz1zlKGs7jTveVCBIGo0A9KlE77EDhGkI3I1/DWUb/RRuJhH3JFbYJ FBfEXZlEc9yNA7cQHdbc90RsJaD7s2PrHi+d9FDJKoREjweaymPiMsMF3PLRaW3AYLDNI NQzGpRoyrShDVbwRjc2IQfWTURFYXWJvi/vQcQ6M6iQ0X1MB6vFln7aVXJj8FrWgLWXnQ x9LyqFU9i5+H9Pa5xJC0BDuhWb3mOkHs+4eMXgDWMUPmM+JKgkfh1JJ1IoTsHgC/qaQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796136706; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: MIME-Version:Content-Type:Content-Transfer-Encoding:Subject:From:To: Cc:In-Reply-To:References:Date:Message-Id:X-Mailer; bh=tWNUe/X9ZQ0BQGT1mJvrnXLh1o5PD6/Q43BRfopb8lc=; b=e9R2ESRZhTTKb3RciYqgkCYxO9d8zAgQ3CtF94lJ64IMZhIlUPvHNGN3pij6OJWnTKYE VaE1Soqrpq83+Aa+pCGHgjD2VCrOO2QU2LrreQQ/VcOjgZ3kkuzEYZ/IHkfmIXcpYYPMN qaFIaQNAMh29wHJviFCzdm5gc4MLSPqCOOfTVWxEAhD0lScj+UDojqWGhcXgHdtUrlAD5 DoNHZFFa0oqe8vcB5ihoSupgqBDPQSqyYJN2Y0NdawPldbzrblliuksSOOcD6aqbFQVPS xecCDRLvzDQLMLTa2kgQ6tJavzyGCnb8OPMg+ZbHfPLDwumjqYt23jiibijMZpMb4fg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass header.d=gourry.net header.i=@gourry.net header.a=rsa-sha256 header.s=google header.b=uyE4xU7m; arc=none smtp.remote-ip=209.85.222.172 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4BBB606A327 for ; Tue, 1 Dec 2026 14:51:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D4BBB606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.a=rsa-sha256 header.s=google header.b=uyE4xU7m Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-93a40a9a01aso1460519185a.0 for ; Tue, 01 Dec 2026 06:51:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1796136705; x=1796741505; darn=vger.kernel.org; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:content-type:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=tWNUe/X9ZQ0BQGT1mJvrnXLh1o5PD6/Q43BRfopb8lc=; b=uyE4xU7mwXiJLbunxmPCsd0L7fWd5hSUbi3dabnGGTo+sZFKBw0NDD/u5GsXG6ZjFa b9Cp4iA6TEj0o2ThsJRJY97EZrG+RJG6Z9zTbLrMo8p5xJppGpBBAvO3tqFgzyDOVgcn 9AuEJ+eT51L1lBTcFQV/+wCMls+Aqfi/N0dpNYGyjEbye0doygthK4e6rsTnkl53qngD U41pMg2jR9WsF8k3lL6LPRsD39lEU+SY9Qubo3oCG0CTL9oA1ry3EmMuu1DedO9Rm4yH oqomjnBGuxfLuHyvvABZKEGClz8ljf8rGMdnud5T1045v80klQ2wGz3VhriMEdCmNJ/Z J5ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796136705; x=1796741505; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:content-type:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=tWNUe/X9ZQ0BQGT1mJvrnXLh1o5PD6/Q43BRfopb8lc=; b=PNbRiNnHLm9AOU6sGQ/FD5VmkJBh6PJ2Mce/MiHJD2XRewCQ5lNlgkxUEYBjl4S7im CWJf227e/FQVP86bC/Biid6Pjyy3eauG3AyiAy0xd4F0dQ8IrRvC0plkztdmNAPL0FxJ i3PuG4hRZPW56Gryk67f2aMtei9hqDWRnuVAr8ieV9N2i4+PYDksSvNQZJ6tVyHGgt3d 59wdWYXE1q7IS7u7aUbKfHh0idVOpeirrE2/L7KsvuuZdlGxjfThuBwJtODAP7wL2iZQ +gfyjHldMJkMSdVR7iRnaqY17Iy2fH4bpV9Ylu6FB6vIcliSL5vAQ4LB8lkymigqJJrq zG0w== X-Forwarded-Encrypted: i=1; AL+hErEJpAbhW25uc0MzdyTSrJuSF0F2dN6zcikJTqb8/1hx/AJVCAXjBc0BLjfsIY/ChQIhXJ/P2JBIrTlI6A==@vger.kernel.org X-Gm-Message-State: APuU4Z/p+8m48AmCXJ/vPJ61NZwEjUmf0wv7RumxS906zkUh7CaUiS05 2u+dZKjHOz1h3+FkmWy8qL4NEbIV44K6lR0Fi+EHmTGYomEa7n+kbFbc+GOueM2nAeo= X-Gm-Gg: AZFdTZfHJTGcwBDWpV/tNtFAAB+foLN9MpUxotwDKQ2CdnawNh5q67Oc4n7eYTIMkzu hj4XzXRD0ZXxaOkQIVroTvXkSuC9v0TQ1o+VP6cqy+8MCK9C2/wrXZxqcTReSiT34QPsqtDhAjx 6gV3yWEO0HW15yJ4SBud4kTwihRmog684/9Y6ErUvu+fHzo0gGOCmdM3a7s4IbXcDwiu3UDtsnm zDBLbjWmeBQwdCo+RNFAI5TH3dY0uuDzghe3aESSrSU/G9KIFM0cIFDRTR2AksWV7OxFyYed5+4 LlJJypZhLyC6R52zQ/2s2xbWNtYApQ5zmC07iRl66F3YjJy5b11cn0RCkiH3F/UfojkCpYnsqtg hNXskRmdTQU+z9VqWo/wnvp6NQKMX/mqp77MgHtMHK5eVIzikQ0saiuyarrqZOrqZSArjTG/73k AMP+zRl5BjkQiFEJ2pkEmR33lPtg7iqLUiexV0yxgWrIiarkfqHoUMlV0fgq6W7WqkQdeggm8aI g2QPwlsAk3m1FfNS7Qw3wA31+qtqiyShhae3oVMFDJIAQIJXAjGPOq9GQfoTGiJ+/558q/CasJ8 VGbAoj5yaA99qnBVtpBFG7ISpM8Ym9Kt71suS1H0Irc+q6RgtErFTOrwq5RfzYAxR6rVJnfc9Gw ymwSMZf4= X-Received: by 2002:ac8:5a4d:0:b0:535:1cee:dc42 with SMTP id d75a77b69052e-55d769c8d4dmr653988191cf.7.1796136704787; Tue, 01 Dec 2026 06:51:44 -0800 (PST) Received: from [192.168.50.231] (pool-71-191-145-202.washdc.fios.verizon.net. [71.191.145.202]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-55e040a5cd4sm17869141cf.10.2026.12.01.06.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 06:51:44 -0800 (PST) X-Mailing-List: linux-block@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="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 00/11] nodemask: switch to runtime nr_node_ids From: "Gregory Price (Meta)" To: Andrew Morton Cc: Yury Norov , 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 In-Reply-To: <20261128202010.18f36e612d57eda194a6c534@linux-foundation.org> References: <20261127230128.111933-1-ynorov@nvidia.com> <20261128154039.e898002e7af1e8af883c6c8a@linux-foundation.org> <20261128202010.18f36e612d57eda194a6c534@linux-foundation.org> Date: Tue, 01 Dec 2026 09:51:34 -0500 Message-Id: <179613669459.412063.2372288091171323325.b4-reply@b4> X-Mailer: b4 0.17-dev 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. -- ~Gregory