Skip to content
Sahithyan's S3
Sahithyan's S3 — Operating Systems

Amdahl's Law

the overall performance improvement gained by optimizing a single part of a system is limited by the fraction of time that the improved part is actually used.

A formula that shows how much faster a task can be completed when more resources are added to the system.

speedup=1S+1SN\text{speedup} = \cfrac{1}{S + \frac{1 - S}{N}}

Here:

  • NN - number of processing cores
  • SS - serial portion of the task
  • P=1SP = 1- S - parallel portion of the task

Serial portion of an application has disproportionate effect on performance gained by adding additional cores.

As NN increases, the speedup approaches 1S\frac{1}{S}.