~/talk

The Practice Method to Speed Up 10x Boot-up Time for Guest in Alibaba Cloud

Talkat KVM Forum 2020 · 2020-10-28..10-30· [web-performance]
name:Weinan Li
links:none on file
slides:none on file

Claim: pinning all guest RAM for passthrough GPUs is the bottleneck, and an async DMA map plus a water balloon driver that pre-claims ranges speeds boot ~10x in practice. QEMU defers full pinning, records ballooned PFNs into a host balloon page table, and incrementally maps released ranges; combining adjacent pages and using large (2MB) pages reduces vhost notifications. Measured result: QEMU init drops to ~7s with an 8GB initialized balloon and guest boot holds ~20s even at 300+ GB RAM.

AI-written summary · about

  1. 0:00Intro
  2. 0:20Agenda Background
  3. 0:51What is the problem? Dma_map all the guest memory when there is passthrough device
  4. 1:44Guest boot & QEMU initialization time vs memory size
  5. 3:44Options
  6. 5:50Architecture Overview
  7. 7:20virtio balloon communication Related functions and struct
  8. 8:15Balloon range tracking workflow
  9. 8:57Guest boot process with async dma map
  10. 11:05Optimization design
  11. 13:47Achievements
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.