~/talk

The Challenges of Asynchronous Teardown of KVM Guests

Talkat KVM Forum 2022 · 2022-09-12..09-14· [devops-and-delivery]
links:none on file
slides:none on file

Large (multi‑TB) KVM guests can take minutes to free memory; a laptop benchmark shows ~13 GB/s so a 16 TB guest needs ~20 minutes to shut down. Multiple implementations are compared: background kernel thread cleanup (works but misaccounts CPU to cgroups), user‑thread cleanup in qemu (correct accounting, needs qemu patches), clone(CLONE_VM) cleaner process (opt‑in, kills share pid memory, preferred), and mmput_async (simple but controversial). The clone solution is implemented, mostly architecture‑independent, and works with libvirt without kernel changes.

AI-written summary · about

  1. 0:00Start
  2. 0:35Introduction and motivation
  3. 5:47Reboot-userspace thread
  4. 10:04Shutdown-user thread
~/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.