Scaling Limits — Amdahl, Gustafson and the Coherency Penalty
Three models of what happens when you add machines: a hard ceiling, an escape from it, and the case where throughput actually falls.
The ceiling
Let a fixed workload take unit time on one processor, of which a fraction is serial and is perfectly parallelisable across processors. Then
Key idea
With 5% serial work the ceiling is , and 64 processors already deliver — 77% of everything more hardware will ever give. The practical reading is not "parallelism is futile" but measure before buying: the derivative falls off a cliff at , and spending past that point is close to pure waste.
The escape
Amdahl assumes the problem is fixed. Often it is not: given more machines, people run bigger batches, longer contexts, more shards.
Suppose that on processors the work is sized so that the run takes unit wall-clock time, of which is serial and is parallel. The same work on one processor would take . Hence
which is linear in with no ceiling.
The case where more machines are worse
Both laws above are monotone in . Real distributed systems often are not: throughput peaks and then declines. The universal scalability law adds a term for the cost of keeping participants consistent, which grows like the number of pairs.
Define relative capacity
with the contention coefficient (serialisation, as in Amdahl) and the coherency coefficient (pairwise consistency traffic). If then is maximised at
and as .
Assumptions
This is a two-parameter model, fitted to measurements, not a theorem about computation. Its justification is that captures a queueing-like serial term and a term proportional to pairwise interactions; whether a given system obeys it is an empirical question. It is stated here because the qualitative prediction — an interior maximum — is real and is routinely observed.
With and the formula gives , and a direct search over integer agrees at . Beyond that, adding machines reduces total throughput.
Key idea
The three regimes are distinguished by a single question: what has to agree with what?
- Nothing shared, no serial section: linear scaling.
- A serial section: Amdahl, flattening at .
- Every participant must see every other's updates: coherency, peaking at and then falling.
A distributed KV cache with cross-replica invalidation is in the third regime. Independent stateless replicas behind a load balancer are in the first. Which one you are in is an architectural choice, not a tuning parameter.
What this does not say
None of these models say anything about latency — they are all statements about throughput or completion time of a fixed job. A system can be scaling perfectly by while its p99 degrades, because adding replicas increases fan-out, and Tail Latency and Fan-Out Amplification showed what fan-out does to a tail. Capacity and tail latency must be tracked separately; optimising one routinely damages the other.
References
- PaperG. M. Amdahl (1967). Validity of the Single Processor Approach to Achieving Large Scale Computing CapabilitiesTwo pages, and the source of the ceiling argument.
- PaperJ. L. Gustafson (1988). Reevaluating Amdahl's LawPoints out that the fixed-problem-size assumption is what produces the ceiling.
- BookN. J. Gunther (2007). Guerrilla Capacity PlanningDevelops the universal scalability law and its two-parameter fit.
These works are cited as sources to read, not reproduced. All exposition, examples and problems on this site are written independently; where an argument is standard, the citation points to a canonical treatment.
Results stated on this page
- PropositionAmdahl's lawproof includedIf a fraction s of the work is inherently serial, speedup is capped at 1/s however many processors are added.
- PropositionGustafson's scaled speedupproof includedIf the problem grows with the machine so that the serial part stays fixed in absolute time, speedup is linear in the processor count.
- PropositionThe universal scalability law has an interior maximumproof includedWith a coherency term, capacity peaks at p* = sqrt((1−α)/β) processors and decreases beyond it.