Understanding Linux Process Memory Management: Virtual Address Spaces and Page Tables
By
0xkato
Hand-rolled, kettle-boiled, baked to perfection. Worth every minute at the bakery.
Summary
This article provides an educational deep dive into how Linux manages process memory, explaining the illusion of continuous memory that Linux creates for running programs. It covers virtual address spaces, page tables, memory allocation mechanisms, and how the kernel handles memory protection and security features like defenses against Meltdown vulnerabilities. The content walks through technical concepts including memory pages, address translation, and how to inspect memory mappings using /proc filesystem tools.
Key quotes
· 3 pulledLinux builds that illusion on the fly, one page at a time.
You run a program. It reads and writes addresses as if a giant, continuous slab of memory had been waiting there all along. It didn't.
This is a walk through what your process actually owns, what happens on the first touch of a byte, how protections and huge pages fit in, how to see the truth from /proc, and why modern kernels do a little extra dance to defend against Meltdown.
You might also wanna read
Understanding the Linux TTY Subsystem: History, Architecture, and Implementation
A comprehensive technical deep-dive into the TTY (teletype) subsystem in Linux and UNIX systems. The article traces the historical origins o
linusakesson.net·12d agoPop!_OS 24.04 LTS Beta Released with New COSMIC Desktop Environment
Pop!_OS 24.04 LTS beta is now available for download, featuring the new COSMIC desktop environment developed by System76. The beta release a
system76.com·8mo agoHow to Install Ubuntu Server 26.04 on Raspberry Pi: A Step-by-Step Guide
A practical guide for installing Ubuntu Server 26.04 on Raspberry Pi models. The article covers using Raspberry Pi Imager or direct download
ReactOS Achieves Experimental ARM64 Support, Boots on Apple Silicon via QEMU
ReactOS, the open-source project aiming for binary compatibility with Microsoft Windows, has achieved experimental support for running on 64
Flatpak to require systemd in next major version, dropping support for alternative init systems
Flatpak, a universal Linux app distribution system that previously prided itself on being distribution-agnostic (including support for non-s
Omarchy is not a Linux distribution — it's Arch Linux with DHH's personal dotfiles
The article criticizes omarchy, a project by DHH that markets itself as a Linux distribution. The author argues omarchy is not a true distro
