A Serial Fraction Limits Speedup

When a fixed workload has a part that must run serially, speeding up only the remaining part leaves a lower bound on total time.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Work a simple scenario
  2. Check ideal assumptions
  3. Calculate the limit from a fixed-work model
  4. Name what the model fixes

Work a simple scenario

If half the work is serial and half can ideally run twice as fast, time becomes \(0.5+0.25=0.75\) of the original. Speedup is \(4/3\). Estimating improvement in one part uses the same decomposition.

Check ideal assumptions

Communication, overhead, and changed problem size can affect actual results. Compare measured worker counts with representative workloads.[1]

Calculate the limit from a fixed-work model

Suppose one fifth of running time is inherently serial and four fifths divides evenly among \(p\) workers. The ideal speedup is \(1/(0.2+0.8/p)\). Four workers give 2.5, and arbitrarily many give a limit of five in that model. See speedup and efficiency.

p=1 → normalized time 1
p=4 → 0.2 + 0.2 = 0.4 → speedup 2.5
p→∞ → time 0.2 → speedup 5

Name what the model fixes

A growing workload can change the amount of serial work and its fraction. Real workers also add overhead. Report baseline time, input size and observed speedup alongside the estimate.

References

  1. OpenMP Architecture Review Board, OpenMP API Specifications ↩