All labs

Amdahl's Ceiling

Add workers to a job with a serial fraction and watch the speedup flatten — then add coordination cost and watch it reverse.

Ch 10 10.7
Simulator
Systems & Performance
15 mindifficulty 2/5

Controls

10.0%

The share of the work that cannot be parallelised at all.

16
Coordination overhead
0.0040

Cost per unit of coordination, as a fraction of the serial runtime.

Show Gustafson's law

Scaled speedup when the problem grows with the machine.

Show efficiency

Speedup divided by workers.

Speedup against worker count

The dashed diagonal is linear speedup. The flat asymptote is 1/s — no machine gets past it.

01234550100150200250p = 16workers pspeedup
Amdahl with overheadlinear speedupGustafson (scaled problem)Amdahl ceiling 1/sbest achievable p
Speedup at p = 16
4.62×
runtime 21.6% of serial
Amdahl ceiling
10×
s = 10.0%
Best p / best speedup
15 → 4.63×
beyond this, adding workers hurts
Efficiency
28.9%
11.4 workers' worth wasted

Parallel efficiency

Speedup per worker. Cloud bills are proportional to p, not to speedup.

00.200.400.600.80150100150200250perfecthalf wastedworkers pefficiency

What doubling buys you

Marginal return of each doubling of the machine.

p = 11×
p = 21.81×+0.81
p = 42.97×+1.16
p = 84.16×+1.19
p = 164.62×+0.47
p = 323.97×-0.66
p = 642.73×-1.23
p = 1281.63×-1.11
p = 2560.89×-0.74

Reading the two laws apart

Amdahl at p4.62×
Gustafson at p14.50×
overhead share at p27.7%
90%-of-peak worker count9

Amdahl fixes the problem size and asks how fast it can be solved. Gustafson fixes the time budget and asks how large a problem fits. Both are correct; they answer different questions.

Doubling the cores does not halve the runtime

With just 10% serial work, 16 workers give about 6× and 256 workers still give under 10×. Add any coordination cost and the curve stops rising, then falls: past the peak, every extra worker makes the job slower and the bill larger. Profile to find s before renting a cluster.