Improving kexec boot time
summary
Kernel boot time drops from about 4s to ~1s in tests by enabling deferred struct page init and applying parallel SMP boot so secondary CPUs bring themselves online together; HugeTLB tail-page work (HVO) avoids initializing ~260k identical tail struct pages per 1GiB hugepage and recovers ~3s, PCI-probe filtering saves ~120ms (~8%), and disabling purgatory saves ~200ms (~20% of downtime); remaining hotspots are ~300ms of ACPI and ~100ms of necessary struct-page init, leaving VM downtime around 1.5–2s.
AI-written summary · about
chapters (29)
- 0:00Introduction to boot time
- 1:04Why improve kernel boot time
- 4:30Live update vs live migration
- 6:15Measuring downtime and boot time
- 7:41Initial boot time breakdown
- 8:22Optimizing struct page initialization
- 9:03Understanding SMP boot process
- 10:29Parallelizing BP kick AP stage
- 11:32Results of parallel SMP boots
- 12:14Huge pages and boot time impact
- 13:15Huge page VM map optimization
- 14:20Final downtime and remaining challenges
- 15:21Purgatory and integrity checks
- 17:06PCI device filtering optimization
- 17:48ACPI operations and remaining bottlenecks
- 19:38Future work and upstream discussions
- 21:01ACPI CPU object initialization
- 22:04PCI state preservation across kexec
- 24:11Kexec boot methods and purgatory
- 25:57Struct page initialization details
- 27:03Lazy struct page initialization
- 28:07Asynchronous KVM and VCPU handling
- 30:13Passing state between kernels
- 34:10Standardized state passing framework
- 36:41Driver serialization and PCI challenges
- 37:22Keeping guest running during kexec
- 39:08EPT and memory slot challenges
- 40:10PKRAM and memory fragmentation
- 43:30Summary and closing remarks
related talks
24mSoftware Optimization for Early Linux Boot for Time Critical...
38mDeferred Memblocks Init for Boot Time Reduction
48mThe Cost of Security: Measuring and Reducing Boot-Time Impact
15mThe Practice Method to Speed Up 10x Boot-up Time for Guest in Alibaba Cloud
25mExploring Intel Sub-Page Protection in Context of Live Migration
20mSpeed Up Creation of a VM With Pass Through GPU
42mWhen the OS gets in the way
40mAchieving the Ultimate Performance with KVM
