r/coding 7h ago

Virtual Memory: Page Tables, TLBs, and Linux Internals

https://blog.codingconfessions.com/p/virtual-memory
0 Upvotes

1 comment sorted by

1

u/fagnerbrack 7h ago

One-minute summary:

A 25,000-word deep dive explains the topic through dialogues between a new process, Alloca, and the Kernel, with Key Takeaway boxes summarizing each section. It starts from first principles — isolation and protection — then covers the x86-64 layout, where only 48 bits translate, yielding 256 TiB that Linux splits evenly between user space and kernel mappings. It walks through text, data, BSS, the heap (grown via brk), the vast unmapped middle holding shared libraries and mmap regions, and the stack, then tackles hierarchical page tables, MMU and TLB behavior, demand paging, copy-on-write, page reclaim and swap, huge pages, TLB shootdowns, and NUMA placement. A 60-page PDF/EPUB version is also on sale.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually 👍
Click here for more info, I read all comments