Cache LoomMemory systems lab

Cache Loom.

Trace an eviction, explain each miss and compare cache designs at equal capacity.

Cache layout

LRU replacement
Hits0
Misses0
Hit rate—
Cache sets and ways, showing resident tags
Ready

Address breakdown

Whole-trace experiment

Change the mapping

Same capacity and line size. Only associativity changes.

Sets × waysMissesMiss rate

Change the capacity

Fully associative LRU. A reuse distance below capacity gives a hit.

LinesMissesMiss 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 first

Step through the trace to record an access.