~/talk

Lessons Learned Building a Production Memory-Overcommit Solution

Talkat KVM Forum 2021 · 2021-09-15..09-16· [databases]
links:none on file
links:none on file
slides:none on file

A production control plane ties Linux memory management, cgroups and procfs to a hybrid strategy that first tries virtio balloon and only falls back to hypervisor swap, uses a constant-cost host-side page-tracker sampling mapped via cgroup to estimate working sets, keeps a small free buffer to speed up growth, and uses Linux 5.4 madvise/page-out hints to avoid migration-induced zeroing. The system runs in production, meaningfully reduces double-swap thrashing and improves reaction latency while accepting a modest loss in steady-state memory efficiency.

AI-written summary · about

  1. 0:00Intro
  2. 0:22Building a Practical MemoC Solution
  3. 1:15Basic Reclamation Techniques
  4. 2:58Double Swapping
  5. 4:16Hybrid Overcommit
  6. 5:07Overcommit Memory Buffer
  7. 6:15Memory Stats
  8. 8:07A Simple Memory Overcommit Algorithm
  9. 10:10Working Set Size (WSS)
  10. 16:20Live Migration (continued)
  11. 18:04Identify Swapped-out Pages
  12. 18:56Future Work
  13. 19:33Lessons Learned
~/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.