The memory hierarchy
Two loops read the same million numbers, the same number of times. Why does one take thirty times longer?
The same array, the same count of reads, and only the order they happen in changes. The panels trace the first twelve reads, show which level of memory answered them, and price the whole loop in cycles per read. Walking in a straight line keeps the bill small, and chasing scattered pointers multiplies it by tens.
Included with a plan
This lab is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
the lesson The Memory Hierarchy (cache, locality, the memory wall)
The whole idea this lab came from, told start to finish.
on the path Module 2 of 7 in How Computers Work: The machine runs a program
The lessons, boards and videos around this lab, in reading order.
see also The Log-Structured Merge-Tree (LSM-Tree) in Papers.