Thread (137 messages) 137 messages, 11 authors, 2025-10-09

Re: [PATCH v3 29/30] luo: allow preserving memfd

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2025-09-02 11:39:02
Also in: linux-doc, linux-fsdevel, linux-mm, lkml

On Mon, Sep 01, 2025 at 07:02:46PM +0000, Pasha Tatashin wrote:
quoted
quoted
quoted
quoted
This really wants some luo helper

'luo alloc array'
'luo restore array'
'luo free array'
We can just add kho_{preserve,restore}_vmalloc(). I've drafted it here:
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/log/?h=kho/vmalloc/v1
The patch looks okay to me, but it doesn't support holes in vmap
areas. While that is likely acceptable for vmalloc, it could be a
problem if we want to preserve memfd with holes and using vmap
preservation as a method, which would require a different approach.
Still, this would help with preserving memfd.
I agree. I think we should do it the other way round. Build a sparse
array first, and then use that to build vmap preservation. Our emails
Yes, sparse array support would help both: vmalloc and memfd preservation.
Why? vmalloc is always full popoulated, no sparseness..

And again in real systems we expect memfd to be fully populated too.

I wouldn't invest any time in something like this right now. Just be
inefficient if there is sparseness for some reason.

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help