This ensures that nearly all references can be found in smaller memories.
Temporal and spatial locality
This gives the allusion of a large, fast memory being presented to the processor
Temporal and Spatial Locality
In a memory hierarchy diagram, the _________ are put at the top while the ______ are put at the bottom
faster and smaller, slower and larger
Why is the memory hierarchy design crucial in recent multi-core processors?
CPU speed increases much faster memory speed, leading to the memory wall. Caches are needed to close this gap.
What does CPUs need to cope with its huge bandwidth demand?
multi-port caches
per-core L1/L2 caches
shared L3 cache
High-end microprocessors have _____ on chip cache.
> 10 MB
When a word/data is not found in the cache, a __________ occurs.
miss
What does the cache do when a miss occurs?
fetch from lower level in hierarchy that may be another cache or memory. Fetching other words within the block taking advantage of spatial locality
n-way = __________
n-blocks per set
If one block per set, the cache is
direct-mapped (1-way)
If the cache is 1 way but with all blocks inside it, its associativity is
fully associative
Immediately update lower levels of hierarchy
Write-through
Only update lower levels of hierarchy when an updated block is replaced
Write-back
Writing strategies use ___________ to make writes asynchronous.
write buffer
Fraction of cache access that result in a miss
Miss rate
cause of a miss: first reference to a block
Compulsory
cause of miss that blocks discarded and later retrieved
capacity
cause of miss: program makes repeated references to multiple addresses from different blocks that map to the same location in the cache
conflict
Average memory access time =
Hit time + Miss rate X Miss Penalty
misses per instruction =
miss rate X memory accesses/instruction
To reduce performance impact of misses
speculative and multithreaded processors may execute other instructions during miss
Reduces compulsory misses and Increases capacity and conflict misses, increases miss penalty
Larger block size
Increases hit time, increases power consumption
Larger total cache capacity to reduce miss rate
Reduces conflict misses and increases hit time, power consumption
Higher associativity