Перейти к содержимому

OSTEP Ch. 12–13: Every Address You Print Is Fake

James Software Tips

0:00 / 0:00

OSTEP Ch. 12–13: Every Address You Print Is Fake

38 просмотров · 2 нед. назад
James Software Tips
51 подписчик
38 просмотров · 2 нед. назад
Every pointer you have ever printed is a virtual address. Two OSTEP chapters in one video: an animated read of the Chapter 12 dialogue on memory virtualization, then Chapter 13 (The Abstraction: Address Spaces) page by page, from early single-program machines to the address space every process gets today. As a kernel engineer, I fill in what the book skips. The on-screen cards cover stack vs heap, what happens when they meet, how process A's load from address 0 lands at physical 320KB, what a TLB is, and what malloc(100e6) actually does. Operating Systems: Three Easy Pieces (free online): https://pages.cs.wisc.edu/~remzi/OSTEP/ Chapter 12 dialogue (PDF): https://pages.cs.wisc.edu/~remzi/OSTE... Chapter 13 (PDF): https://pages.cs.wisc.edu/~remzi/OSTE... Chapters 0:00 A Dialogue on Memory Virtualization (Ch. 12, animated) 2:58 Chapter 13 recap 3:50 Intro 5:07 13.1 Early systems 6:27 13.2 Multiprogramming and time sharing 9:38 13.3 The address space 13:32 13.4 Goals: transparency, efficiency, protection 17:24 13.5 Summary 18:15 Aside: every address you see is virtual The three goals of virtual memory Transparency: the program can't tell its memory is virtualized. Efficiency: little extra time or space, with hardware help like the TLB (translation lookaside buffer). Protection: one process can't read or write another's memory, or the OS's. Next up: the Chapter 13 homework with free, pmap and a memory-hungry program. #operatingsystems #systemsprogramming #ostep #virtualmemory #computerscience