What Is Linux Doing With My RAM?
summary
Explains how Linux accounts for RAM with concrete counters and behaviors: meminfo fields vs derived “used,” the raw proc/vmstat event counters, and how page cache, anonymous (mmap/anon) memory and kernel allocations sum to mem_total (example: a 32 GB machine has ~1% unaccounted). Describes reclaim flow (LRU active/inactive, PGSCAN/PGACTIVATE/PGSTEAL, swapin/out), working‑set detection, GPU accounting added recently, and debugging by sampling meminfo+vmstat every ~10s to distinguish genuine pressure from expected swapping.
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker background
- 1:23Understanding free command output
- 6:22User space vs kernel memory breakdown
- 12:21What is mem available counter
- 16:57Introduction to vmstat counters
- 19:49Memory reclaim and LRU lists
- 24:31Reclaim algorithm and counters
- 31:44Working set detection
- 32:46Debugging memory issues
- 35:15Summary and related resources
- 36:20Q&A session
