From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796136706; b=DQgmlMUN0VJADanTFIWYbu2mDCQz9RhDlQfh7RA76b95Z/RVWzkUiGhbEAOTrCcIA3UJ mTbwpX4SqfwQtrYhuXVnUg4Y9VZW8I2uWxCNRHNo39TebfOq1L7TTgFiUhNDqOuaHBiJ3 hrmETHXzE0CPzZxIMLwrB7Gcu8yXkv2gKQGeUXrnvH47hFz0JUtX7EWabvpLeVNr97H8W BvM+A0bWaePssDn7M2XriQgSczv68ddijkNO/FXLGq2y2AfXvPEAngrNNokwjigaft643 6NvBz1sKQma6Q3MtOMkqCAMJg7I09X1pN9GsXS0X6MDRWWWhXB7SHcGH+xcVot+5GAg== 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=rb9rDT47a6QSZfnyx94t4ZN5+8nSaCAL/CKyx2ME5blMnsIS49nFYOcuLWhGx16HJMMo KE8SBozgeq/sQv3Rz4ZPRk0Rz/4z/VWqdZtslafY0i0u6fhqEdKVefozfCHZv8L3h02cB SD35Y/glsIWjRzBeUh7FVmdHISqGcFXh/YQvQfBjhwMHLJIOIzi75zXPkHtkUaVqu8GPI d6H+/zkZPAKDUjslaaz/Uy0R/93B110xINUslXk2DRrcu2oEyRGx3yUY6Px7nENhWz9ZC 6SDNKmbAFSl/uM2xaBKA3P8FRptyD83KlOZFAFoQD626K4XabBnKuRtBw8N3m+j9zTw== 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.173 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (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 CFA03606A320 for ; Tue, 1 Dec 2026 14:51:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CFA03606A320 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-f173.google.com with SMTP id af79cd13be357-93a40a9a01aso1460519885a.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=UJjgF+tUERNpx4kJAYbJg2YvAiUT6fOCw/8eAcUJwYCfr/gMxHeKKdIAMHsIkHA8NG AuD8wU32Q754kdlSileZkphdA8r1kmS3T2ki+AoUkX318/y5dDC7jxO4AduzuB2O5EhR Nz66H9PeiZQOlMRzB+Pq9fWU588IJ8ifqKhhsRLhWWx9thT27WOUkR3KWpNqB/v43eYD F6WDFuIOZ9rSxgZtU0z5k/vxIJ2lmGFhStyB18vrySZtRXfzNBgajvc+krk7wFQlTS5n HkMlpF75xigTWQrXKu3raVzo8VpazEEsZrMA/lE26eRFu19IFyi43mvvVxMU17RYzVJn +EdQ== X-Forwarded-Encrypted: i=1; AL+hErG4kiO4grveHhGNM0BHS7oQpebZ/68zEWhH6NXP23UjkUZTXLp2NOYKpyUzDK8sxph49djZtUWbRSaP0pqap3coYV4=@vger.kernel.org X-Gm-Message-State: APuU4Z9vz3pj0qz/z/3bWveof52z4lbKoKv5WyHOSk38m9xejmHSdTCD QBUBjKbE3qr+vcBDKwFF67TdfgjNxUC7hpH/HFnhtSFRcwUmOJLmyBq8bppOcaW30gM= X-Gm-Gg: AZFdTZfO2kg7zkFU0HSLNgH+EoQCc8RCa1kWOO25vwZD77y9ayxEHqxDbxn731VRyFg DvcetL+Vz8l/3wFDwycM3MMsBvR++6pLC300du6DILUMUre4LG3bBaz3K7oqFU1MlpcSIF8WYZr kDU7zx18Ew/aukkm0VhUZoZb6oiFiP71BqeMC3HthE3tGgnV0BNozq8P2IC++U72B0PW2I7nU8Q jtMi8JyCWyG18Qt3x0AzwxHnBD9if7i/zNQuzdJbNh6NMjyCXoaDvNbb5XfbRMLJ2d1rh+EBnvI whFthxB/UNPk1OyAKKfpNUwzZGuEu/kC4SRFJ7LS5FuuruxTZ84r6F+tIoHpp9ya0pv8fBjLqcL JOVY7KDvT3uMslfUCghiOmCthDRO0m1koYvESt0jdT2IFrtfFniZK+4JPH2qw4VmD8QPIFMKJpF MQWmo4cOYU524AIm1Vm+mLkeodVYRKAHjpTfEC+0DgsmavuYxNsqXTUWpV6oG82eV8MAbArq337 ZFN4PgdV7+6mByh2DsTARvUa9uNaWc+yV6YP+MywZ6m+rJN7DO9UJL9HL52dFz3e4ZqSnorY05n rzcpdOvFu16az1/4bgLzPSIYbR3P2FMfMlTqWlRE7U+bSPGheggSObtGJoKTzlO5Q6VASD8cJne s6w/llJk= 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-trace-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