S4 · Problem set 9
Problem set 9: datacenters, accelerators, near-data computing and dependability
These problems use lessons 39 to 49: warehouse-scale computers, domain-specific accelerators, near-data computing, the accelerator lab, dependability, storage and queueing, performance evaluation and the queueing lab. Take a year as 8760 hours.
Check
A kernel spends 0.5 of its time moving data; near-memory logic makes that 4 times faster at an overhead of 0.08 of the original time.
(a)
What speedup results?
(b)
What is the most any speedup of data movement gives?
Check
A resistive crossbar of 128 × 128 cells does one matrix-vector product every 50 ns for 8 nJ.
(a)
What multiply-accumulate rate is that?
(b)
What does each multiply-accumulate cost?
Write units the way you normally would: 1.5 fJ and 0.0015 pJ are the same answer.
Check
A 512 × 256 by 256 × 1000 matrix multiply runs on a 256 × 256 weight-stationary array (n cycles to load a tile, then M + 2(n − 1) to stream).
(a)
How many cycles does it take?
(b)
What utilization is that?
Check
A GPU SM has 65 536 registers and 64 warp slots. A kernel uses 48 registers per thread in blocks of 128 threads (shared memory isn't the limit).
(a)
How many blocks fit?
(b)
What occupancy is that?
Check
A machine peaks at 1000 GFLOP/s with 100 GB/s; a kernel does 100 G operations and moves 10 GB.
(a)
What rate does it attain?
(b)
How long does it take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A request fans out to 200 leaves, each slow with probability 0.002; hedging sends each leaf request to two independent replicas.
(a)
What fraction of requests are slow without hedging?
(b)
And with hedging?
Check
A server takes 2 ms per request (M/M/1); its load rises from 0.5 to 0.95 utilization.
(a)
What is the mean response time before?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
By what factor does it grow?
Check
A service receives 1000 requests a second, and each spends 5 ms inside it.
(a)
How many requests are inside at once on average?
Check
A service needs a front end (unavailable 2 × 10⁻⁵ of the time) in series with any one of 2 independent replicas, each unavailable 0.01 of the time.
(a)
What fraction of the time is the service down?
(b)
How much downtime is that per year?
Check
A disk array has 6 disks with an MTTF of 500000 hours and a 72-hour rebuild.
(a)
What MTTDL does RAID 5 give?
(b)
And RAID 6, by the analogous ?
Check
A server costs 3000 dollars, amortized over 3 years; it peaks at 500 W, idles at half that, and runs at 0.6 utilization in a facility with PUE 1.1, paying 60 dollars per MWh.
(a)
What does the server cost per month, in dollars?
(b)
What does its electricity cost per month, in dollars (730 hours)?
Check
A server's idle power is 0.5 of its peak; it runs at 0.1 utilization.
(a)
What fraction of peak power does it draw?
(b)
What is its energy efficiency, relative to running at full load?
Check
An SSD holds 2 TB; its cells endure 600 program/erase cycles, write amplification is 4, and the host writes 500 GB a day.
(a)
How long does it last?
(b)
How many full drive writes a day is the host load?
Check
A sampled simulation estimates CPI (coefficient of variation 0.6) within 0.01 at z = 3; each sample runs 10000 instructions in detail at 100000 instructions a second.
(a)
How many samples does it need?
(b)
How long does the detailed part take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
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.