Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC8834C81 for ; Wed, 25 Feb 2026 07:39:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772005189; cv=none; b=SIQg5sOd1TB/NmCLz380gCBmKoFmz7YpniZDfpfANVNkJUh6bLRyW6uA+a6TrI6AUqRbMyLhrSxNU4oMLqXmoDoIJML2BI2hf1AI70cXIe4BHTo+P/q6BIMA0PGUNyQrx7bT6+1ya47AeZh8buJDiT1jyLtT+I177gtNCUNmnFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772005189; c=relaxed/simple; bh=7bHe2a4FztUvzdursLDGt+6eHsHGFrTDsc7bz8YyIi0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P9xwVPDMZg4EBYGZbkcsJ7elwkjq/1KZo/e9xakcDNtXA6SqjI3zQLbB2ytjwTi37Rv5UJQbBcL1BdDM+zSt/WESzbSONKwL+zSGA9FqeaWFawHIKYUvN051gu6m0/viep7E+6uO6H2sjqTZ3JNG9s1jf1lEHVp6+IdMdkF8Qdo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=A7f/N7A6; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=+dV5zEYx; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="A7f/N7A6"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="+dV5zEYx" Date: Wed, 25 Feb 2026 08:39:39 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772005181; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Yo9BaT/hbBfM1tHz8+z65a/UNqDdDm7FjaYioayxSgY=; b=A7f/N7A61RhSQNvvsNG15leQiP0SS5Zcle/iZVdbj6+CqKqRN2cD/oE8HMO97WR99/aYrJ EGq9YUx9lc2+HG9zrsTiDSkPq0qm9C6GA5rCgt9VCzq4rO2wGPz/AALlWuK7Dag+c4pz9I eZ/tDZdof4ih3O6Vn1xMXZV30TVE6v+mKxxNSzHlT6B1Te9PP7m5zoJTlW/c0LYhZ+oij5 y+3Ea2UEibcE6KZoWhETtSLU4SQoURK9Mgw96Fe/MJ25ABkF8F0rqfbLP3zRg8VaOB28w1 3Hv0UBp0a/M0uqWTGlImAwzKp5+Fg68sgfK+qjPuCqQPd+0SVlCFAmimyDUm6g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772005181; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Yo9BaT/hbBfM1tHz8+z65a/UNqDdDm7FjaYioayxSgY=; b=+dV5zEYxA+S8EG7+wvPp/2J5L03vVY/ng+zoYGCRt5NL0JdU62GU4+cyOmXmer9PpMnvNy VPxGI7CzGMkNwNDA== From: Sebastian Andrzej Siewior To: K Prateek Nayak Cc: Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, Peter Zijlstra , Darren Hart , Davidlohr Bueso , =?utf-8?B?QW5kcsOp?= Almeida Subject: Re: [RFC PATCH] futex: Dynamically allocate futex_queues depending on nr_node_ids Message-ID: <20260225073939.HLbwiSs5@linutronix.de> References: <20260128101358.20954-1-kprateek.nayak@amd.com> <20260224111342.-9hafXl5@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On 2026-02-25 09:06:08 [+0530], K Prateek Nayak wrote: > Hello Sebastian, Hi Prateek, > On 2/24/2026 4:43 PM, Sebastian Andrzej Siewior wrote: > > My question was initially is 1024 for max-nodes something that people > > really use. It was introduced as of > > https://lore.kernel.org/all/alpine.DEB.2.00.1003101537330.30724@chino.kir.corp.google.com/ > > > > but it looks odd. It might just one or two machines which are left :) > > I have it on good faith that some EPYC user on distro kernels turn on > "L3 as NUMA" option which currently results into 32 NUMA nodes on our > largest configuration. > > Adding a little bit more margin for CXL nodes should make even > CONFIG_NODES_SHIFT=6 pretty sane default for most real-word configs. > I don't think we can go more than 10 or so CXL nodes considering the > number of PCIe lanes unless there are more creative ways to attach > tiered memory that appear as a NUMA node. > > I'm not sure if Intel has similar crazy combination but NODES_SHIFT=6 > can accommodate (16 socket * SNC-3) + up to 16 CXL nodes so it should > be fine for most distro users too? Okay. According to Kconfig, this is the default for X86_64. The 10 gets set by MAXSMP. This option raises the NR_CPUS_DEFAULT to 8192. That might the overkill. What would be a sane value for NR_CPUS_DEFAULT? I don't have anything that exceeds 3 digits but I also don't have anything with more than 4 nodes ;) Sebastian