Linux Memory Management at Scale: Under the Hood
summary
Explains how PSI pressure metrics plus a user-space early-killer (IndyMD) and cgroup v2 memory.low/memory.min protection let systems preemptively kill or throttle background jobs before the kernel OOM fires, dramatically reducing recovery from minute-scale stalls to seconds; describes deploying Btrfs with swap-file support, kernel patches (queued for ~5.3) for better protection, IO-latency throttling and credit accounting, and claims these primitives run fleet-wide at Facebook and successfully isolate leaks and preserve workload latency.
AI-written summary · about
chapters (20)
- 0:00Intro
- 1:16Overview
- 2:18Talk within a talk
- 2:37Scaling concerns
- 3:26Why Cgroups
- 7:28Priority inversions
- 10:02Ext4 Priority inversions
- 12:56Different types of memory
- 16:13Swap
- 18:59Ome Killer
- 22:10How does reclaim work
- 25:05Running out of physical memory
- 29:30Pre ohm detection
- 30:49Pop Quiz
- 34:43Memory Limits
- 37:20EveryText
- 40:25Base OS Layer
- 43:09Roles
- 44:59Protection
- 46:09Production Success
related talks
18mIO and cgroups, the Current and Future Work
01h 36mLinux Memory Management and Containers
01h 36mTutorial: Linux Memory Management and Containers
26mLet's demystify memory
41mLies Programmers Believe about Memory
39mMM101: Introduction to Linux Memory Management
51mIntroduction to Memory Management in Linux
21mPreview: Operating Systems
