The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Mike Rapoport <rppt@kernel.org>
To: Gregory Price <gourry@gourry.net>
Cc: linux-mm@kvack.org, x86@kernel.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	driver-core@lists.linux.dev, kernel-team@meta.com,
	corbet@lwn.net, skhan@linuxfoundation.org,
	dave.hansen@linux.intel.com, luto@kernel.org,
	peterz@infradead.org, tglx@kernel.org, mingo@redhat.com,
	bp@alien8.de, hpa@zytor.com, rafael@kernel.org, lenb@kernel.org,
	gregkh@linuxfoundation.org, dakr@kernel.org,
	akpm@linux-foundation.org, rdunlap@infradead.org,
	feng.tang@linux.alibaba.com, dapeng1.mi@linux.intel.com,
	elver@google.com, kuba@kernel.org, ebiggers@kernel.org,
	lirongqing@baidu.com, paulmck@kernel.org, dave.jiang@intel.com,
	jic23@kernel.org, xueshuai@linux.alibaba.com,
	kai.huang@intel.com
Subject: Re: [RFC PATCH 1/3] mm/numa: add exclusive node pool and numa=standby boot parameter
Date: Thu, 2 Jul 2026 14:09:06 +0300	[thread overview]
Message-ID: <akZG0sb1pXFZQQqA@kernel.org> (raw)
In-Reply-To: <ajq2A9GUOBWjzYM6@gourry-fedora-PF4VCD3F>

On Tue, Jun 23, 2026 at 12:36:19PM -0400, Gregory Price wrote:
> On Sun, Jun 14, 2026 at 12:08:31PM +0300, Mike Rapoport wrote:
> > On Thu, Jun 11, 2026 at 10:04:01AM -0400, Gregory Price wrote:
> > > On Thu, Jun 11, 2026 at 12:00:17PM +0300, Mike Rapoport wrote:
> >  
> > > So really i think you're pointing out that futex_init() here probably
> > > shouldn't be using num_possible_nodes?
> > 
> > I'd rather say that num_possible_nodes() with and without CXL (or other
> > differentiated memory) has different semantics.
> > Maybe we need to add a new primitive for possible differentiated nodes and
> > keep num_possible_nodes() to mean "number of possible nodes with normal
> > memory".
> >  
> 
> We'd have to define "normal" here a little more discretely.
> 
> Normal = N_MEMORY at __init?
> Normal = N_MEMORY in the future?

Normal = not differentiated, no matter at __init or in the future.
I.e. memory that kernel will use with existing allocation primitives.

> We also use the possible_nodes() mask to allocate per-node pgdat, so
> the futex example is largely just another "hey look at this thing,
> I wonder what other stuff is out there".

Right, futex is only one example. My point is that with multiplication of
possible and not populated nodes the possible_nodes() mask may not reflect
adequately the limits its callers look for.

And that maybe it's time to audit possible_nodes() callers.
 
> ~Gregory

-- 
Sincerely yours,
Mike.

  reply	other threads:[~2026-07-02 11:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-10  1:45 [RFC PATCH 0/3] mm/numa: reserve standby NUMA nodes for runtime claiming Gregory Price
2026-06-10  1:45 ` [RFC PATCH 1/3] mm/numa: add exclusive node pool and numa=standby boot parameter Gregory Price
2026-06-11  9:00   ` Mike Rapoport
2026-06-11 14:04     ` Gregory Price
2026-06-14  9:08       ` Mike Rapoport
2026-06-23 16:36         ` Gregory Price
2026-07-02 11:09           ` Mike Rapoport [this message]
2026-07-02 14:43             ` Gregory Price
2026-06-10  1:45 ` [RFC PATCH 2/3] acpi/numa: add CONFIG_ACPI_NUMA_STANDBY_NODES Gregory Price
2026-06-10  1:45 ` [RFC PATCH 3/3] acpi/numa: add CONFIG_ACPI_NUMA_ADD_CFMWS_NODES Gregory Price

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=akZG0sb1pXFZQQqA@kernel.org \
    --to=rppt@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=bp@alien8.de \
    --cc=corbet@lwn.net \
    --cc=dakr@kernel.org \
    --cc=dapeng1.mi@linux.intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=dave.jiang@intel.com \
    --cc=driver-core@lists.linux.dev \
    --cc=ebiggers@kernel.org \
    --cc=elver@google.com \
    --cc=feng.tang@linux.alibaba.com \
    --cc=gourry@gourry.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=hpa@zytor.com \
    --cc=jic23@kernel.org \
    --cc=kai.huang@intel.com \
    --cc=kernel-team@meta.com \
    --cc=kuba@kernel.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lirongqing@baidu.com \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=paulmck@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rafael@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.org \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    --cc=xueshuai@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox