What is Gustafson's law?
The observation that when processors are added and the problem is enlarged, the parallel fraction grows, giving gains nearly proportional to processor count.
Japanese name: グスタフソンの法則
The observation that when processors are added and the problem is enlarged, the parallel fraction grows, giving gains nearly proportional to processor count.
Japanese name: グスタフソンの法則
Amdahl's law considers adding processors while the problem size stays fixed. In that case the serial part, which cannot be parallelized, sets the upper limit on speedup. Gustafson pointed out that machines are often used differently. With more processors, users tend to solve a larger problem in the same waiting time. A simulation run on a finer grid is an example. He therefore proposed fixing the run time and letting the problem size change.
Let N be the number of processors and s the fraction of the run time on N processors that is spent in the serial part. Doing the same work on one processor would take N times as long for the parallel part. The one-processor time is s + (1 − s) × N, taking the time on N processors as 1. The scaled speedup is therefore S = N − s × (N − 1). With s = 0.1 and N = 16, S = 16 − 0.1 × 15 = 14.5. The smaller s is, the closer S comes to N.
The formula assumes that the time of the serial part does not grow when the problem is enlarged. What grows is the parallel work, so the serial fraction shrinks. Communication and synchronization costs and a shortage of memory bandwidth are not in the formula. Actual values are therefore often lower than it predicts. When a problem of fixed size must be solved faster, Amdahl's law is the one that applies. Weak scaling evaluation corresponds to the idea behind this law.
Answer: A. When adding processors, also enlarging the problem increases the parallel fraction, yielding large speedups
Amdahl's law considers adding processors to a fixed-size problem, so the serial part caps the speedup. Gustafson's law instead assumes that with more processors one solves a larger problem in the same time. Enlarging the problem, for example with a finer simulation grid, grows the parallel part and shrinks the serial fraction, giving gains nearly proportional to processor count.
No. Amdahl's law fixes the problem size and Gustafson's law fixes the run time, so they answer different questions. The serial fraction is also measured differently: the s = 0.1 on N processors in the example above is 0.1 ÷ 14.5 ≈ 0.7% of the one-processor time.
It is not the factor by which the same problem got faster. It compares the large problem solved on N processors with the time one processor would need for that same large problem. That problem is often too large to run on one processor in practice, in which case the value is an estimate.
Gustafson's law appears in 2 practice questions across 2 topics, including Performance Analysis, CPUs and architecture.
As an Amazon Associate I earn from qualifying purchases.
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.