S453 of 55
0 XP
  1. Hook
  2. Problems

S4 · Problem set 11

Problem set 11: designing computer systems

These problems size systems from requirements, the way an architect answers "how many, how big, how fast": cores for a request rate, bandwidth and cache for a working set, power and frequency for a budget, servers for a latency target, replicas for an availability target. Round counts up.

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 ∝ f3).

(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 10−t 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 1−(1−2−n)B−1≈1−e−(B−1)/2n)?

Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.

Practice

Keep practicing

14 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.