Tutorvo

The Memory Hierarchy: Sizes, Latencies, Cycles to Time and Why Locality Matters

Lesson 1 of 815 minLab

This lesson is part of the course

In this lesson

You compare the levels of a fictional memory hierarchy by size and latency, turn cycles into time for a loop of 10,000 reads and see why reading an array in order needs so few trips to memory.

Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.

Lessons in this course

  1. The Memory Hierarchy: Sizes, Latencies, Cycles to Time and Why Locality MattersLab15 min Locked
  2. Address Bits: Offset, Index and Tag from Cache Size, Block Size and WaysLab15 min Locked
  3. A Direct-Mapped Cache on a Trace: Last Use of a Set, Stored Tag, Hit or MissLab15 min Locked
  4. Hit Rate and Miss Types: Compulsory vs Conflict Misses and the Best You Could ReachLab15 min Locked
  5. 2-Way Set-Associative with LRU: Two Ways per Set, Last-Use Times and the VictimLab15 min Locked
  6. Average Memory Access Time: Hit Time, Miss Rate, Miss Penalty and a Second LevelLab15 min Locked
  7. Write Policies: Write-Through vs Write-Back Traffic, Dirty Blocks and the Final FlushLab15 min Locked
  8. Comparing Cache Designs: Size × Block Size, Miss Penalty, AMAT per Design and a ChartLab15 min Locked