Lite / Independent Engineering Research / Week 21
Week 21: Memory hierarchy
This week you will
- Explain registers, caches, main memory and storage by latency and capacity.
- Split an address into tag, index and offset and predict hits and misses for an access pattern.
- Compute AMAT for one and two cache levels.
Lessons
- Locality and the memory hierarchy · about 40 min
Two loops add up the same million numbers. One is ten times slower. Same chip, same maths. What is different? - Inside a cache: tags, sets and ways · about 50 min
A cache holds a tiny fraction of memory. When the CPU asks for address 0x1F40, how does the cache know in one nanosecond whether it has it? - Average memory access time · about 40 min
A cache hits 95% of the time. Is that good? It depends entirely on what the other 5% cost.