Re: [PATCH 0/4] mm/mempolicy: Add memory hotplug support in weighted interleave

From: Gregory Price
Date: Fri Mar 07 2025 - 16:55:56 EST


On Fri, Mar 07, 2025 at 10:56:04AM -0500, Gregory Price wrote:
>
> I think the underlying issue you're dealing with is that the system is
> creating more nodes for you than it should.
>

Looking into this for other reasons, I think you are right that multiple
numa nodes can exist that cover the same memory - just different
regions.

I can see why you would want to hide the nodes that don't actively have
memory online, but i still have concerns for nodes that may come and
go and hiding this configuration from the user until memory arrives.

An example would be a DCD device where a node could add or remove memory
at any time. If you removed the last block of memory, the node would
disappear - but the block could come back at any time. That seems
problematic, as you might want to manage that node while no memory is
present.

~Gregory