October 17, 2026
Hitchhiker's Guide to Linux Memory Management
I’ve always learned how Linux’s memory management works in bits and pieces, never in a formal or focused way. Recently at work, I had to debug some OOM kills, and I felt like I struggled a lot because I didn’t have a solid foundation in Linux memory management. This guide distills what I’ve learned after doing some research.
Virtual Memory Every process has its own virtual address space. The OS and CPU translate virtual addresses into physical addresses, allowing memory to be backed by physical RAM and by disk through mechanisms such as swap.
Read more