~/talk

Kernel Samepage Merging (KSM) at Meta and Future Improvements to KSM

links:none on file
slides:none on file

KSM is used at Meta to deduplicate millions of anonymous pages and saved ~6 GB on a 64 GB node (up to ~5 million pages in stress tests). Installation uses a new process control flag and systemd’s memory KSM, with tracing and /sys/kernel/mm/ksm counters added. Tuning pages to scan from 100 to 4–5k reduces missed sharing; smart scan skipping cuts scanned pages 10–20%, and an auto-tune advisor yields ~20–30% KSMD CPU savings.

AI-written summary · about

  1. 0:00Introduction to KSM
  2. 1:24What is Kernel Samepage Merging
  3. 2:11How KSM works internally
  4. 4:20Enabling KSM for applications
  5. 6:51System-wide KSM configuration
  6. 8:16Monitoring KSM operations
  7. 11:01KSM at Meta and Instagram
  8. 13:32Configuring KSM for production
  9. 15:00KSM metrics and memory savings
  10. 17:09Optimizing KSM scans with skip pages
  11. 18:54Auto-tuning KSM for efficiency
  12. 23:18Evaluating new workloads for KSM
  13. 26:53Advanced evaluation techniques
  14. 29:50Limitations and security concerns
  15. 31:00Recap of KSM features and improvements
  16. 32:28Q&A: KSM and DAMON integration
  17. 33:51Q&A: Auto-tuning based on memory pressure
  18. 34:54Q&A: KSM documentation
  19. 35:36Q&A: Auto-scaling implementation
  20. 36:19Q&A: KSM overhead and performance impact
  21. 37:47Q&A: Service-level performance changes
  22. 38:49Q&A: Kernel vs user space deduplication
  23. 40:15Q&A: KSM on large NUMA systems
  24. 41:40Q&A: KSM for hardware validation
  25. 42:06Q&A: KSM and memory accounting
~/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.