Tutorial: Linux Memory Management and Containers
Talkat Open Source Summit Europe 2023 · on Thursday, 2023-09-21· at 11:00· Room 0A (Floor 0), Abandoibarra Etorb., 4, 48011 Bilbao, Bizkaia, Spain·
summary
Covers how Linux demand paging, LRU page lists and NUMA zones drive swapping and OOM selection (page size typically 4K, swappiness default 60) and how container runtimes map those policies into cgroups v2 settings. Demonstrates live monitoring with atop and experiments using the repo’s use_mem program to reproduce leaks and a 50 MB-limited container that fills memory+swap and triggers OOM kill. Shows which Docker/Podman flags map to cgroup files (--memory, --memory-reservation, --memory-swappiness, --cpuset-mems) and how Kubernetes limits/requests set OOM priorities.
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 36mLinux 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
36mTuning Memory and the Network Stack in Linux
