Re: [RFC PATCH] memory,memory_hotplug: allow restricting memory blocks to zone movable
From: Gregory Price
Date: Tue Jan 06 2026 - 14:59:57 EST
On Tue, Jan 06, 2026 at 07:38:54PM +0100, David Hildenbrand (Red Hat) wrote:
> On 1/6/26 19:06, Gregory Price wrote:
> > On Tue, Jan 06, 2026 at 06:52:11PM +0100, David Hildenbrand (Red Hat) wrote:
> > > On 1/6/26 17:58, Gregory Price wrote:
> >
> > Fair, I'll revist this once Hannes gets a chance to chime in.
> >
> > This was effective at getting the discussion started though :P
>
> Hehe, yes.
>
> Another thing to look into would be to provide a way for ndctl to just
> add+online the memory in one shot, without having to go back to walking
> memory blocks to online them etc.
>
I think it's the opposite: offline+remove needing to be done in one step
while holding the hotplug lock. Right now, I think you have to do
something like
daxctl offline-memory ...
daxctl destroy ...
You can't destroy and have it offline the memory for you in one go IIRC.
Maybe that's the ACTUAL fix here?
~Gregory