The Memory Hierarchy (cache, locality, the memory wall)
The Memory Hierarchy · Open board
The small, fast copies of memory a CPU keeps close, stacked in front of the huge, slow warehouse everyone calls RAM. Follows The CPU (fetch-decode-execute, the ISA, assembly), which left open how far the fetch step reaches for its data. This lesson is that gap, and the one thing you control about it.
Before you start.The CPU (fetch-decode-execute, the ISA, assembly) gave you the loop: fetch, decode, execute, using registers built into the chip. Almost every step eventually needs data from outside the chip, and how far away that data lives is the whole subject here. If a linked list is new, Linked Lists, Stacks & Queues in DSA shows it in one read.
Lesson 6 of 41 in How Computers Work
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.