From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.178 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796136706; b=g4vg3vmQMS5NZ/GHP6hPvmu8Ka9OCCN/mfkNqmzIL2gydL/mcQ+FD/LB94RDv1laDOBz rHYmzPRT7VI8aCKdCUYlcJd5wCfgMLPe9nBXS4KlYnVjbn/WBDuuELY5cUdW/V7ItVxWm wZtnQUmJvBmlUNxnML3dT1EKl3PclANei8nGB9/tXKGdgmxRyPe5tZmCQtWQPldOD8f7S exJwegKaVMX8uuURQGF3vFq9/jSJNQCAkAU/0Z1wfop9mhqSzEBWLJdfRuAzE44WQ4rJp lSF6ajqnHo4ReiZNQTKwSvO2ioBS5Pl1cvoWkIf05j0HaYzpD9y723mXdepc8ja+8sw== 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=F8u/6HzduKGvHULVUxWEnLLgFesThDhA6Gdy1pGeo6Xx/5J152++ZePBEW9V7tnm0AUL FWNTcus5EtoG4JsbuO5PGLFaAJUkJ25o993/2NAHK5F8GfwNy30TrEu4jl0NrbVxIui0C oObWMV9hmm1lhFn6dNl+xVWs5zXKP1vN8MDnf/1Q2/mVLreMS7VbqWkknRCLlEMuB2BC4 mmLw1dLxsp3MRMaEfk9sSSMDqlxndEO/TGgDTheE4q39IaFyQ9/j43Zf8xiB/vWCYnWAH 8DY+Y5k376VIp1z4yPQ/q5XlNeU7jpc9rEsljIJ/oMe0wJYB+LrCXt14qGIX3gRwKiw== 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.178 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (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 D0B74606A322 for ; Tue, 1 Dec 2026 14:51:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D0B74606A322 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-f178.google.com with SMTP id af79cd13be357-9497a167a6aso1467380885a.1 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=TICz329qzCjl1fSMjlpfzLudS49zNQ/CBWRMxzawrLw3JKfe5tWTSkH4b/lElhQRnW TJq7xIzXUWx2xZOPZ3ykYDCw+DOwN7Bs2/HqOmjx1HXVUZrm9xwMJi/vDH4GMFT6YTUU 4PkaYzleS0Y6rRb2/WUZa41SVUN+mH+7KJbQCpKYx7TYUYketu7dDFbDHFsIozXIE12L ZFzJeIfEjlxu83BY0qHDOX0Vi4rVpX4s8Bu2hkma4Kzg97vIaMYsuQg7W1/pzbPqSmXN GS9ThLFfqQCrVcXjfX6VEqI/dntAXO92nbsSOxiPynnKGuVLPNiK7IZC+p9L8MNtJdKT rcWA== X-Forwarded-Encrypted: i=1; AL+hErHa0Uk0IcoEoRGumFToJGAc4gmO/HpSPWuuokdtutEUhHRqZM255TuE0RcP0+7B3A2Zy4g9T+DmC50H@vger.kernel.org X-Gm-Message-State: APuU4Z9JZ4ugStMeSbM0fv/ZUDr7IVsyTDFUwhYF3RZoE8UYs+WY+w5j 6fQ2EK5SnLKAskcEjWmKS2CvG9Z6IQjaq9+zEP61x2xL8YXYdRg981KNQdENXFXE2T4= X-Gm-Gg: AZFdTZdbXFy0XkSq77GX9A2n6K1MHtew7jzpPdqNcYKnS3Ia3y95bzphgKvNBEaZQWr X289uek6LMJCb6unw3NnLAYDgYUWTSfWYto6Cungkxbk5ms8PIKVCT94n0bfXbda4TFrS0GviWc jiQG19yJuSu3qIrx6hQLUU4AVxT2gXrI6XI0YCmxJo4+1kVuJ8Q3FqXRBle6aXmHK77ddWMo3T1 7XaAgNSSl/mAakhL19KyoQcIRkb6NoOYbD6CvXO8PFCTHH5vnF4b+j06z1PHx1098XzPgavw2OG VJsWRYecO/OmqNkZ7q54zxs56YDiOgg/nc2EKrXOBIMI3C8wtcQCyZK2btSc7TP4OS245nvEp3V TLeTmZGOfeDLrK38cdGyqRfXun0RAnYypi/8pEMxiyTdXwaUdKvIUcBLif3fwgwtdYLkOSPT4GB VYkpw8eKU+xtd1gqJoUCklDpYaRFuzN5ACfJklHxImzC7Tv4Gev0ufWoGB+J2x1n2alaT98wFYZ yjooLTihE7DvwKLPCn9fvI58MhKISaXXThI0kOcZLNSgqvYhc5eghhiZG+sNyvPqASrE5FCDLpk DUNzZpUBW6SsCQYlP6qAgxXpsPuJNC7ZmxUotLMbNEPvzEm4ZZVEGX9nB4crVchBE9TkLu0f5uG Pm1OUnG4= 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-mips@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