From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796136706; b=KsWE9BXanzlxXMEFsP7psiL+pus79FyWaZko70A2YahJZc9sosm5pjwQsbwoUDeKlwQC A56BRalUzJ9REWLri/0Ks2RF/JI0DiJelouJ2vx5ZWkha6d3pppkuTreQ2AgLj4WXDw6P PHSzZBgnLYsX11suGivgNZFJHslM/Wyk2r6Ki2j5wdUlCcN6GejRJF9dyMjE396IPnf+E ctlW1rO/ldh1We1lNw9+EylhOBBSzVCcj4TR/r+qk0lk1ZMUp4CA10dN3GcT97aX+SeQ/ /oJzN8JR0OYvOiMW+falpKMfmKXSiGTFKdA7OgC7ZYAUUgTLlF7AZX3enUescc+OJLw== 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=2S5ulWZexFeFqW5RMGFNHGJhV0E58nhIi9pfIRc96IknOwz7/P5q65uYqg1JovRvwkA4 fRJe7rLnmBrLMTELAM5739BpSCq+K235RiZSc3tb2oyCKu70rAbLwjEVUz8+6Oa/bukqB WGzuFWoOXFwNnlBJAQhTK+apPuf5M8JHhWsBNwtnX5VDomwHeQrXkbtKHXbZnRZFDdvKI BA+nK8QfVR7j5If6PSsjxGBSMsD55c9Wzk/h+l8/8gJK7B8532dydSGMn45WgSWALtICg iwyM1+BQUf2tYkyF8OAie8cPFH9RfPxRdsg6Kmk1A+Ip9BIquDsqoV4whU833m9YDMg== 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.160.181 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (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 CBAE3606A31A for ; Tue, 1 Dec 2026 14:51:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CBAE3606A31A 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-qt1-f181.google.com with SMTP id d75a77b69052e-5569551d19dso131474611cf.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=1WSzqPETG35q6HBxSnzmzxk+hVvn0FoBt/aqYWcSgbPmRObiduWWvNLNnAP5sH3MiY 5rNH3vM7hiFtHx2NbBZvAoIM1g3bumXSmfX6j2Vm2pdkXTn1x4cz4DfNYQfrjtXw5ipR pIHB1ktl5UjqUr9HNwDZ1owuJvvEWFQ/bkKxgTtd0S/fUO36bOi+JBzcDwA4jEVY4CTU BMCpwU9SZKux6OS/k2+d4KVPqJBJueplLRibT6g5o3ScHF2+nCfFt+pcSodzNUpW8hfp 93wO4vBHaiYq0OW1xlLGb/3OPTBcTNBe9o+f3Y20V0wvsgufbDyyHVE1/vV16F5hXtU6 nACA== X-Forwarded-Encrypted: i=1; AL+hErHgn5DWmZUSpRrz/mTSNczdmLEORPtOXqnahFAeUhi1H76pFUwpzWSnIneiI0VeuoGvBHzTHwKtB65S+vk=@vger.kernel.org X-Gm-Message-State: APuU4Z8L9j+agOtmF+NoPrZbTzsZuFbv+PWszx7haqgtTuzhKNt/xooA LopcNq5dF9eiarbKaDzaBKnUWN0tFI1x7TVWdsTTuXWj5HM06qlyw3eBhsV1jYx6jg0= X-Gm-Gg: AZFdTZfnNS/LPVpibALhRp9YlTht5xEy4CHe/ASR4whJKMg4Tsml87Br+kpGy0uJ3B7 npwFf3YqSEzw1q+D01dZ1mLVbKHpxmDXJIUEMRk6xLJafFGR40gjmfzE81wBU79xDW1bQYjiNnp dWoyWubuc7NAyHv2ESI3bCOmA0II0o4w86Jj3TFuoGVR1EsKh+I/BmmtCtzi6sP7/QdQRzuggYU aJukHC/UwTbKC09H3Tm8aNiCSziECJQiLTOc0vNG8cmLvMDDjkyIYHkNTWWdxhoNKjLV9jvVq3Q wa6qeSfrwE9oDyFREANgqILMEbdgMuGjka24x7sCKoccCjUuASh58yVgBHh4GTUiQxaB5mMflox B4RGkghglZVnb4FId+S7Je48BnYb1eY+bfHkZwiu7D5bUDzKHHtUKjEvtisy24RQnBfbWfdQs1S phuq7/G/NMWVLsbvtkZEthgeL1vaTfmuW5T7dM8z3MU5SKCzP5s+u00lsh51qXFIEAKMa3i7I3t QO1VSexmTlcr33eRwwo14m6YeMZlr+zlgZzmT8cnwnicRwV5NroZPsFs+8nstrBMiIDBQi11S7c jTP/OiUcM1UNsNBf4iY6eU7NmJRHM6yFgs9/TMr1mQ88uIlPlWN7wo9Fn3izPF8hGSDH4Be/ixQ Nr1UTibA= 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-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="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