S4 Computer architecture · Practice
Final exam
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 program of 3 billion instructions at CPI 1.2 on a 4 GHz core, 0.98 of it parallel.
(a)
Time on one core?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
Time on 32 cores (Amdahl)?
Check
A core at 2.8 GHz on 80 W (power ∝ ); generations at √2 scale voltage by 0.95 with a fixed clock.
(a)
Clock at 200 W?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
(b)
Usable fraction after 4 generations?
Check
A 32-bit ISA with 32 registers and a 7-bit I-type opcode; 0.6 of instructions compressible to 16 bits; 0.25 of instructions are loads fusable with their consumer (fused CPI 2.5, base CPI 1.2, clock 1.1× slower).
(a)
I-type immediate bits?
(b)
Compressed code size?
(c)
Fused version's relative time?
Check
90 FO4 of logic, 3 FO4 of overhead per stage, 0.06 stalls per instruction per stage; a loop of 30 iterations runs repeatedly.
(a)
Optimal depth?
(b)
1-bit predictor misprediction rate on the loop?
Check
A core with base CPI 0.5, 0.2 branches and a 25-cycle penalty; a predictor of counters shared by 2000 branches.
(a)
Speedup from accuracy 0.9 to 0.99?
(b)
Aliasing probability?
Check
A 4-wide core averaging 30 cycles in flight, a 512-entry window, branches every 5 instructions at 0.99, 64 architectural registers, 0.8 of instructions writing one.
(a)
Sustainable IPC?
(b)
Useful instructions in a full window?
(c)
Physical registers?
Check
A block of 36 instructions with a 9-long chain; threads running 30 cycles between 500-cycle misses, coarse switching costing 6 cycles.
(a)
Dataflow IPC?
(b)
Fine-grained threads to saturate?
(c)
Coarse-grained ceiling?
Check
L1 1 / 0.04, L2 14 / 0.45 local, memory 180 cycles; a program with 16000 direct-mapped, 10000 fully associative and 3000 infinite-cache misses.
(a)
AMAT?
(b)
Conflict misses?
Check
A matrix multiply blocked by 32 on 1024 × 1024 matrices; a prefetching loop at 50 cycles per iteration with 300-cycle latency; translation with a 1 ns TLB, 100 ns memory, 0.97 TLB hit rate and 4-level walks.
(a)
Traffic reduction?
(b)
Prefetch distance?
(c)
Average translated access time?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
2 channels of 4800 MT/s DRAM; row hit rate 0.7 with 16, 14, 14 ns (misses are conflicts).
(a)
Peak bandwidth?
(b)
Average latency?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A vector loop of 500 elements (MVL 64, 15 + 50 cycles per strip, 3 chimes); a GPU warp with 24 lanes on 30 instructions and the rest on 6.
(a)
Vector cycles per element?
(b)
Lane efficiency?
Check
A 1000 GFLOPS, 100 GB/s machine and a kernel of intensity 30.
(a)
Ridge point?
(b)
Attainable?
Check
Cores at 3 GHz with 0.004 bus misses per instruction on a 64 GB/s bus; a thread reading then writing 5000 lines, 0.85 unshared, under MESI; 8 cores contending for a test-and-test-and-set lock.
(a)
Cores at bus saturation?
(b)
MESI transactions?
(c)
Lock transactions until all have held it?
Check
A 64-core directory machine with 64-byte lines, connected by a 16 × 16 torus of 64 GB/s links.
(a)
Bit-vector overhead?
(b)
Bisection bandwidth?
Check
30000 servers (250 W peak, idle at 0.5, running at 0.35) with PUE 1.1 and an MTTF of 4 years; requests fan out to 30 servers each slow with probability 0.01.
(a)
Facility power?
Write units the way you normally would: 1.5 MW, 1500 kW and 0.0015 GW are the same answer.
(b)
Failures per day?
(c)
Slow requests?
Check
A 128 × 128 systolic array streaming 512 vectors per pass; a disk queue with 6 ms service and 120 requests per second; a RAID 5 of 6 disks (MTTF 1000000 h, 24 h rebuild).
(a)
Array utilization?
(b)
Mean response time?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(c)
MTTDL?
Check
A 6-wide front end meets a taken branch every 7 instructions with 2 bubble(s) each; its µop cache hits 0.9 of µops at 6 a cycle, and the decoders give 4.
(a)
What fetch rate does the taken-branch limit allow?
(b)
What delivery rate does the µop cache mix allow?
Check
A socket's memory gives 200 GB/s at 90 ns in 64-byte lines; remote memory takes 180 ns against 90 locally, and 0.5 of accesses go remote.
(a)
How many misses must be in flight for full bandwidth?
(b)
What is the average latency?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
DRAM rows cycle in 45 ns with a 32 ms refresh window; cells flip after 80000 neighbor activations.
(a)
How many activations fit in one window?
(b)
How long does an attack take to reach the threshold?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
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