S4 Computer architecture · Practice
Performance evaluation and simulation
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 11 kinds solid
Check
The CPI's coefficient of variation across samples is 0.8. How many samples give a relative error of 0.05 at confidence z = 1.96?
Check
With 10000 samples, a coefficient of variation of 0.4 and z = 1.96, what's the relative error?
Check
How many hours does a simulator running at 20 thousand instructions a second take for 50 billion instructions?
Check
Three programs each do the same amount of work, at 50, 300 and 400 MFLOPS. What's the overall rate across all three?
Check
A CPI stack is base 0.5, branches 0.1, L2 hits 0.3 and memory 1.2. An optimization cuts the memory component to 0.3 of its size. What's the speedup?
Check
A CPI stack is base 0.5, branches 0.1, L2 0.3 and memory 1. What fraction of the time goes to memory stalls?
Check
SMARTS sampling must estimate CPI within 0.01 at confidence z = 3; the CPI's coefficient of variation across samples is 0.3, and each sample simulates 10000 instructions in detail at 100 000 instructions a second.
(a)
How many samples does it need?
(b)
How long does the detailed simulation take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A core's CPI stack is base 0.5, branch mispredictions 0.1, L2 hits 0.2 and memory 1.2.
(a)
What fraction of the time goes to memory?
(b)
What speedup does halving the memory part give?
Check
Samples for error 0.04, CoV 0.5, z = 1.96?
Check
Overall rate of two equal-work programs at 80 and 400 MFLOPS?
Check
Speedup from cutting memory to 0.7: stack 0.6, 0.1, 0.2, 1.5?
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