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.

Field: Performance Analysis

Japanese name: グスタフソンの法則

A second look at Amdahl's law

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.

The formula and its symbols

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.

Assumptions and limits

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.

Try it: questions about Gustafson's law

What idea does Gustafson's law express?

  1. AWhen adding processors, also enlarging the problem increases the parallel fraction, yielding large speedups
  2. BNo matter how many processors are added, speedup is always capped at 2×
  3. CThe parallel fraction is always constant regardless of problem size
Show answer and explanation

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.

FAQ

Does it contradict Amdahl's law?

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.

Is the scaled speedup the factor by which a program actually got faster?

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.

Questions that mention Gustafson's law (1)

Gustafson's law appears in 2 practice questions across 2 topics, including Performance Analysis, CPUs and architecture.

  1. If 90% of a program can be parallelized, what is the theoretical maximum speedup when it runs on an unlimited number of processors?

Books on Performance Analysis Ad

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

Semiconductor, Electronics and Computing Calculators

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.

Back to the glossary