S4 Computer architecture · Practice
Every topic, mixed
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.
Topics: all 51
Check
A program runs 2 billion instructions at a CPI of 0.8 on a 3 GHz core. How long does it take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A program is 0.5 ALU instructions at CPI 1.2, 0.25 loads and stores at CPI 3, and the rest branches at CPI 3. What's its CPI?
Check
Machine A runs a program as 1 billion instructions at CPI 1.2 and 3 GHz; machine B needs 1.3 billion instructions at CPI 1.5 and 2.5 GHz. What's B's speedup over A?
Check
A core with CPI 0.8 misses 0.005 times per instruction to a 120 ns memory. Its clock goes from 2 GHz to 2× that. What's the speedup?
Check
What's the MIPS rating of a 2 GHz core with a CPI of 1.25?
Check
A machine's speed ratios on three benchmarks are 1.5, 0.8 and 6. What's the geometric mean?
Check
A program executes 1 × 10⁹ instructions at a CPI of 0.8 on a 3 GHz core.
(a)
How long does it run?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
What MIPS rating does it get?
Check
A core with a base CPI of 0.5 misses to memory on 0.005 of its instructions; memory takes 100 ns, and the clock is 4 GHz.
(a)
What is its CPI?
(b)
How long does each instruction take on average?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Time for 1 billion instructions, CPI 0.9, 4 GHz?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Speedup from 2× the clock: CPI 0.7, 0.004 misses per instruction, 100 ns memory, 2.5 GHz?
Check
Geometric mean of 1.2, 0.9 and 4.5?
Check
An enhancement speeds up 0.7 of a program's time by 2×. What's the overall speedup?
Check
A fraction 0.95 of a program can be sped up without limit. What's the most the whole program can speed up?
Check
What parallel fraction does a program need to reach a speedup of 8 on 16 processors?
Check
On 128 processors, a scaled run is 0.8 parallel. What's its Gustafson speedup?
Check
A symmetric chip of 64 base units uses cores of 16 units each, with performance . What's its speedup on code that's 0.9 parallel?
Check
One enhancement speeds up 0.3 of the time by 4×, another speeds up a separate 0.25 by 3×. What's the overall speedup?
Check
An enhancement speeds up a fraction 0.8 of a program's time by 4. Separately, a scaled workload runs on 64 processors with parallel fraction 0.99.
(a)
What is the enhancement's overall speedup?
(b)
What is its limit as S grows?
(c)
What scaled speedup does Gustafson's law give?
Check
Speedup when 0.6 is sped up 3×?
Check
Gustafson speedup: 32 processors, 0.9 parallel?
Check
Parallel fraction for a speedup of 5 on 32?
Check
Each generation scales dimensions by √2, the voltage by 0.85 and the clock by 1. By what factor does power density grow per generation?
Check
After 3 generations at √2 per generation, voltage scaling 0.9 per generation and a fixed clock, what fraction of a fixed-power chip can run at full speed?
Check
A core runs at 2.5 GHz on 65 W, with power growing as the cube of frequency. What clock does a 150 W budget allow?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
All 8 cores share a power budget at 2.5 GHz. With only 4 active, each takes an equal share of the whole budget. What clock can they reach (power ∝ , no voltage cap)?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
A task of 2 billion cycles runs at 1.5 GHz and 0.9 V. Dynamic energy is 5 nJ per cycle at 1 V (scaling as ), and leakage is 15 W at 1 V (scaling as V). What energy does the task use?
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
Check
Design A uses 20 J and takes 1 s per task; design B uses 60 J and 2 s. What's A's energy-delay product as a fraction of B's?
Check
A chip switches 1 nF at activity 0.1, at 1 V and 3 GHz, and leaks 1 W.
(a)
What is its dynamic power?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What is its total power?
(c)
What dynamic energy does each cycle take?
Check
A 4-core chip runs all cores at 2.5 GHz within its power budget, with voltage tracking frequency so power goes as .
(a)
How fast can 2 active core(s) run on the same budget, ignoring voltage limits?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
Power-density growth per generation: v = 0.8, g = 1.05?
Check
Clock at 200 W, from 2 GHz at 50 W, power ∝ ?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
Task energy: 1 G cycles at 2 GHz, 1 V, 6 nJ/cycle at 1 V, 10 W leak at 1 V?
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
Check
How many bits do three register fields take with 32 registers?
Check
A 32-bit instruction has two register fields for 16 registers and a 10-bit opcode. How many bits are left for the immediate?
Check
A branch offset is a 13-bit signed number counted in units of 1 bytes. How far backward can a branch reach?
Check
A fraction 0.5 of a program's 32-bit instructions are replaced by 16-bit forms. What percentage of the original size is the code?
Check
On a load-store ISA, a program runs at CPI 1.2, and a fraction 0.15 of its instructions are loads whose value is used only by the next instruction. A register-memory ISA fuses each such pair into one instruction with CPI 3, and its clock period is 1.1 times as long. What's the register-memory version's time as a fraction of the load-store version's?
Check
In a variable-length ISA, 0.5 of instructions are 2 bytes, 0.25 are 4 bytes and the rest 6 bytes. What's the average length?
Check
A 32-bit ISA has 32 registers and spends 10 bits on opcode fields. Its branches store 13-bit offsets counted in 4-byte units.
(a)
How many bits do three register fields take?
(b)
How wide an immediate fits beside two register fields?
(c)
How far can a branch reach?
Check
Immediate bits: 32-bit instruction, 32 registers, 8-bit opcode?
Check
Backward reach of a 10-bit offset in 2-byte units?
Check
Code size with 0.5 compressed?
Check
A program of 2 billion instructions: 0.45 ALU (CPI 1), 0.3 memory (CPI 2.5), the rest branches (CPI 2), on a 3.2 GHz core.
(a)
CPI?
(b)
Execution time?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A core with pipeline CPI 0.8 at 3 GHz misses 0.008 times per instruction to a 110 ns memory.
(a)
Total CPI?
(b)
Speedup from doubling the clock?
Check
Machine A: 1 billion instructions, CPI 1.4, 3 GHz. Machine B: 4 billion, CPI 1, 2 GHz.
(a)
B's speedup over A?
(b)
B's MIPS over A's MIPS?
Check
A machine's ratios on three benchmarks are 1.3, 0.7 and 5.
(a)
Geometric mean?
(b)
Arithmetic mean (for comparison)?
Check
A program is 0.85 parallel.
(a)
Amdahl speedup on 8 processors?
(b)
Limit with unlimited processors?
(c)
Gustafson speedup if 0.85 is the scaled run's parallel fraction?
Check
Two enhancements: 0.3 of the time sped up 5×, and a separate 0.3 sped up 4×.
(a)
Overall speedup?
(b)
What fraction of the time would the first enhancement alone have to cover for an overall speedup of 2?
Check
A symmetric chip of 64 base units with cores of 32 units (performance ), on code that's 0.95 parallel.
(a)
Number of cores?
(b)
Speedup?
Check
Each generation scales dimensions by √2, the voltage by 0.8 and the clock by 1.
(a)
Power-density growth per generation?
(b)
Fraction usable at full speed after 6 generations?
Check
A core runs at 3 GHz on 90 W (power ∝ ); a chip has 12 cores sharing one budget.
(a)
Clock for a 200 W budget?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
(b)
Turbo clock with 2 of the 12 cores active (from 3 GHz with all active)?
Check
A task of 2 billion cycles at 1.5 GHz and 1 V: 8 nJ per cycle at 1 V (∝ ), leakage 18 W at 1 V (∝ V).
(a)
Energy?
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
(b)
Energy-delay product?
Check
A 32-bit ISA with 16 registers and a 7-bit opcode in I-type, and branch offsets of 20 bits in 4-byte units.
(a)
Register bits in an R-type instruction?
(b)
I-type immediate bits?
(c)
Backward branch reach?
Check
A program has 0.45 of its instructions compressible to 16 bits; and 0.2 of its instructions are loads used only by the next instruction, which a register-memory ISA could fuse (fused CPI 3, clock period ×1, base CPI 1.3).
(a)
Compressed code size, as a percentage?
(b)
Fused version's time relative to load-store?
Check
A core with base CPI 0.8 misses to a 100 ns memory on 0.01 of its instructions; its clock goes from 3 GHz to 2 times that.
(a)
How long does an instruction take at 3 GHz?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
How much faster is it at the higher clock?
Check
Three enhancements speed up disjoint fractions of a program's time: 0.2 by 5, 0.3 by 4, and 0.1 by 1.5.
(a)
What is the overall speedup?
(b)
What is the most these three parts could ever give?
Check
Each generation shrinks dimensions by 1.4 while voltage scales by only 0.9 and frequency is held.
(a)
By what factor does power density grow per generation?
(b)
What fraction of the chip can run at full speed after 6 generations?
Check
A core has 120 FO4 of logic per instruction, 3 FO4 of overhead per stage and loses 0.08 cycles per instruction per stage of depth. What depth minimizes time per instruction?
Check
With 80 FO4 of logic, 3 FO4 of overhead and 0.1 stalls per instruction per stage, what's the time per instruction at 30 stages, in FO4?
Check
A pipeline of 20 stages splits 100 FO4 of logic evenly, with 3 FO4 of overhead per stage. What fraction of each cycle is overhead?
Check
Branches are 0.15 of instructions, 0.03 of them mispredicted, and they resolve at stage 25. How much CPI do mispredictions add?
Check
How many FO4 is each cycle when 100 FO4 of logic is split over 25 stages with 3 FO4 of overhead?
Check
At the optimal depth, what's the time per instruction for t = 100 FO4, o = 3 FO4 and b = 0.08?
Check
An instruction's path is 120 FO4; each stage adds 2 FO4 of overhead, and hazards cost 0.08 cycles per instruction per stage.
(a)
What is the time per instruction with 20 stages?
(b)
What depth minimizes it?
Check
Optimal depth: t = 90, o = 3.5, b = 0.12?
Check
TPI at 35 stages: t = 100, o = 3, b = 0.06?
Check
Misprediction CPI: 0.12 branches, 0.02 mispredicted, resolved at stage 20?
Check
A loop of 8 iterations runs many times. What's a 1-bit predictor's misprediction rate on its closing branch?
Check
The same loop, 8 iterations, with a 2-bit counter. What's the misprediction rate?
Check
Branches are 0.15 of instructions, the predictor is 0.9 accurate, and a misprediction costs 20 cycles. How much CPI do mispredictions add?
Check
A core has base CPI 0.4, 0.18 branches and a 12-cycle misprediction penalty. What speedup comes from improving accuracy from 0.92 to 0.98?
Check
500 active branches share a predictor of entries, indexed uniformly. What's the probability a given branch shares its entry with at least one other?
Check
Branches are 0.15 of instructions and 0.6 of them are taken. The BTB finds the target of 0.95 of taken branches; a BTB miss costs 3 cycles. What CPI does it add?
Check
Branches are 0.15 of instructions, predicted with accuracy 0.9 and a 20-cycle penalty, using a table of 2-bit counters (n = 14) shared by 500 active branches.
(a)
What CPI do mispredictions add?
(b)
How many bits is the table?
(c)
What is the chance a given branch shares its entry?
Check
2-bit misprediction rate on a 16-iteration loop?
Check
Misprediction CPI: 0.17 branches, 0.93 accuracy, 22-cycle penalty?
Check
Aliasing chance: 800 branches, entries?
Check
A 6-wide fetch stops at taken branches, which come every 5 instructions; each redirection costs 2 bubble cycle(s).
(a)
What fetch rate does it reach?
(b)
What fraction of the fetch slots carry instructions?
Check
A micro-op cache hits 0.8 of the time and delivers 6 µops a cycle; the decoders deliver 4.
(a)
What average rate does the front end reach?
Check
A program misses the instruction cache 5 times per thousand instructions, at 12 cycles each, on a core whose CPI is otherwise 0.5.
(a)
What CPI do the misses add?
(b)
What fraction of the time is the front end starving the core?
Check
Fetch rate: width 4, runs of 6, 1 bubble(s)?
Check
Average µop rate, hit rate 0.7, 6 per cycle on a hit, 4 on a miss?
Check
CPI from 3 instruction-cache MPKI at 15 cycles?
Check
A 4-wide core averages 15 cycles from dispatch to completion. What window does it need to sustain full width?
Check
An 8-wide core has a 128-entry window and averages 20 cycles of latency per instruction. What IPC can it sustain at most?
Check
A core with 32 architectural registers keeps 96 instructions in flight, 0.8 of which write a register. How many physical registers does renaming need?
Check
A Tomasulo machine has 2 common data bus(es), each carrying one result per cycle, and 0.6 of instructions produce a result. What IPC does the CDB allow at most?
Check
A multiplier receives 1 instructions per cycle on average. Each spends 4 cycles waiting for operands and 3 cycles executing. How many reservation stations does it need on average?
Check
A chain of 3 dependent multiplies each executes in 4 cycles and then takes 1 cycle to broadcast its result on the CDB before the next can start. How many cycles from the first starting to execute to the last result's broadcast?
Check
A 6-wide out-of-order core averages 20 cycles of latency per instruction; 0.8 of instructions write one of 32 architectural registers, and it has 3 common data buses.
(a)
How big must its window be to sustain full width?
(b)
How many physical registers does that window need?
(c)
What IPC can its result buses carry?
Check
Window for full width: 3-wide, 25 cycles latency?
Check
Sustainable IPC: window 64, latency 30, width 6?
Check
Physical registers: 32 architectural, 128 in flight, 0.85 writing?
Check
Each branch is predicted correctly with probability 0.95. What's the probability that an instruction 10 branches past the oldest unresolved one is on the correct path?
Check
A 512-instruction window has a branch every 1/0.15 instructions, each predicted with accuracy 0.97. How many instructions are on the correct path, on average?
Check
A core fetches and executes 4 instructions per cycle, but only 0.9 of them turn out to be on the correct path, and it commits at most 4 per cycle. What's its best IPC?
Check
A 4-wide core with a 224-entry ROB averages 50 cycles from dispatch to commit. What IPC can it sustain at best?
Check
Loads are 0.25 of instructions, 0.01 of them are caught reading before a conflicting older store and replayed, and each replay costs 20 cycles. What CPI does that add?
Check
A full 128-entry window has a branch every 5 instructions predicted with accuracy 0.95. On average, how many of its instructions are wasted work?
Check
A window of 256 instructions sees a branch every 5 instructions, predicted with accuracy 0.9.
(a)
How many branches does it span?
(b)
How many of its instructions are on the correct path, on average?
(c)
What is the most any window could have on the correct path?
Check
Chance an instruction 8 branches ahead is on the right path, accuracy 0.92?
Check
Useful instructions: window 400, branch rate 0.18, accuracy 0.95?
Check
Replay CPI: 0.2 loads, 0.005 replayed, 25 cycles each?
Check
A core with 90 FO4 of logic per instruction, 3 FO4 of overhead per stage and 0.09 stall cycles per instruction per stage.
(a)
Optimal depth?
(b)
Time per instruction there, in FO4?
(c)
FO4 per cycle there?
Check
The same model at a fixed depth of 28 stages: 120 FO4 of logic, 3.5 FO4 overhead, 0.07 stalls per instruction per stage.
(a)
Overhead share of each cycle?
(b)
Time per instruction, in FO4?
Check
A core with base CPI 0.9: 0.16 of instructions are branches, 0.03 mispredicted, resolved at stage 20.
(a)
Misprediction CPI?
(b)
Speedup if a better predictor halves the misprediction rate?
Check
A loop of 12 iterations runs over and over.
(a)
1-bit predictor misprediction rate?
(b)
2-bit counter?
Check
A predictor table of two-bit counters, with 400 active branches.
(a)
Table size, in bits?
(b)
Chance a given branch shares its entry?
Check
Branches are 0.15 of instructions, 0.55 of them taken; the BTB holds 0.95 of taken targets (miss cost 4 cycles), and direction accuracy is 0.94 (penalty 15).
(a)
CPI from BTB misses?
(b)
CPI from direction mispredictions?
Check
A 4-wide out-of-order core averaging 25 cycles per instruction in flight, with a 256-entry window.
(a)
Window for full width?
(b)
Sustainable IPC with 256 entries?
Check
A core renames 32 architectural registers for 160 in-flight instructions (0.8 write a register); it has 3 result buses, and 0.75 of instructions produce results.
(a)
Physical registers?
(b)
IPC limit from the result buses?
Check
A floating-point multiplier gets 0.6 instructions per cycle, each waiting 6 cycles for operands and executing for 4; elsewhere, a chain of 7 dependent multiplies runs alone.
(a)
Reservation stations needed on average?
(b)
Cycles for the chain, with 1 cycle of CDB broadcast per link?
Check
A 300-entry window, a branch every 1/0.17 instructions, accuracy 0.94.
(a)
Chance the youngest instruction is on the correct path?
(b)
Expected useful instructions?
Check
A core fetches 6 per cycle with 0.75 useful and commits at most 3; 0.3 of instructions are loads, 0.01 of them replayed at 15 cycles each.
(a)
Best IPC?
(b)
CPI added by replays?
Check
A deep pipeline resolves branches at stage 18; a shallow one resolves them at stage 6 but its clock period is 1.5× longer. Branches are 0.2 of instructions, 0.08 mispredicted; ignore other stalls.
(a)
CPI of the deep design?
(b)
Shallow design's time per instruction relative to the deep one's?
Check
A 4-wide fetch meets a taken branch every 6 instructions and loses 2 cycle(s) on each redirection.
(a)
What fetch rate does it reach?
Check
A µop cache delivers 6 µops a cycle on hits (0.75 of µops) and the decoders 4.
(a)
What average rate results?
Check
Branches are 0.15 of instructions, predicted 0.95 right with a 20-cycle penalty; the instruction cache misses 8 times per thousand instructions at 20 cycles.
(a)
What CPI does the front end lose?
Check
A block of 36 instructions has a longest dependence chain of 5 single-cycle instructions. What's its dataflow-limited IPC?
Check
A 4-wide core has a 64-entry window, each entry with two source tags. How many tag comparators does wake-up need per cycle?
Check
A 4-wide core forwards results from 1 pipeline stages to both inputs of every unit. How many bypass paths does it need?
Check
A reduction loop uses a pipelined unit of latency 4 that can start 2 operation(s) per cycle. How many independent partial results keep it fully busy?
Check
A 6-slot VLIW machine fills 1.5 slots per word on average. How many times larger is its code than a dense encoding of the same operations?
Check
A loop body uses 3 registers per iteration plus 6 shared ones. Unrolled 4 times, how many registers does it need?
Check
A basic block has 24 instructions with a longest dependence chain of 6. An 8-wide core has a 192-entry window and 1 bypass stages.
(a)
What is the best IPC the block can reach on this core?
(b)
How many tag comparators does wake-up need?
(c)
How many bypass paths?
Check
Dataflow IPC: 30 instructions, chain 6?
Check
Wake-up comparators: 3-wide, 96 entries?
Check
Partial sums for latency 5, 1 per cycle?
Check
A thread runs 30 cycles, then waits 100 cycles for memory. What fraction of the time does it keep the core busy alone?
Check
Each thread runs 16 cycles between misses of 120 cycles. How many threads does fine-grained multithreading need to keep the core busy?
Check
A coarse-grained multithreaded core loses 3 cycles at each switch, and threads run 15 cycles between misses. What's the highest utilization it can reach?
Check
3 threads each run 20 cycles and wait 250, with fine-grained switching. What's the core's utilization?
Check
Two threads each reach IPC 1.2 alone; together on an SMT core they reach a total of 1.8. What fraction of its solo speed does each thread keep?
Check
A core holds 8 hardware threads, each with 32 architectural registers of 64 bits. How much register state is that?
Check
Each thread runs 10 cycles and then waits 100 cycles; the core has 8 threads.
(a)
What utilization does fine-grained multithreading reach?
(b)
How many threads would saturate it?
(c)
What is coarse-grained multithreading's ceiling with 16 cycles lost per switch?
Check
Threads to saturate: run 12, wait 180?
Check
Coarse-grained ceiling: run 20, switch 4?
Check
Utilization of 2 threads, run 15, wait 300?
Check
A core is built from 16 base-core units.
(a)
How much faster than a base core is it, by Pollack's rule?
(b)
What is its performance per watt relative to a base core, if power grows with area?
Check
A chip has 64 base units; its parallel fraction is 0.99, and cores are 4 units.
(a)
What is the symmetric chip's speedup?
(b)
And the asymmetric chip's, with one 4-unit core and the rest single units?
(c)
And the ideal dynamic chip's?
Check
A big core runs 3 times faster than a little one and draws 4 times the power. A task takes 50 ms on the little core.
(a)
How much more energy does the big core use for the task?
(b)
How long does the big core take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Pollack speedup of a 25-unit core?
Check
Asymmetric speedup, 256 units, f = 0.95, big core 16?
Check
Energy ratio of a core 2 times faster at 6 times the power?
Check
What is the Poisson yield, in percent, of a 600 mm² die at 0.1 defects per cm²?
Check
A design of 600 mm² is split into 2 equal chiplets, at 0.2 defects/cm² (ignore interface overhead).
(a)
How much wafer area does a good monolithic die consume?
(b)
And a good set of 2 chiplets?
Check
About how many 300 mm² dies fit on a wafer of 100 mm radius, using ?
Check
A die-to-die interface has 1000 wires at 8 Gb/s each, costing 1 pJ per bit.
(a)
What bandwidth does it carry, in TB/s?
(b)
What power does it burn at full use?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
A packaging technology fits one wire every 40 µm along a die's edge, per routing layer. How many wires per millimeter of edge does it give with 2 layers?
Check
Find the best number of chiplets. A design of A = 600 mm² at D = 0.05 defects/cm² is split into equal chiplets, each of which grows by 4% plus 2 mm² for its die-to-die interface; assembly adds a yield loss of 1% per chiplet (assembled yield ). Write cost(n), the wafer area consumed per good assembled processor, with the grown chiplet area, and set best_n (for = 1 to 16, using = 1 with no interface and no assembly loss) and saving, .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
What is the Poisson yield of a 200 mm² die at 0.08 defects/cm²?
Check
How much bandwidth do 256 wires at 4 Gb/s each carry?
Check
A 6-wide fetch stops at taken branches, which come every 5 instructions, and loses 2 cycle(s) on each redirection.
(a)
What fetch rate does it reach?
(b)
And with zero-bubble redirection?
Check
A µop cache hits 0.85 of the time, delivering 6 µops a cycle; the decoders deliver 4.
(a)
What average delivery rate results?
(b)
What fraction of the time are the decoders idle?
Check
Branches are 0.15 of instructions, predicted 0.94 right with a 20-cycle penalty; taken branches are 0.15 of instructions and hit the BTB 0.9 of the time (misses cost 2 cycles); the instruction cache misses 2 times per thousand instructions at 15 cycles.
(a)
What CPI does the front end add?
(b)
What share of it is direction mispredictions?
Check
A branch is taken independently with probability 0.8, and one 2-bit saturating counter predicts it.
(a)
What long-run accuracy does the counter reach?
Check
2000 active branches share a table of counters (n = 10).
(a)
What is the chance a given branch shares its entry?
(b)
How many branches per entry is that on average?
Check
A recursive function calls itself 24 deep and then returns all the way; the return-address stack holds 8 entries.
(a)
How many returns are mispredicted?
Check
A core of 16 base units performs as Pollack's rule says and draws power in proportion to its area.
(a)
How much faster than a base core is it?
(b)
How many times the energy does it use for the same task?
Check
A chip of 64 base units runs code that's 0.99 parallel.
(a)
What does an asymmetric design with one 16-unit core reach?
(b)
And the ideal dynamic design?
Check
A big core draws 10 times a little core's power. A memory-bound thread runs 1.2 times faster on it, and a compute-bound thread 2.5 times faster.
(a)
How much more energy does the memory-bound thread use on the big core?
(b)
And the compute-bound thread?
Check
Two threads each reach IPC 1.6 alone on an SMT core; together the core reaches 1.15 times that.
(a)
What combined IPC does the core reach?
(b)
How much slower does each thread run than alone?
Check
Each thread issues 8 cycles of work between memory accesses that take 200 cycles.
(a)
How many fine-grained threads keep the core busy?
Check
A block of 32 instructions has a longest dependence chain of 4; the core is 8 wide.
(a)
What is the best IPC on this core?
(b)
What is the dataflow limit on any machine?
Check
A reduction runs on 2 pipelined unit(s) of latency 4; each unrolled copy of the loop body needs 4 registers, from 32.
(a)
How many independent accumulators keep the units busy?
(b)
What is the most the loop can be unrolled before running out of registers?
Check
An instruction path of 100 FO4 is pipelined with 2 FO4 of overhead per stage and hazards costing 0.1 cycles per instruction per stage.
(a)
What depth is best?
(b)
What time per instruction does it reach?
Check
A 256-instruction window sees a branch every 4 instructions, predicted 0.98 right.
(a)
How many of its instructions are on the correct path on average?
(b)
What is the most any window could have on the correct path?
Check
A 600 mm² design at 0.2 defects/cm² is split into 2 chiplets (ignore interface overhead).
(a)
What is the monolithic die's yield, in percent?
(b)
And each chiplet's?
Check
L1 hits in 1 cycles and misses 0.03; L2 hits in 14 cycles and misses 0.4 locally; memory takes 150 cycles. What's the AMAT?
Check
L1 misses 0.02 of accesses; L2's local miss rate is 0.1. What's L2's global miss rate?
Check
A program makes 1.2 memory accesses per instruction; AMAT is 2.5 cycles and the hit time 2. How many stall cycles per instruction does memory add, with no overlap?
Check
A 32 KB cache misses 0.04 of the time. By a power law with exponent 0.5, what miss rate should a 512 KB cache have?
Check
A program streams once through 8 MB of data with 32-byte cache lines. How many compulsory misses does it take?
Check
A program has 8000 misses on a direct-mapped cache, 5000 on a fully associative one of the same size, and 2500 on an infinite cache. How many are conflict misses?
Check
An L1 hits in 1 cycles with a 0.03 miss rate; its L2 hits in 14 cycles with a local miss rate of 0.5; memory takes 150 cycles. There are 1.3 memory accesses per instruction, and misses don't overlap.
(a)
What is the AMAT?
(b)
What is the global L2 miss rate?
(c)
How many stall cycles per instruction does memory add?
Check
AMAT: L1 1 / 0.04, L2 20 / 0.5, memory 200?
Check
MPKI with 1.25 accesses per instruction and a 0.01 global miss rate?
Check
Capacity misses: DM 9000, FA 6000, infinite 3000?
Check
A 512 × 512 matrix multiply is blocked with 16 × 16 tiles. By what factor does the worst-case traffic, against , fall?
Check
A 32 KB cache holds 4-byte elements. What's the largest whole B such that three B × B blocks fit?
Check
8 independent misses of 150 cycles each overlap 8 at a time. About how many stall cycles do they cost?
Check
Memory latency is 250 cycles and each loop iteration takes 15. How many iterations ahead should the loop prefetch?
Check
Way prediction is 0.85 accurate; a correct guess hits in 1 cycle(s) and a wrong one in 4. What's the average hit time?
Check
A direct-mapped cache misses 0.04 of the time; 0.3 of its misses are conflicts, and a victim cache catches 0.7 of those. What's the new miss rate?
Check
An N × N matrix multiply (N = 1024) is blocked into 16 × 16 tiles.
(a)
About how many words does the unblocked version move in the worst case?
(b)
And the blocked version?
(c)
How much cache do three tiles of doubles need?
Check
A loop takes 10 cycles per iteration against 150 cycles of memory latency. Way prediction is 0.95 accurate, with 2-cycle predicted hits and 3-cycle mispredicted ones.
(a)
How far ahead should the loop prefetch?
(b)
What is the average hit time?
Check
Traffic reduction: N = 512, B = 8?
Check
Stall: 12 misses of 200 cycles, MLP 6?
Check
Prefetch distance: latency 180, 20 cycles per iteration?
Check
8 cores each have a 0.5 MB private L2; the shared L3 holds 32 MB.
(a)
How much distinct data fits if the L3 is inclusive?
(b)
And if it is exclusive?
Check
An 8 MB cache with 64-byte lines is 8-way set associative.
(a)
How many sets does it have?
(b)
How much tree-PLRU state does it need?
(c)
And 2-bit RRIP?
Check
An LLC is sliced over a 6 × 6 mesh; a slice takes 8 cycles and each hop 3.
(a)
What is the average latency to a random slice?
(b)
And to the farthest slice?
Check
A program misses 0.02 of the time with the whole LLC; it now shares the cache equally with 2 programs in all.
(a)
What miss rate does the √2 rule predict?
Check
Distinct capacity with an exclusive 32 MB L3 and 8 private 1 MB L2s?
Check
Average NUCA latency on a 5 × 5 mesh, 10-cycle slices, 4 cycles per hop?
Check
Miss rate of a program missing 0.03 alone, sharing equally among 3?
Check
A block of 24 instructions with a 6-long dependence chain runs on a 6-wide core with a 224-entry window and 2 bypass stages.
(a)
Dataflow-limited IPC?
(b)
Wake-up comparators?
(c)
Bypass paths?
Check
A 5-slot VLIW filling 1.8 slots per word; a reduction on a unit of latency 6 starting 3 operations per cycle, with 4 registers per partial sum chain and 3 shared.
(a)
Code size factor?
(b)
Independent partial sums needed?
(c)
Registers when unrolled that many times?
Check
Threads run 10 cycles between misses of 150 cycles; coarse-grained switching costs 8 cycles.
(a)
Fine-grained threads to saturate?
(b)
Coarse-grained ceiling?
(c)
Utilization with 5 threads?
Check
An SMT core: two threads reaching IPC 1.3 alone and 2.1 together; a GPU-style core with 16 threads of 32 64-bit registers.
(a)
Throughput gain over one thread?
(b)
Each thread's fraction of its solo speed?
(c)
Register state for the 16 threads?
Check
L1 hits in 1 cycles, misses 0.03; L2 hits in 15, misses 0.4 locally; memory takes 180; 1.25 accesses per instruction.
(a)
AMAT?
(b)
L2 MPKI?
(c)
Stall cycles per instruction (no overlap)?
Check
A program: 12000 misses direct-mapped, 7000 fully associative, 4000 with an infinite cache; it also streams once through 16 MB with 64-byte lines.
(a)
Conflict misses?
(b)
Capacity misses?
(c)
Compulsory misses of the stream?
Check
A 16 KB cache misses 0.05; the power-law exponent is 0.55.
(a)
Predicted miss rate at 1024 KB?
(b)
By what factor did misses fall?
Check
A 512 × 512 double-precision matrix multiply, with a 32 KB cache.
(a)
Largest B with three B × B blocks fitting?
(b)
Traffic reduction at that B?
Check
10 independent misses of 180 cycles each, overlapping 6 at a time; a loop of 40 cycles per iteration.
(a)
Stall cycles?
(b)
Prefetch distance in iterations?
Check
Way prediction 0.8 accurate (hits of 1 or 3 cycles); a direct-mapped cache missing 0.09, 0.45 conflicts, a victim cache catching 0.5 of them.
(a)
Average hit time?
(b)
New miss rate?
Check
A single cache hits in 1 cycles and misses 0.04 with a 200-cycle penalty. Adding an L2 (hit 12 cycles, local miss rate 0.5) in front of memory:
(a)
AMAT without the L2?
(b)
Speedup of memory access with it?
Check
A 4-wide core averaging 30 cycles per instruction in flight, with a 256-entry window, 32 architectural registers, 0.75 of instructions writing one.
(a)
Sustainable IPC?
(b)
Physical registers?
Check
A chip of 64 base units runs code that's 0.98 parallel; one design is asymmetric with a 16-unit big core.
(a)
What speedup does it reach?
Check
8 cores each have a 1 MB L2 under a 32 MB shared L3.
(a)
How much distinct data fits if the L3 is exclusive?
(b)
What fraction of the inclusive L3 is spent duplicating the L2s, at most?
Check
An L3 is sliced over a 4 × 4 mesh, 10 cycles per slice and 4 per hop.
(a)
What is its average access latency?
Check
A program of 2 billion instructions at pipeline CPI 1.1 on a 3.5 GHz core, missing 0.015 times per instruction to an 80 ns memory.
(a)
Total CPI?
(b)
Execution time?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A program is 0.9 parallel.
(a)
Speedup on 16 processors?
(b)
Parallel fraction needed for 10× on 16?
Check
A symmetric multicore of 128 base units, cores of 16 units each (performance ), on code 0.95 parallel.
(a)
Speedup?
(b)
Speedup with 128 one-unit cores instead?
Check
Generations scale dimensions by √2 and voltage by 0.85, with a fixed clock; separately, a 3.5 GHz core uses 140 W, power ∝ .
(a)
Usable fraction after 3 generations?
(b)
Clock at 180 W?
Write units the way you normally would: 1.5 GHz, 1500 MHz and 0.0015 THz are the same answer.
Check
A 32-bit ISA with 32 registers and an 8-bit I-type opcode; branch offsets of 21 bits in 2-byte units.
(a)
I-type immediate bits?
(b)
Backward branch reach?
Check
100 FO4 of logic per instruction, 3 FO4 of overhead per stage, 0.06 stalls per instruction per stage.
(a)
Optimal depth?
(b)
Time per instruction at 30 stages, in FO4?
Check
A loop of 5 iterations runs repeatedly; separately, a core with base CPI 0.6, 0.22 branches and a 14-cycle penalty improves its predictor from 0.95 to 0.97.
(a)
2-bit counter misprediction rate on the loop?
(b)
Speedup from the better predictor?
Check
A 4-wide core with 25 cycles of average latency and a 192-entry window; 3 result buses, 0.8 of instructions producing results.
(a)
Window for full width?
(b)
IPC with 192 entries?
(c)
IPC limit from the buses?
Check
A 150-entry speculative window with a branch every 5 instructions at accuracy 0.95; 0.3 loads, 0.02 of them replayed at 15 cycles.
(a)
Useful instructions in the window?
(b)
Replay CPI?
Check
A block of 30 instructions with a 6-long dependence chain; a reduction on a unit of latency 5 that starts 2 per cycle.
(a)
Dataflow IPC?
(b)
Partial sums needed?
Check
Threads run 15 cycles between 200-cycle misses; coarse switching costs 10.
(a)
Fine-grained threads to saturate?
(b)
Coarse-grained threads to reach its ceiling?
Check
L1 hits in 1, misses 0.04; L2 hits in 16, misses 0.35 locally; memory 200 cycles.
(a)
AMAT?
(b)
L2 global miss rate?
Check
15000 misses direct-mapped, 9000 fully associative, 5000 infinite.
(a)
Conflict?
(b)
Capacity?
Check
A blocked 1024 × 1024 matrix multiply with 16 × 16 tiles; 16 misses of 260 cycles overlapping 4 at a time.
(a)
Traffic reduction?
(b)
Stall cycles for the misses?
Check
A task of 2 billion cycles at 2 GHz and 0.9 V (8 nJ per cycle and 15 W of leakage at 1 V); and a VLIW whose code is 1.2× larger than dense.
(a)
Task energy?
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
(b)
Fraction of the VLIW's slots that are NOPs?
Check
A chip of 64 base units runs code that's 0.975 parallel, built either from 4-unit cores only or with one 4-unit core and single units elsewhere.
(a)
What does the symmetric design reach?
(b)
And the asymmetric one?
Check
A TLB has 64 entries for 4 KB pages. What's its reach?
Check
A 48-bit virtual address space uses pages of bytes and 8-byte page table entries, with each table one page in size. How many levels does the page table need?
Check
How big would a flat page table be for a 39-bit address space with -byte pages and 8-byte entries?
Check
A TLB lookup takes 1 ns and memory 80 ns. The TLB hits 0.995 of the time; a miss walks 4 levels, each a memory access. What's the average time for a memory access?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
With 4 KB pages, how large can a 4-way VIPT cache be without aliasing?
Check
Memory takes 60 ns and a page fault 5 ms. What's the largest fault rate per access that keeps the slowdown within 0.2?
Check
A machine has 48-bit virtual addresses, 4 KB pages, 8-byte page-table entries and a 1536-entry TLB with a 0.995 hit rate; memory takes 100 ns and the TLB 1 ns.
(a)
How many levels does its page table need?
(b)
What is the TLB's reach?
(c)
What is the average access time?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Reach: 48 entries, 4 KB pages?
Check
Page-table levels: 48-bit VA, -byte pages?
Check
Average access: TLB 1 ns, memory 90 ns, hit 0.99, 5 levels?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A guest's page table has 4 levels; the host's nested table has 2.
(a)
How many memory accesses can a TLB miss take?
(b)
How many times a native 4-level walk is that?
Check
A guest causes 50000 VM exits a second, each costing 1 µs.
(a)
What fraction of a core do they use?
Check
A program misses the TLB 1 times per thousand instructions; each page-walk access takes 15 ns on a 3 GHz core, with 4-level tables in both the guest and the host.
(a)
What CPI do native walks add?
(b)
And nested walks?
Check
Nested walk accesses, 2 guest and 3 host levels?
Check
Core fraction for 20000 exits a second at 1.2 µs?
Check
Nested walk CPI: 2 MPKI, 10 ns per access, 3 GHz, 4 × 4 levels?
Check
A system has 1 channels of 64-bit DRAM at 3200 MT/s. What's its peak bandwidth?
Check
A row hits 0.55 of the time; every miss is a conflict. With = 12, = 16 and = 17 ns, what's the average latency to the first data?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A DRAM timing is 22 cycles at a 1200 MHz clock. How many nanoseconds is that?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Each refresh blocks a rank for 350 ns, once every 3.9 µs. What fraction of time is lost?
Check
A DRAM chip has 16 banks of 32768 rows, each row with 1024 columns of 16 bits. What's its capacity?
Write units the way you normally would: 1.5 Gbit, 1500 Mbit and 0.0015 Tbit are the same answer.
Check
A burst of 8 transfers runs at 3200 MT/s. How long does it take?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A DRAM runs at 3200 MT/s with CL = tRCD = tRP = 16 clock cycles and bursts of 16 transfers on a 64-bit bus.
(a)
What is a row hit's latency?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
And a row conflict's?
(c)
How long does one burst take on the bus, and so how often can the bus carry 16 × 8 bytes?
Check
Peak bandwidth: 2 channels at 2933 MT/s?
Check
Average latency: hit rate 0.4, timings 13, 16, 18 ns?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Refresh overhead: 295 ns every 3.9 µs?
Check
A server has 8 memory channels at 3200 MT/s, 8 bytes wide, shared by 96 cores.
(a)
What is its peak bandwidth?
(b)
How much is that per core?
Check
A memory system delivers 200 GB/s at 80 ns latency in 64-byte lines; each core can have 32 misses outstanding.
(a)
How many misses must be in flight to reach full bandwidth?
(b)
What bandwidth can one core sustain?
Check
Local memory takes 80 ns and remote memory 130 ns; a thread makes 0.5 of its accesses remote.
(a)
What is its average latency?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
What fraction of remote accesses keeps the average at 120 ns?
Check
A kernel reads 1 GB from DRAM at 4 pJ per bit and performs 20 × 10⁹ operations at 20 pJ each.
(a)
How much energy does reading take?
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
(b)
How many times the computing energy is that?
Check
Peak bandwidth of 4 channels at 4000 MT/s?
Check
Lines in flight for 80 GB/s at 70 ns?
Check
Average latency, 90 ns local, 150 ns remote, 0.2 remote?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A loop over 500 elements runs on a vector machine with a maximum vector length of 32. How many strips does strip mining create?
Check
A vector loop of 200 elements: MVL 64, loop overhead 15 and startup 60 cycles per strip, 2 chimes. How many cycles does it take?
Check
How many 8-bit elements fit in a 256-bit SIMD register?
Check
A chip has 16 cores at 2 GHz, each with 2 FMA unit(s) of 16 lanes. What's its peak rate, counting an FMA as two operations?
Check
A memory has 16 interleaved banks. How many banks does a stride of 2 words use?
Check
A loop has 3 convoys over vectors of 64 elements on a machine with 8 lane(s). Ignoring startup, how many cycles does it take?
Check
A vector loop over 1000 elements runs with MVL = 32, 15 cycles of loop overhead and 49 of startup per strip, and 4 chimes.
(a)
How many strips does it take?
(b)
How many cycles does it take?
Check
A vector unit reads from 16 memory banks with a stride of 1 words.
(a)
How many banks does it use?
(b)
What fraction of the unit-stride bandwidth does it get?
Check
Strips for 300 elements, MVL 64?
Check
Peak: 8 cores, 2.5 GHz, 2 FMA units of 16 lanes?
Check
Cycles: 3 convoys, 64 elements, 8 lanes?
Check
An SM has 65536 registers and room for 64 warps. A kernel uses 24 registers per thread. How many warps fit?
Check
In a warp of 32, 12 threads take a path of 10 instructions and the rest a path of 20. What's the lane efficiency?
Check
A warp loads 4-byte words at a stride of 2 words. How many 32-byte sectors does it touch?
Check
Memory latency is 500 cycles, and each warp computes for 10 cycles between memory accesses. About how many warps does an SM need to stay busy?
Check
A GPU has 80 SMs of 64 FP32 lanes at 1.8 GHz. What's its peak FP32 rate?
Check
Threads of a warp access shared memory (32 banks of 4-byte words) at a stride of 4 words. How many ways does each bank conflict?
Check
An SM has 65 536 registers and room for 48 warps; a kernel uses 48 registers per thread and does 30 cycles of work between 600-cycle memory accesses.
(a)
How many warps fit?
(b)
How many warps does hiding the latency take?
Check
In a warp, 16 of 32 lanes take a 10-instruction path and the rest a 20-instruction path.
(a)
What is the lane efficiency?
Check
Warps that fit: 65536 registers, 56 per thread, at most 64?
Check
Lane efficiency: 4 lanes on 15 instructions, the rest on 25?
Check
Warps to hide 400 cycles with 8 cycles of work each?
Check
A TLB of 64 entries with 4 KB pages; a 57-bit address space with -byte pages and 8-byte entries.
(a)
TLB reach?
(b)
Page-table levels?
Check
Translation: TLB 0.5 ns, memory 80 ns, TLB hit rate 0.995, 5-level walks. And an 8-way VIPT L1 with 4 KB pages.
(a)
Average access time?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
Largest alias-free L1?
Check
A flat page table for a 39-bit space with -byte pages and 8-byte entries; memory at 100 ns and page faults at 15 ms.
(a)
Flat table size?
(b)
Largest fault rate for at most 10% slowdown?
Check
2 channels of 64-bit DRAM at 4800 MT/s, with a timing of 40 cycles at a 2400 MHz clock.
(a)
Peak bandwidth?
(b)
The timing in nanoseconds?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Row hit rate 0.35 (misses are conflicts), = 13, = 16, = 16 ns; refresh blocks 300 ns every 3.9 µs.
(a)
Average latency to first data?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
Refresh overhead?
Check
A DRAM chip of 16 banks × 65536 rows × 1024 columns × 16 bits; bursts of 16 transfers at 4800 MT/s.
(a)
Capacity?
Write units the way you normally would: 1.5 Gbit, 1500 Mbit and 0.0015 Tbit are the same answer.
(b)
Burst time?
Check
A vector loop over 300 elements: MVL 64, 15 cycles of loop overhead and 60 of startup per strip, 2 chimes.
(a)
Strips?
(b)
Cycles per element?
Check
A chip of 12 cores at 2.4 GHz, each with 2 FMA unit(s) of 512 bits, on 32-bit numbers.
(a)
Lanes?
(b)
Peak rate?
Check
16 memory banks read at a stride of 2 words; a loop of 4 convoys over 256 elements on 4 lanes.
(a)
Banks used?
(b)
Cycles, ignoring startup?
Check
An SM with 65536 registers and room for 64 warps, a kernel using 64 registers per thread, a 350-cycle memory latency and 30 cycles of work per warp between accesses.
(a)
Warps that fit?
(b)
Warps needed to hide the latency?
Check
A warp splits with 10 threads on 12 instructions and the rest on 18; it also loads 4-byte words at a stride of 8.
(a)
Lane efficiency?
(b)
32-byte sectors touched?
Check
A GPU of 84 SMs × 64 FP32 lanes at 2 GHz, with 3.3 TB/s of memory bandwidth.
(a)
Peak FP32 rate?
(b)
FLOPs per byte needed to keep the arithmetic busy?
Check
A guest's page tables have 4 levels and the host's 3; each walk access takes 25 ns.
(a)
How long can a nested TLB miss take?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Memory delivers 150 GB/s at 90 ns latency in 64-byte lines; each core keeps 20 misses in flight.
(a)
What bandwidth can one core sustain?
(b)
How many cores saturate the memory?
Check
Local memory takes 90 ns and remote 150 ns; 0.4 of accesses go remote.
(a)
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
A machine peaks at 1500 GFLOPS with 50 GB/s. What does a kernel of intensity 10 flop/byte attain?
Check
A machine peaks at 2500 GFLOPS with 60 GB/s of memory bandwidth. Where's its ridge point?
Check
A loop does 3 operations per element, reading 2 arrays and writing 2, with 8-byte elements and no reuse. What's its arithmetic intensity?
Check
A kernel processes 1 billion elements, each 4 operations and 32 bytes of DRAM traffic, on a 3000 GFLOPS, 100 GB/s machine. What's its minimum run time?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
On a 1000 GFLOPS, 100 GB/s machine, what fraction of peak can a kernel of intensity 50 reach?
Check
A matrix multiply is blocked with 64 × 64 tiles of 4-byte numbers. About what intensity does it reach, at operations for elements moved?
Check
A machine peaks at 500 GFLOP/s with 50 GB/s. A kernel of 100 G flops has an intensity of 16 flop/byte.
(a)
Where is the ridge point?
(b)
What rate can the kernel reach?
(c)
What is its shortest run time?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Attainable: 700 GFLOPS, 80 GB/s, intensity 5?
Check
Ridge point: 1200 GFLOPS, 100 GB/s?
Check
Intensity: 2 ops, 1 reads, 1 write of 8-byte elements?
Check
A core at 3 GHz and IPC 1 sends 0.002 misses per instruction to the bus, each moving a 128-byte line. How much bus bandwidth does it use?
Check
A 100 GB/s bus serves cores at 2 GHz, IPC 1, each with 0.008 bus misses per instruction and 64-byte lines. How many cores saturate it?
Check
Under MSI, a thread reads and then writes 1000 lines that no other core holds. How many bus transactions does that take?
Check
Under MESI, a thread reads and then writes 1000 lines; a fraction 0.5 of them are held by no other cache when read. How many bus transactions?
Check
Two cores each increment their own counter 2000 times, alternating, with both counters in one cache line. About how many coherence misses result?
Check
A line is shared by 7 other caches, and a core writes to it 10 times, with the other caches rereading it between writes. How many invalidations reach other caches in all?
Check
A 64 GB/s snooping bus serves cores at 2 GHz and IPC 2; each misses 0.01 times per instruction with 64-byte lines.
(a)
How much bus traffic does each core make?
(b)
How many cores can the bus support?
Check
Bus traffic per core: 2.5 GHz, 0.004 misses per instruction, 64-byte lines?
Check
Cores to saturate a 50 GB/s bus: 3 GHz, 0.002, 128-byte lines?
Check
MESI transactions: 300 lines, 0.6 unshared?
Check
A full bit-vector directory tracks 64 cores for 32-byte lines. What's its storage overhead relative to the data?
Check
A limited-pointer directory keeps 2 pointers per line for 1024 cores. How many bits of pointers is that?
Check
What's the diameter of an 8 × 8 mesh?
Check
What's the average distance between two distinct nodes of an 8 × 8 mesh under uniform traffic?
Check
An 8 × 8 torus has links of 16 GB/s in each direction. What's its bisection bandwidth, counting one direction?
Check
A directory miss has 3 messages on its critical path, each crossing 3 hops of 5 ns and paying 20 ns of overhead at the end. What's the network part of its latency?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Compare an 8 × 8 mesh and an 8 × 8 torus.
(a)
What is the mesh's diameter?
(b)
What is its average distance under uniform traffic?
(c)
What is the torus's bisection?
Check
A directory serves 256 cores with 64-byte lines.
(a)
What storage overhead does a full bit vector add?
(b)
How many bits do 8 limited pointers take?
Check
Bit-vector overhead: 32 cores, 64-byte lines?
Check
Diameter of an 8 × 8 mesh?
Check
Network latency: 2 messages, 4 hops of 4 ns, 25 ns overhead?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
An 8 × 8 mesh has 2-cycle routers and 1-cycle links 32 bytes wide; a message carries 128 bytes.
(a)
What is its zero-load latency at the average distance?
(b)
And corner to corner?
Check
An 8 × 8 network has links 16 bytes wide in each direction at 2 GHz.
(a)
What injection rate per node saturates a mesh under uniform traffic?
(b)
And a torus?
(c)
What is the mesh's bisection bandwidth in each direction?
Check
A flit takes 1 cycle(s) to cross a link and 2 cycles to leave the next router's buffer; the credit takes 2 cycle(s) to return. Each virtual channel has 4 buffer slots.
(a)
What is the credit round trip?
(b)
What fraction of the link's capacity can one virtual channel use?
Check
Zero-load latency on a 6 × 6 mesh, 2-cycle routers, 4 flits?
Check
Saturation injection rate for an 8 × 8 mesh?
Check
Credit round trip: 1-cycle link, 3-cycle router, 1-cycle credit?
Check
8 cores contend for a test-and-test-and-set lock, one holding it and the rest waiting. Each release makes every waiting core miss twice, and one fewer waits after each handoff. How many transactions until all have held it?
Check
The same 32 cores use a ticket lock, where each release costs one miss per waiting core. How many transactions until all have held it?
Check
Every thread spends 0.04 of its time holding one shared lock. At most how many threads' worth of throughput can the program reach?
Check
A tree barrier with fan-in 2 gathers 1000 threads, taking 60 ns per level. How long does the arrival phase take?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Threads spend 0.05 of their time in one critical section; a barrier joins 64 threads.
(a)
What is the most throughput, in threads' worth, the lock allows?
(b)
How long does a tree barrier with fan-in 8 take, at 50 ns per level?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(c)
And a centralized counter at 50 ns per atomic?
Check
Test-and-test-and-set transactions for 8 cores?
Check
Throughput limit with 0.04 in one critical section?
Check
Tree barrier: 256 threads, fan-in 4, 80 ns per level?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
A machine peaks at 900 GFLOPS with 80 GB/s; a kernel has intensity 40 flop/byte.
(a)
Ridge point?
(b)
Attainable performance?
Check
A streaming loop does 4 operations per element, reading 2 arrays and writing 1, with 8-byte elements, on a machine with 300 GB/s.
(a)
Intensity?
(b)
Performance if memory-bound?
Check
A kernel of 2 billion elements, 6 ops and 40 bytes each, on a 5000 GFLOPS, 150 GB/s machine; separately, a matrix multiply blocked by 32 with 8-byte numbers.
(a)
The kernel's minimum time?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
The multiply's intensity?
Check
Cores at 2.5 GHz, IPC 1, 0.003 bus misses per instruction, 128-byte lines, on a 240 GB/s bus.
(a)
Traffic per core?
(b)
Cores at saturation?
Check
A thread reads then writes 400 lines, 0.4 of them unshared; separately, two cores increment falsely shared counters 5000 times each, alternately.
(a)
MSI bus transactions?
(b)
MESI bus transactions?
(c)
Coherence misses from the false sharing, about?
Check
A directory for 256 cores with 64-byte lines.
(a)
Full bit-vector overhead?
(b)
Overhead with 6 limited pointers?
Check
A 10 × 10 network with 25 GB/s links.
(a)
Mesh diameter?
(b)
Mesh average distance between distinct nodes?
(c)
Torus bisection bandwidth (one direction)?
Check
A directory miss with 2 critical-path messages on an 8 × 8 mesh at average distance, 3 ns per hop and 20 ns overhead per message.
(a)
Average hops per message?
(b)
Network latency of the miss?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
16 cores contend for a lock, one holding it, until all have held it.
(a)
Test-and-test-and-set transactions (two misses per waiter per handoff)?
(b)
Ticket lock (one per waiter per handoff)?
(c)
MCS lock (one per handoff)?
Check
Threads spend 0.02 of their time under one lock; 16 threads meet at a barrier (tree of fan-in 8 at 70 ns per level, or a central counter at 25 ns per atomic).
(a)
Throughput limit, in threads?
(b)
Tree barrier arrival time?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(c)
Central counter arrival time?
Check
A machine of 1200 GFLOPS and 100 GB/s, whose peak assumes 16-lane SIMD; a kernel of intensity 30 doesn't vectorize.
(a)
The scalar compute ceiling?
(b)
What the kernel attains?
Check
A line shared by 7 other caches is written 20 times, with rereads between writes; separately, 8 cores each read then write a private line under MESI, 0.9 of the time finding no other copy.
(a)
Invalidations?
(b)
MESI transactions for the private lines?
Check
An 8 × 8 mesh has 2-cycle routers and 1-cycle, 16-byte links; messages carry 80 bytes.
(a)
What is the zero-load latency at the average distance?
Check
Uniform random traffic runs on an 8 × 8 network.
(a)
What injection rate per node saturates a mesh?
(b)
And a torus?
Check
A link's credit loop is 1 cycle(s) across, 2 through the router and 2 back.
(a)
How many buffers per virtual channel keep the link busy?
Check
A covert channel sends one symbol every 500 cycles at 3 GHz, and 0.2 of symbols are misread.
(a)
What is its raw symbol rate?
(b)
How much information does each symbol carry?
(c)
What information rate can it reach with ideal coding?
Check
A Spectre round costs 5000 cycles of setup and probes 256 lines at 200 cycles each, on a 4 GHz core.
(a)
How long does each byte take?
(b)
How fast does it leak?
Check
DRAM rows cycle in 45 ns, the refresh window is 32 ms, and a vulnerable row flips after 50000 activations of a neighbor.
(a)
How many activations fit in one refresh window?
(b)
How long does it take to reach the flipping threshold?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A mitigation costs 30 ns each time it triggers, 100000 times a second.
(a)
What fraction of a core does it take?
Check
Bits per symbol at a 0.1 error rate?
Check
Activations per 64 ms window at 40 ns per row cycle?
Check
Core fraction for 200000 events a second at 100 ns each?
Check
A guest uses 4-level page tables on a host with 4-level nested tables. Huge pages in both remove one level from each.
(a)
How many accesses can a TLB miss take?
(b)
And with huge pages in both dimensions?
Check
A VM causes 20000 exits a second at 1 µs each, on a 32-core host running one such VM per core.
(a)
What fraction of each core goes to exits?
(b)
How many cores' worth is that across the host?
Check
Each core moves 1 bytes from memory per instruction at IPC 1.5 and 3.5 GHz; the server has 12 channels at 4800 MT/s (8 bytes wide) for 64 cores.
(a)
What bandwidth does each core need?
(b)
What is each core's share?
Check
A chip's memory delivers 100 GB/s at 80 ns, in 64-byte lines; each core can keep 24 misses in flight.
(a)
How many misses must be in flight for full bandwidth?
(b)
How many cores does that take?
Check
Local memory takes 85 ns and remote 140 ns; a thread makes 0.5 of its accesses remote.
(a)
What is its average latency?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
How much slower is that than all-local?
Check
A kernel moves 0.5 GB from DRAM at 5 pJ per bit and performs 10 × 10⁹ operations at 20 pJ each.
(a)
What energy does it use in all?
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
(b)
What share is data movement?
Check
An 8 × 8 mesh has 2-cycle routers and 1-cycle links 32 bytes wide; packets carry 128 bytes.
(a)
What is the zero-load latency at the average distance?
(b)
What injection rate per node saturates it under uniform traffic, in bytes per cycle?
Check
A link's credit loop: 1 cycle(s) across, 3 through the next router, 2 for the credit's return. Each virtual channel has 8 buffers.
(a)
What is the credit round trip?
(b)
What fraction of the link can one virtual channel use?
Check
A cache covert channel sends a symbol every 1000 cycles at 3 GHz and misreads 0.25 of them.
(a)
What information rate can it reach with ideal coding?
Check
A Spectre round takes 5000 cycles of setup plus 256 probes of 150 cycles, at 5 GHz; the target is a 32-byte key.
(a)
How fast does it leak?
(b)
How long does the key take?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
DRAM rows cycle in 40 ns with a 32 ms refresh window; a victim row flips after 100000 neighbor activations.
(a)
How many activations fit in a window?
(b)
What fraction of the window does an attack need?
Check
8 cores each have a 1 MB private L2 under a 64 MB L3 sliced over a 6 × 6 mesh (10-cycle slices, 2 cycles per hop).
(a)
How much distinct data fits if the L3 is exclusive?
(b)
What is the average latency to an L3 slice?
Check
A 16 MB, 8-way LLC with 64-byte lines uses tree pseudo-LRU. A program that misses 0.04 alone shares it equally among 8 programs.
(a)
How much replacement state does the cache hold?
(b)
What miss rate does the program see when sharing?
Check
A side channel through the L1 can be closed two ways: flushing the L1 on every context switch, at 2 µs per flush with 50 thousand switches a second; or partitioning the cache, which multiplies a program's miss rate by 2. The program spends 10% of its time in cache stalls before partitioning.
(a)
What does flushing cost, as a fraction of a core?
(b)
How much more time does partitioning add, if stalls grow in proportion to the miss rate?
Check
A data center draws 12 MW in total while its IT equipment draws 8 MW. What's its PUE?
Check
A server peaks at 200 W and idles at 0.3 of that. What does it draw at 0.5 utilization?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
A server idles at 0.2 of its peak power. At 0.3 utilization, what's its energy efficiency relative to full load?
Check
10000 servers average 180 W in a facility with PUE 1.5. At 100 dollars per MWh, what does a 730-hour month of electricity cost, in dollars?
Check
A request fans out to 20 servers and waits for all. Each is slow with probability 0.01, independently. What fraction of requests are slow?
Check
A data center has 20000 servers, each with an MTTF of 3 years. How many fail per day, on average?
Check
10000 servers peak at 300 W and idle at 0.5 of peak, running at 0.5 utilization in a facility with PUE 1.1; electricity costs 50 dollars per MWh.
(a)
What does each server draw?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
What is the monthly electricity bill, in dollars (730 hours)?
Check
A request fans out to 100 servers, each slow with probability 0.001. Separately, a facility has 100000 servers with an MTTF of 5 years.
(a)
What fraction of requests are slow?
(b)
How many servers fail per day?
Check
Server power: peak 250 W, idle 0.4, utilization 0.45?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
Check
Slow requests: fan-out 50, each slow with 0.005?
Check
Efficiency at 0.2 utilization, idle at 0.3?
Check
A 128 × 128 array of multiply-accumulate units runs at 0.7 GHz. What's its peak rate, counting a MAC as two operations?
Check
A 128 × 128 systolic array streams 64 input vectors through one set of weights, taking cycles. What's its utilization?
Check
A layer dimension of 520 is mapped onto an array of width 128. What fraction of the tiles' width is used?
Check
An accelerator peaks at 100 TOPS with 30 GB/s of memory bandwidth. Where's its ridge point, in operations per byte?
Check
An accelerator peaks at 400 TOPS with 30 GB/s of weight bandwidth. A layer uses each 8-bit weight for a batch of 4 vectors (2 operations each). What does it attain?
Check
Weights stored as 32-bit numbers are quantized to 8 bits. By what factor does the memory traffic for weights fall?
Check
A weight-stationary systolic array is 128 × 128 at 0.7 GHz; a pass streams a batch of 512 vectors, and a layer is 1000 wide.
(a)
What is its peak?
(b)
How busy is it during a pass?
(c)
What is the layer's tiling efficiency?
Check
Peak of a 128 × 128 array at 0.9 GHz?
Check
Utilization: 64 × 64 array, batch 100?
Check
Tiling efficiency: dimension 200, width 128?
Check
An n × n crossbar (n = 128) performs one matrix-vector product per 50 ns, using 10 nJ per product, converters included.
(a)
How many multiply-accumulates does it perform per second?
(b)
What energy 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 processing-in-memory system has 2560 banks, each feeding its unit 0.5 GB/s; the host has 8 channels of 38.4 GB/s.
(a)
What aggregate bandwidth do the in-memory units see?
(b)
How many times the host's bandwidth is that?
Check
A fraction 0.7 of a kernel's time is data movement that offloading speeds up 5 times, at an overhead of 0.1 of the original time.
(a)
What speedup results?
(b)
What is the most any speedup of data movement could give?
Check
Reading a bit from DRAM costs 15 pJ; moving a bit across a logic die costs 0.05 pJ per mm, and near-memory logic sits 5 mm from its data.
(a)
What does fetching a 64-bit word off-chip cost?
Write units the way you normally would: 1.5 pJ and 0.0015 nJ are the same answer.
(b)
How many times cheaper is delivering it to the near-memory logic?
Check
MAC rate of a 128 × 128 crossbar at one product per 100 ns?
Check
Offload speedup, movement fraction 0.6, 8 times faster, 5% overhead?
Check
Aggregate PIM bandwidth, 2048 banks at 0.5 GB/s?
Check
A component has an MTTF of 50000 hours and takes 2 hours to repair. What's its unavailability, in parts per million?
Check
A system needs three parts with MTTFs of 100000, 500000 and 200000 hours. What's its MTTF?
Check
A service runs 2 independent replicas, each available 0.999 of the time. How many nines of availability does it have?
Check
A service is available 0.995 of the time. How many minutes of downtime is that per year?
Check
A RAID 5 array of 8 disks has an MTTF of 500000 hours per disk and a 48-hour rebuild. What's its MTTDL, in years?
Check
A request passes through 10 components in series, each available 0.999 of the time. What's the end-to-end unavailability?
Check
A system has an MTTF of 10000 hours and a repair time of 1 hours.
(a)
What is its unavailability, one minus the availability?
(b)
How much downtime does it have per year?
Check
A RAID 5 array has 4 disks with an MTTF of 100000 hours and a 48-hour rebuild.
(a)
What is its mean time to data loss?
Check
Unavailability in ppm: MTTF 20000 h, MTTR 4 h?
Check
Series MTTF: 200000 h and 60000 h?
Check
Downtime per year at 0.998?
Check
What's the average rotational latency of a 7200 RPM disk?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A disk has an 8 ms average seek, spins at 7200 RPM and transfers 250 MB/s. How long does a random 64 KB read take, ignoring controller overhead?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Requests arrive at random, 20 per second, at a device whose mean service time is 5 ms. What's the mean response time by the M/M/1 model?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Requests arrive at 200 per second and each spends 5 ms in the system on average. How many are in the system on average?
Check
A device's mean service time is 4 ms. What's the highest arrival rate, per second, that keeps the M/M/1 mean response time at 10 ms?
Check
An SSD of 2 TB has cells rated for 600 program/erase cycles and a write amplification of 4. The host writes 200 GB a day. How many years does it last?
Check
A disk spins at 7200 RPM, seeks in 4 ms on average and transfers at 250 MB/s.
(a)
How long does a random 4 KB read take?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
How many can it do per second?
Check
A server takes 5 ms per request, and requests arrive at 20 per second (M/M/1).
(a)
What is its utilization?
(b)
What is the mean response time?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(c)
How many requests are in the system on average?
Check
Rotational latency at 7200 RPM?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
M/M/1 response: service 3 ms, 60 per second?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Little's law: 100 per second, 8 ms each?
Check
A link has 1 lanes at 8 GT/s with an encoding efficiency of 0.9846. What is its bandwidth in each direction?
Check
A NIC receives 10 Gb/s of 64-byte packets; each interrupt costs 5 µs of CPU.
(a)
How many cores do interrupts use at one per packet?
(b)
And with one interrupt per 64 packets?
Check
A device has 20 µs of latency per request. How many requests must be outstanding to sustain 0.5 million per second?
Check
A PCIe transfer carries 256 bytes of payload with 24 bytes of packet overhead. What percentage of the link carries payload?
Check
A NIC at 40 Gb/s coalesces 64 packets of 1500 bytes per interrupt. Up to how much latency does that add to the first packet of a batch?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
Simulate interrupt coalescing. Packets arrive as a Poisson process at lam = 0.6 per µs (exponential gaps, rng = random.Random(1), 100 000 packets). The NIC raises an interrupt when B = 8 packets have accumulated or 20 µs after the first unserviced packet, whichever comes first. Set irq_rate (interrupts per µs), mean_wait (average µs from a packet's arrival to its interrupt) and per_packet (irq_rate / lam).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
What is the per-direction bandwidth of PCIe with 2 lanes at 8 GT/s and 128b/130b encoding?
Check
How many requests must be in flight to sustain 0.25 million per second at 50 µs latency?
Check
The CPI's coefficient of variation across samples is 0.8. How many samples give a relative error of 0.05 at confidence z = 1.96?
Check
With 10000 samples, a coefficient of variation of 0.4 and z = 1.96, what's the relative error?
Check
How many hours does a simulator running at 20 thousand instructions a second take for 50 billion instructions?
Check
Three programs each do the same amount of work, at 50, 300 and 400 MFLOPS. What's the overall rate across all three?
Check
A CPI stack is base 0.5, branches 0.1, L2 hits 0.3 and memory 1.2. An optimization cuts the memory component to 0.3 of its size. What's the speedup?
Check
A CPI stack is base 0.5, branches 0.1, L2 0.3 and memory 1. What fraction of the time goes to memory stalls?
Check
SMARTS sampling must estimate CPI within 0.01 at confidence z = 3; the CPI's coefficient of variation across samples is 0.3, and each sample simulates 10000 instructions in detail at 100 000 instructions a second.
(a)
How many samples does it need?
(b)
How long does the detailed simulation take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A core's CPI stack is base 0.5, branch mispredictions 0.1, L2 hits 0.2 and memory 1.2.
(a)
What fraction of the time goes to memory?
(b)
What speedup does halving the memory part give?
Check
Samples for error 0.04, CoV 0.5, z = 1.96?
Check
Overall rate of two equal-work programs at 80 and 400 MFLOPS?
Check
Speedup from cutting memory to 0.7: stack 0.6, 0.1, 0.2, 1.5?
Check
20000 servers peak at 250 W, idle at 0.6 of peak and run at 0.4 utilization, with PUE 1.1 and electricity at 60 dollars per MWh.
(a)
Average power per server?
Write units the way you normally would: 1.5 W, 1500 mW and 0.0015 kW are the same answer.
(b)
Monthly electricity cost (730 hours), in dollars?
Check
A server idles at 0.25 of peak and runs at 0.15; requests fan out to 300 servers, each slow with probability 0.01.
(a)
Energy efficiency relative to full load?
(b)
Fraction of requests that are slow?
Check
30000 servers with an MTTF of 4 years; the facility draws 25 MW in total for 20 MW of IT load.
(a)
Failures per day?
(b)
PUE?
Check
A 128 × 128 systolic array at 0.9 GHz runs passes of 1000 input vectors.
(a)
Peak rate?
(b)
Utilization of a pass?
Check
A layer of width 600 on an array of width 128; separately, an accelerator of 250 TOPS and 600 GB/s running a layer that reuses each 8-bit weight across a batch of 8.
(a)
Tiling efficiency?
(b)
Attainable rate?
Check
A component with MTTF 30000 hours and MTTR 8 hours; and a service of 3 independent replicas each available 0.999.
(a)
The component's unavailability?
(b)
The service's nines?
Check
A server needs parts with MTTFs of 150000, 80000 and 1000000 hours; a RAID 5 array has 10 disks of MTTF 1000000 hours and a 72-hour rebuild.
(a)
Server MTTF?
(b)
RAID 5 MTTDL in years?
Check
A disk with a 5 ms seek, 7200 RPM and 280 MB/s transfer reads 128 KB at random.
(a)
Rotational latency?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
Random reads per second?
Check
A device with a 2 ms service time gets 50 random requests per second.
(a)
Mean response time (M/M/1)?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
(b)
Average number in the system?
(c)
Highest rate for a 30 ms mean response?
Check
An SSD of 1 TB, 1000 P/E cycles, write amplification 3.5, with 400 GB of host writes a day; a service available 0.995 of the time.
(a)
SSD lifetime?
(b)
Service downtime per year?
Check
Sampling a CPI with coefficient of variation 0.4 at z = 1.96; separately, 200 billion instructions on a 50 thousand instruction per second simulator.
(a)
Samples for ±0.03?
(b)
Full detailed simulation time?
Check
A CPI stack of base 0.55, branches 0.08, L2 0.25, memory 1.4; and two equal-work programs at 60 and 300 MFLOPS.
(a)
Speedup if memory stalls shrink to 0.5 of their size?
(b)
Overall rate of the two programs?
Check
A cache timing channel sends one symbol per 1000 cycles at 2 GHz and misreads 0.15 of them.
(a)
What information rate can it reach?
Check
A kernel spends 0.6 of its time moving data; offloading makes that 8 times faster at an overhead of 0.06.
(a)
What speedup results?
Check
A crossbar of 64 × 64 resistive cells completes one matrix-vector product every 100 ns.
(a)
What multiply-accumulate rate is that?
Check
An SSD on a PCIe link of 4 lanes at 16 GT/s (128b/130b) has 100 µs of read latency.
(a)
What is the link's per-direction bandwidth?
(b)
How many reads must be in flight for 1 million reads per second?
Check
Instruction 7 issues in cycle 7 // 1, and its only producer writes in cycle 3. It runs for 10 cycles. In which cycle does it write, with an unlimited bus?
Check
An instruction issued long ago needs two producers, which write in cycles 3 and 5. It runs for 4 cycles. In which cycle does it write, with an unlimited bus?
Check
3 results are all ready in cycle 6, and there's one result bus, oldest first. In which cycle does the youngest of them write?
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.
Check
Under MESI, 8 cores each read then write their own private line. How many bus transactions in all?
Check
Under MSI, 8 cores each read then write their own private line. How many bus transactions?
Check
Two cores alternately write one line, 20 times each, starting with core 0. How many BusRdX transactions are there?
Check
A snooping bus moves 128 GB/s; cores run at 2 GHz and IPC 2, each making 0.005 bus misses per instruction with 64-byte lines.
(a)
How many cores can it support?
Check
A thread reads and then writes 1000 lines that no other core holds.
(a)
How many bus transactions does MSI need?
(b)
And MESI?
Check
8 threads each update their own 4-byte counter.
(a)
How many counters share each line when packed?
(b)
How much memory do the counters take when padded to a line each?
Check
A directory serves 256 cores with 64-byte lines.
(a)
What does a full bit vector add to memory?
(b)
And 8 limited pointers?
Check
A core writes a line shared by 15 other caches, on a directory protocol.
(a)
How many invalidations does the home send?
(b)
How many messages in all, counting the request, acknowledgments and the reply?
Check
A directory miss has 3 critical-path messages on an 8 × 8 mesh, each crossing the average distance at 2 ns per hop plus 20 ns of overhead.
(a)
What is its latency?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
8 threads each spend 0.05 of their time holding one lock.
(a)
What is the most throughput, in threads' worth, the lock allows?
(b)
What speedup does Amdahl's law give, treating the critical section as serial?
Check
32 cores take turns with a lock until each has held it once.
(a)
How many does a test-and-test-and-set lock take?
(b)
And a ticket lock?
(c)
And an MCS lock?
Check
1024 threads meet at a barrier: a tree of fan-in 2 at 80 ns per level, or a centralized counter at 40 ns per atomic.
(a)
How long does the tree take?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
(b)
And the counter?
Check
A program's parallel fraction, measured on 64 processors, is 0.9.
(a)
What scaled speedup does Gustafson's law give?
(b)
And what fixed-size speedup would Amdahl's law give, if p were the single-processor fraction?
Check
A core at 4 GHz and IPC 3 issues stores as 0.1 of its instructions; each store waits 10 cycles in the store buffer before it drains.
(a)
How many store-buffer entries are occupied on average?
Check
A program executes 1000000 fences a second, each draining the store buffer for 20 ns.
(a)
What fraction of the time do fences cost?
Check
Under contention, a load-reserved/store-conditional pair succeeds with probability 0.6 per attempt.
(a)
How many attempts does an update take on average?
(b)
What fraction of updates need more than three attempts?
Check
A parallel program suffers 2 coherence misses per thousand instructions, each costing 80 cycles, on cores whose CPI is otherwise 1.
(a)
What CPI do coherence misses add?
(b)
What share of the time do they take?
Check
In a MESI system, 8 cores each read a line, then one of them writes it 100 times with no other access in between.
(a)
How many copies does the first write invalidate?
(b)
How many bus transactions do the remaining writes need?
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?
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?
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 S4