Cache Loom.
Trace an eviction, explain each miss and compare cache designs at equal capacity.
Cache layout
LRU replacementHits0
Misses0
Hit rate—
Ready
Address breakdown
Whole-trace experiment
Change the mapping
Same capacity and line size. Only associativity changes.
| Sets × ways | Misses | Miss rate |
|---|
Change the capacity
Fully associative LRU. A reuse distance below capacity gives a hit.
| Lines | Misses | Miss rate |
|---|
Move one memory block
Keep the trace order, byte offsets and cache unchanged. Move every reference to one block to an unused block in another set.
Access log
Newest firstStep through the trace to record an access.
| Step | Address | Set | Way | Result | Evicted tag | Reuse distance |
|---|