Effective MIPS Under Exclusive Program Execution: Amdahl’s Law
Let be the fraction of a program’s code that can be executed simultaneously by processors, and let be the fraction that must run sequentially on a single processor. If each processor runs at MIPS, then the effective system throughput (in MIPS) is governed by Amdahl’s Law: overall speedup is limited by the sequential fraction.
We model exclusive execution as follows:
- Parallel fraction is sped up by using processors.
- Sequential fraction has no parallel benefit and runs at the single-processor rate.
keyword
keyword
keyword
keyword
Footnotes
-
Amdahl's law - Wikipedia - Presents the standard form of Amdahl’s Law for limiting speedup via the sequential fraction. ↩
Derive effective MIPS for exclusive execution
- 1Step 1
Represent total work as a fraction (parallelizable) plus (sequential).
- 2Step 2
Parallel part executes in time proportional to because processors share the parallel work.
- 3Step 3
Sequential part executes in time proportional to because it must run on a single processor.
- 4Step 4
Overall effective speedup factor relative to single-processor execution is This is the standard Amdahl’s-law form: serial term plus parallel term divided by .
- 5Step 5
Single-processor throughput is MIPS, so
(a) Effective MIPS in terms of , , and
Let denote the parallelizable fraction (your problem statement uses ; it plays the role of ). Then the effective MIPS for exclusive execution is:
This follows directly from Amdahl’s Law speedup and multiplying by the per-processor rate when processors are otherwise identical. 2
Footnotes
-
Amdahl's law - Wikipedia - Presents the standard form of Amdahl’s Law for limiting speedup via the sequential fraction. ↩
-
Amdahl’s Law in Computer Organization - GeeksforGeeks - Gives the common speedup formula and explains as sequential portion. ↩
Key interpretation
The denominator is the fraction of execution time that remains after spreading the parallel part across processors; the sequential part never shrinks.
(b) Find the that yields 40 MIPS for ,
We need :
Divide both sides by 4:
Invert:
Solve:
So the required parallel fraction is:
Check: Effective MIPS vs. parallel fraction (n=16, x=4)
Shows sensitivity to the sequential portion (1-α).
How the model allocates execution
Single-processor bottleneck
Sequential part (1−α)Runs at rate regardless of ."
Shared among processors
Parallel part (α)Divides ideally across , giving time factor ."
Overall runtime
CombineTotal time factor becomes ."
Effective MIPS
Compute throughputThroughput is divided by that time factor."
Common subtleties in Amdahl-style throughput questions
Knowledge Check
Using Amdahl’s Law, the effective MIPS for exclusive execution with parallel fraction is: