HugeTLB file preservation across live update
Hi all,
I would like to propose the topic of HugeTLB file preservation across live update for discussion at the upcoming LSF/MM/BPF summit.
Background
==========
Support for performing a live update was recently added to the kernel via the Live Update Orchestrator (LUO) subsystem [0]. Live update allows a full kernel update over kexec without terminating running workloads. The main target is live updating the hypervisor without terminating VMs.
For more information on live update and LUO, see its kernel documentation [1], the LUO patchset [0], or this LPC 2025 presentation [2].
MEMFD preservation
==================
MEMFD is the first file type that added support for live update. This support was merged with the LUO series. The memfd preservation code can be found in mm/memfd_luo.c [3].
MEMFD can use pages backed by shmem or HugeTLB. The live update support in mainline currently only works with shmem-backed MEMFDs.
HugeTLB preservation
====================
While shmem support for live update is useful for many things, using it for VM memory (and other memory-intensive workloads) is inefficient. The next step for MEMFD support for live update is to allow preserving HugeTLB-backed files.
Note that we do not attempt to preserve the whole HugeTLB file system. We only preserve the memory pages for the files specified by userspace. The HugeTLB file is re-created fresh on the next kernel and the pages are inserted back in. This lets us keep the maintenance footprint smaller.
Current status
--------------
This support was sent out on the list as an RFC [4] in December 2025, and was also presented at LPC 2025 [5] in the Live Update microconference.
While the patchset has got some initial reviews from live update maintainers, it has not yet had any review from HugeTLB developers or maintainers.
Goals of the discussion
-----------------------
This session will aim to present the topic, explain why it is needed, show how the support works, and most importantly, collect feedback on how to proceed with this work.
PS: if any HugeTLB developers or maintainers are reading this, it would be great to have your initial thoughts on the RFC [4] so I can present a more polished patchset at the conference and make the most of the discussion.
Key attendees
=============
Live update:
- Alexander Graf
- David Matlack
- Jason Gunthorpe
- Mike Rapoport
- Pasha Tatashin
HugeTLB:
- David Hildenbrand
- Muchun Song
- Oscar Salvador
References
==========
[0] https://lore.kernel.org/linux-mm/[email protected]/T/#u
[1] https://docs.kernel.org/core-api/liveupdate.html
[2] https://lpc.events/event/19/contributions/2052/
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/mm/memfd_luo.c
[4] https://lore.kernel.org/linux-mm/[email protected]/T/#u
[5] https://lpc.events/event/19/contributions/2044/
Signature · 2 lines
Regards, Pratyush Yadav
Quoted 4 lines · Pratyush Yadav
Hi all,
I would like to propose the topic of HugeTLB file preservation across
+1
Quoted 52 lines
live update for discussion at the upcoming LSF/MM/BPF summit.
Background
==========Support for performing a live update was recently added to the kernel via the Live Update Orchestrator (LUO) subsystem [0]. Live update allows a full kernel update over kexec without terminating running workloads. The main target is live updating the hypervisor without terminating VMs.
For more information on live update and LUO, see its kernel documentation [1], the LUO patchset [0], or this LPC 2025 presentation [2].
MEMFD preservation
==================MEMFD is the first file type that added support for live update. This support was merged with the LUO series. The memfd preservation code can be found in
mm/memfd_luo.c[3].MEMFD can use pages backed by shmem or HugeTLB. The live update support in mainline currently only works with shmem-backed MEMFDs.
HugeTLB preservation
====================While shmem support for live update is useful for many things, using it for VM memory (and other memory-intensive workloads) is inefficient. The next step for MEMFD support for live update is to allow preserving HugeTLB-backed files.
Note that we do not attempt to preserve the whole HugeTLB file system. We only preserve the memory pages for the files specified by userspace. The HugeTLB file is re-created fresh on the next kernel and the pages are inserted back in. This lets us keep the maintenance footprint smaller.
Current status
--------------This support was sent out on the list as an RFC [4] in December 2025, and was also presented at LPC 2025 [5] in the Live Update microconference.
While the patchset has got some initial reviews from live update maintainers, it has not yet had any review from HugeTLB developers or maintainers.
Goals of the discussion
-----------------------
Quoted 8 lines
This session will aim to present the topic, explain why it is needed, show how the support works, and most importantly, collect feedback on how to proceed with this work.
PS: if any HugeTLB developers or maintainers are reading this, it would be great to have your initial thoughts on the RFC [4] so I can present a more polished patchset at the conference and make the most of the discussion.
Thank you Pratyush for proposing this topic. A few more thoughts:
While the discussion should be about memfd+hugetlb support, the long term goal is to make this work as an enabler for guestmemfd+hugetlb preservation support.
Pasha
Quoted 29 lines
Key attendees
=============Live update:
- Alexander Graf
- David Matlack
- Jason Gunthorpe
- Mike Rapoport
- Pasha TatashinHugeTLB:
- David Hildenbrand
- Muchun Song
- Oscar SalvadorReferences
==========[0] https://lore.kernel.org/linux-mm/[email protected]/T/#u
[1] https://docs.kernel.org/core-api/liveupdate.html
[2] https://lpc.events/event/19/contributions/2052/
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/mm/memfd_luo.c
[4] https://lore.kernel.org/linux-mm/[email protected]/T/#u
[5] https://lpc.events/event/19/contributions/2044/--
Regards,
Pratyush Yadav
Hi Pasha,
Quoted 2 lines · Pasha Tatashin
Quoted 1 line · Pratyush Yadav
[...]
Quoted 12 lines
Quoted 11 lines
Goals of the discussion
-----------------------This session will aim to present the topic, explain why it is needed, show how the support works, and most importantly, collect feedback on how to proceed with this work.
PS: if any HugeTLB developers or maintainers are reading this, it would be great to have your initial thoughts on the RFC [4] so I can present a more polished patchset at the conference and make the most of the discussion.
Quoted 4 lines
Thank you Pratyush for proposing this topic. A few more thoughts:
While the discussion should be about memfd+hugetlb support, the long term goal is to make this work as an enabler for guestmemfd+hugetlb preservation support.
Yes, I plan to use the HugeTLB work here as the backend for guest_memfd+hugetlb preservation. I can discuss some ideas for that in my talk if time permits. Or do you think that should be a separate talk?
[...]
Signature · 2 lines
Regards, Pratyush Yadav
Quoted 5 lines · Pratyush Yadav
Hi all,
I would like to propose the topic of HugeTLB file preservation across live update for discussion at the upcoming LSF/MM/BPF summit.
Quoted 7 lines
Background
==========Support for performing a live update was recently added to the kernel via the Live Update Orchestrator (LUO) subsystem [0]. Live update allows a full kernel update over kexec without terminating running workloads. The main target is live updating the hypervisor without terminating VMs.
Regarding KHO/LUO, while the main target is VMs, the materials above focus on updating the hypervisor itself. For physical machines, performing live updates is much more challenging due to the large number of physical devices—it's not clear how this is achieved. I’m very interested in this topic and would like to attend the conference to learn more about it.
Zhu Yanjun
Quoted 77 lines
For more information on live update and LUO, see its kernel documentation [1], the LUO patchset [0], or this LPC 2025 presentation [2].
MEMFD preservation
==================MEMFD is the first file type that added support for live update. This support was merged with the LUO series. The memfd preservation code can be found in
mm/memfd_luo.c[3].MEMFD can use pages backed by shmem or HugeTLB. The live update support in mainline currently only works with shmem-backed MEMFDs.
HugeTLB preservation
====================While shmem support for live update is useful for many things, using it for VM memory (and other memory-intensive workloads) is inefficient. The next step for MEMFD support for live update is to allow preserving HugeTLB-backed files.
Note that we do not attempt to preserve the whole HugeTLB file system. We only preserve the memory pages for the files specified by userspace. The HugeTLB file is re-created fresh on the next kernel and the pages are inserted back in. This lets us keep the maintenance footprint smaller.
Current status
--------------This support was sent out on the list as an RFC [4] in December 2025, and was also presented at LPC 2025 [5] in the Live Update microconference.
While the patchset has got some initial reviews from live update maintainers, it has not yet had any review from HugeTLB developers or maintainers.
Goals of the discussion
-----------------------This session will aim to present the topic, explain why it is needed, show how the support works, and most importantly, collect feedback on how to proceed with this work.
PS: if any HugeTLB developers or maintainers are reading this, it would be great to have your initial thoughts on the RFC [4] so I can present a more polished patchset at the conference and make the most of the discussion.
Key attendees
=============Live update:
- Alexander Graf
- David Matlack
- Jason Gunthorpe
- Mike Rapoport
- Pasha TatashinHugeTLB:
- David Hildenbrand
- Muchun Song
- Oscar SalvadorReferences
==========[0] https://lore.kernel.org/linux-mm/[email protected]/T/#u
[1] https://docs.kernel.org/core-api/liveupdate.html
[2] https://lpc.events/event/19/contributions/2052/
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/mm/memfd_luo.c
[4] https://lore.kernel.org/linux-mm/[email protected]/T/#u
[5] https://lpc.events/event/19/contributions/2044/