⚡ Cache Thrashing 3D
STEP 1/7 CPU requests Block A & B. Both map to Slot 0.
⚡ FAST L1 BUS: 2.0 sec (~1 ns)
🐢 SLOW RAM BUS: 5.0 sec (~80 ns, 2.5x slower)
⚡ Fast L1 Transit: 2.0s
CPU CPU

Central Processing Unit

Executes loop instructions. Flashes the memory block currently requested or received.

Status: Ready
CACHE 2 Slots

Direct-Mapped L1 Cache

Has 2 physical sets. Both Block A & B map to Slot 0, leaving Slot 1 wasted!

Slot 0: [Empty]
RAM [A] [B]

Main Memory (DRAM)

High capacity, slow bus speed (~80 ns). Stores Blocks A and B.

Bus Delay: ~80 ns (5.0s transit)
🚨 COLLISION: Block B kicks out Block A!
Penalty: 0 ns