S4 Computer architecture · Practice
Problem set 11: designing computer systems
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 14 kinds solid
Check
A service handles 10000 requests a second, each executing 5 million instructions at a CPI of 1.5 on 3.5 GHz cores.
(a)
How many cores does it keep busy?
(b)
How many cores should it get to run at 60% utilization?
Check
A program misses 0.05 in a 2 MB cache. By the √2 rule, how big must the cache be to bring that to 0.02?
(a)
What size does it need?
Check
A chip runs at 3 GHz on 100 W with voltage tracking frequency (power ∝ ).
(a)
What clock does a 200 W budget allow?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
Requests arrive at 5000 a second and each takes 2 ms of a server's time (M/M/1 per server). The mean response time must stay under 25 ms.
(a)
What is the highest utilization each server can run at?
(b)
How many servers are needed?
Check
A weight-stationary 256 × 256 array should reach 0.5 utilization on single-tile passes (n to load, M + 2(n − 1) to stream).
(a)
What batch M does that need?
Check
A system needs 200 GB/s of memory bandwidth, from 8-byte channels at 4800 MT/s run at 70% of peak.
(a)
How many channels does it need?
Check
A database needs 100000 random reads a second. A disk does 150; an SSD does 500000.
(a)
How many disks would it need?
(b)
How many SSDs?
Check
Replicas are each available 0.99 of the time, independently; the service needs at least one, and must be down at most of the time (t = 4).
(a)
How many replicas does it need?
Check
256 nodes exchange data all-to-all, each sending 1 GB/s spread evenly over the others; links carry 100 GB/s.
(a)
How much traffic crosses the network's bisection, in both directions together?
(b)
How many bisection links does that need?
Check
A server draws 200 W and answers 500 queries a second, in a facility with PUE 1.5.
(a)
How much energy does each query cost?
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
Check
A server costs 4000 dollars and lasts 4 years; it draws 600 W on average in a facility with PUE 1.6, at 50 dollars per MWh.
(a)
What does its electricity cost over its life, in dollars?
(b)
What share of the server's total cost is electricity?
Check
A predictor table is shared by 4000 active branches; the chance a given branch aliases must stay under 0.05.
(a)
How many index bits does the table need (using )?
Check
An instruction path of 80 FO4 must run at 4 GHz in a process whose FO4 delay is 20 ps; each stage adds 3 FO4 of overhead.
(a)
How many FO4 does each cycle allow?
(b)
How many stages does it need?
Check
An inference runs 1 G multiply-accumulates at 0.5 pJ each and moves 500 MB at 100 pJ per byte; the service runs 100 inferences a second.
(a)
How much energy does each inference take?
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
(b)
What power does the service draw for it?
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