S4 Computer architecture · Practice
Performance and the iron law
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
A program runs 2 billion instructions at a CPI of 0.8 on a 3 GHz core. How long does it take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A program is 0.5 ALU instructions at CPI 1.2, 0.25 loads and stores at CPI 3, and the rest branches at CPI 3. What's its CPI?
Check
Machine A runs a program as 1 billion instructions at CPI 1.2 and 3 GHz; machine B needs 1.3 billion instructions at CPI 1.5 and 2.5 GHz. What's B's speedup over A?
Check
A core with CPI 0.8 misses 0.005 times per instruction to a 120 ns memory. Its clock goes from 2 GHz to 2× that. What's the speedup?
Check
What's the MIPS rating of a 2 GHz core with a CPI of 1.25?
Check
A machine's speed ratios on three benchmarks are 1.5, 0.8 and 6. What's the geometric mean?
Check
A program executes 1 × 10⁹ instructions at a CPI of 0.8 on a 3 GHz core.
(a)
How long does it run?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
What MIPS rating does it get?
Check
A core with a base CPI of 0.5 misses to memory on 0.005 of its instructions; memory takes 100 ns, and the clock is 4 GHz.
(a)
What is its CPI?
(b)
How long does each instruction take on average?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Time for 1 billion instructions, CPI 0.9, 4 GHz?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Speedup from 2× the clock: CPI 0.7, 0.004 misses per instruction, 100 ns memory, 2.5 GHz?
Check
Geometric mean of 1.2, 0.9 and 4.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