S4 Computer architecture · Practice
Problem set 12: architecture across the course
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.
Check
A 3 GHz core with base CPI 0.4: 0.18 branches at 0.97 accuracy and a 20-cycle penalty, and 0.004 last-level misses per instruction costing 200 cycles each.
(a)
Total CPI?
(b)
Billions of instructions per second?
(c)
Fraction of time in memory stalls?
Check
A program 0.95 parallel runs on 16 cores at 3 GHz (IPC 1), each sending 0.006 bus misses per instruction with 64-byte lines, on a 200 GB/s bus.
(a)
Amdahl speedup?
(b)
Cores the bus can feed?
Check
A 4-wide core averaging 30 cycles per instruction in flight, with a 256-entry ROB, 32 architectural registers (0.75 of instructions write one), and branches every 5 instructions at accuracy 0.98.
(a)
Sustainable IPC?
(b)
Physical registers?
(c)
Useful instructions in a full ROB?
Check
L1 1 cycles / 0.03 miss; L2 16 cycles / 0.4 local miss; memory 200 cycles. A TLB of 64 entries with 4 KB pages.
(a)
AMAT?
(b)
TLB reach?
Check
A chip with 4 channels of 4800 MT/s DRAM and a 3000 GFLOPS peak runs a loop doing 8 operations per element, reading 2 arrays and writing 1, of 8-byte numbers.
(a)
Peak bandwidth?
(b)
Intensity?
(c)
Attainable?
Check
A GPU of 108 SMs × 64 lanes at 1.8 GHz; a kernel at 96 registers per thread on SMs with 65536 registers and room for 64 warps; 400-cycle memory latency, 15 cycles of work per warp between loads.
(a)
Peak?
(b)
Warps that fit?
(c)
Warps needed to hide the latency?
Check
A 16-core directory machine with 64-byte lines on an 8 × 8 mesh; a miss has 3 critical-path messages at average distance, 3 ns per hop and 10 ns overhead each.
(a)
Bit-vector directory overhead?
(b)
Network latency of a miss?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
8 cores contend for a test-and-test-and-set lock that every thread holds 0.02 of the time; 1024 threads meet at a tree barrier of fan-in 8, 40 ns per level.
(a)
Transactions until all 8 have held the lock once?
(b)
Throughput limit from the lock, in threads?
(c)
Barrier arrival time?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
40000 servers at 300 W peak, idling at 0.55 of peak, running at 0.4, with PUE 1.15; requests fan out to 40 servers, each slow with probability 0.005.
(a)
Facility power?
Write units the way you normally would: 1.5 MW, 1500 kW and 0.0015 GW are the same answer.
(b)
Fraction of slow requests?
Check
A storage server with a 4 ms service time gets 40 random requests per second; it has an MTTF of 300000 hours and an MTTR of 48 hours; the service runs two independent replicas each available 0.995.
(a)
Mean response time?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
Server unavailability?
(c)
The replicated service's nines?
Check
A 128 × 128 systolic array at 0.94 GHz runs passes of 2048 vectors from 900 GB/s of weight memory; weights shrink from 32 to 4 bits.
(a)
Peak?
(b)
Pass utilization?
(c)
Weight traffic reduction from quantizing?
Check
100 FO4 of logic per instruction, 3 FO4 of overhead per stage and 0.07 stalls per instruction per stage; across process generations at √2, voltage scales by 1 with a fixed clock.
(a)
Optimal depth?
(b)
Fraction of the chip usable after 3 generations?
Check
A study samples CPI (coefficient of variation 0.5, confidence z = 1.96); the core's CPI stack is base 0.8, branches 0.1, L2 0.15, memory 0.5.
(a)
Samples for ±0.03?
(b)
Speedup if memory stalls shrink to 0.4?
Check
An asymmetric chip of 256 units has one 16-unit core; on code that's 0.95 parallel each small core moves 2 bytes per instruction at IPC 2 and 3 GHz.
(a)
What speedup does the chip reach?
(b)
What memory bandwidth do the small cores need together in the parallel part?
Check
A VM's program misses the TLB 0.5 times per thousand instructions; walk accesses take 20 ns at 3.5 GHz, with 4-level tables in guest and host.
(a)
What CPI do nested walks add?
(b)
And with huge pages in both dimensions?
Check
A weight-stationary 128 × 128 array should keep single-tile passes 0.7 busy.
(a)
What batch does that need?
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