Linux Memory Management and Containers
Talkat ContainerCon @ OSS EU 2023 · on Thursday, 2023-09-21· at 11:00· Room 0A (Floor 0), Abandoibarra Etorb., 4, 48011 Bilbao, Bizkaia, Spain·
summary
Covers concrete Linux behavior: cgroups v2 maps Docker/Podman/Kubernetes flags to kernel files so --memory sets memory.max, --memory-reservation writes memory.low, and memory.swap.max = memory.swap − memory. Demonstrations use atop and the use_mem tool to show page cache growing to ~10 GB, tmpfs and shm allocations of 4 GB, repeated 5 GB mallocs triggering swap and an OOM kill, and a Pod with 50 MiB limit that crashloops when use_mem exhausts memory; swappiness defaults to 60 and OOM selection follows the per-process oom_score.
AI-written summary · about
chapters (4)
- 0:00Linux memory management intro
- 27:35Detailed Linux memory management
- 1:07:23Containers memory with cgroups
- 1:34:39Summary & Q&A
related talks
01h 36mTutorial: Linux Memory Management and Containers
26mLet's demystify memory
27mWhen Linux Memory Accounting Goes Wrong
39mMM101: Introduction to Linux Memory Management
51mIntroduction to Memory Management in Linux
41mLies Programmers Believe about Memory
33mLinux Container Internals
40mInspecting and Optimizing Memory Usage in Linux
