S4 Computer architecture · Practice
Cache performance and the three Cs
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 10 kinds solid
Check
L1 hits in 1 cycles and misses 0.03; L2 hits in 14 cycles and misses 0.4 locally; memory takes 150 cycles. What's the AMAT?
Check
L1 misses 0.02 of accesses; L2's local miss rate is 0.1. What's L2's global miss rate?
Check
A program makes 1.2 memory accesses per instruction; AMAT is 2.5 cycles and the hit time 2. How many stall cycles per instruction does memory add, with no overlap?
Check
A 32 KB cache misses 0.04 of the time. By a power law with exponent 0.5, what miss rate should a 512 KB cache have?
Check
A program streams once through 8 MB of data with 32-byte cache lines. How many compulsory misses does it take?
Check
A program has 8000 misses on a direct-mapped cache, 5000 on a fully associative one of the same size, and 2500 on an infinite cache. How many are conflict misses?
Check
An L1 hits in 1 cycles with a 0.03 miss rate; its L2 hits in 14 cycles with a local miss rate of 0.5; memory takes 150 cycles. There are 1.3 memory accesses per instruction, and misses don't overlap.
(a)
What is the AMAT?
(b)
What is the global L2 miss rate?
(c)
How many stall cycles per instruction does memory add?
Check
AMAT: L1 1 / 0.04, L2 20 / 0.5, memory 200?
Check
MPKI with 1.25 accesses per instruction and a 0.01 global miss rate?
Check
Capacity misses: DM 9000, FA 6000, infinite 3000?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in S4