Technology & computing

Amdahl's law

Gene Amdahl (1922–2015) First described 1967

Adding processors only speeds up the part of a job that can be shared out; the rest sets a hard limit.

The idea

Amdahl's law says that the speed-up you get from running a job on many processors is limited by the part of the job that can't be shared out. If 10% of the work must happen one step at a time, then no number of processors can make the whole job more than ten times faster.

It is named after Gene Amdahl, a computer architect at IBM. In a short 1967 conference paper, he argued that the effort spent on high parallel speeds was wasted unless the sequential part of the work got faster too. The paper had no equations. Others later turned his argument into the formula used today: speed-up = 1 ÷ ((1 − p) + p ÷ N), where p is the share of work that can run in parallel and N is the number of processors.

Picture ten painters on a house. They can split the walls between them, but only one person can paint the narrow front door, and everyone waits until it's done. Hire a hundred painters and the walls take no time, but the door still does.

That's why programmers hunt for the sequential bottleneck first: speeding it up often helps more than adding processors. The law is exact under its assumptions, and its main assumption is that the job stays the same size. In practice, bigger machines often take on bigger problems, where the parallel part grows, as John Gustafson pointed out in 1988.

Try it yourself

Try this: Push processors to 1,024. Now nudge the parallel share from 90% to 99%. Which helped more?