Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore advanced memory management techniques in this 17-minute Linux Plumbers Conference technical talk focusing on folio restructuring for huge page support in guest_memfd to enhance Confidential Computing (CoCo) virtual machine performance. Delve into the complexities of implementing huge page support through HugeTLB and Transparent Huge Pages from the buddy allocator, examining how page restructuring enables per-page user tracking via struct page refcounts. Analyze the similarities and differences between guest_memfd folio restructuring and THP page restructuring for other use cases, while investigating potential extensions to existing folio restructuring mechanisms. Examine critical technical challenges including folio merging strategies for CoCo VMs without memory deallocation, extending restructuring capabilities to 1GB pages despite xas_split_alloc() limitations, and adapting folio_split() functionality for HugeTLB while preserving HugeTLB Vmemmap Optimization. Consider advanced optimization scenarios such as non-uniform splitting with HVO, direct re-optimization from 1GB to 2MB pages, alternative refcounting solutions beyond page splitting, and improved page user tracking methods beyond traditional refcounts.
Syllabus
Folio Restructuring for Huge Pages in guest_memfd - Ackerley Tng
Taught by
Linux Plumbers Conference