C8 Computer organization · Practice
Measuring performance
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
The same program runs on processor A (CPI 1, 100 MHz) and on processor B (CPI 3, 450 MHz).
(a)
How many times faster is B than A? (A number below 1 means B is slower.)
(b)
What is B's rate in MIPS?
Check
A program's instructions are 0.5 ALU at 1 cycle, 0.2 loads at 5 cycles, and the rest branches at 2 cycles.
(a)
What is its average CPI?
(b)
What percentage of the cycles go to loads?
Check
A fraction 0.7 of a program's time is sped up by 2 times.
(a)
What is the overall speedup?
(b)
What is the largest speedup any improvement of that part could give?
Check
A fraction 0.75 of a program's time is in one routine. How many times faster must that routine get for the whole program to run 1.5 times faster?
Check
A new processor is 1.5, 2.5 and 1.1 times as fast as the old one on three benchmarks. What is the geometric-mean speedup?
Check
A microcontroller draws 50 mW at 16 MHz and averages a CPI of 2. How much energy does each instruction take?
Write units the way you normally would: 1.5 nJ, 1500 pJ and 0.0015 µJ are the same answer.
Check
Machine A: 2 GHz, CPI 1.2. Machine B: 3.5 GHz, CPI 2.5, running 0.8 times as many instructions.
(a)
How long does A take per instruction of its program?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What's B's speedup over A (below 1 if it's slower)?
Check
8 million instructions at CPI 1.2 on a 100 MHz clock: how long?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A fraction 0.3 is sped up 3 times. Overall speedup?
Check
What is the MIPS rating at CPI 1.6 and 72 MHz?
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 C8