Work, Span, and Parallel Speedup

Derive two lower bounds on parallel runtime and use their ratio to distinguish parallelism from processor count.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Work counts all operations and span counts the longest chain
  2. Scheduling quality controls the gap to the bound

Work counts all operations and span counts the longest chain

For a task DAG, let \(W\) be total unit work and \(S\) the longest dependency chain. On \(P\) processors any schedule takes at least \(\max(W/P,S)\) time under this model. The first term follows from capacity. The second follows because dependent operations on the longest chain cannot overlap. If \(W=1000,S=100\), even unlimited ideal processors cannot provide speedup above ten.

Scheduling quality controls the gap to the bound

A greedy scheduler using every ready task can achieve a bound of order \(W/P+S\) in the idealized model. Real overhead includes finding ready work and moving its data. Work stealing distributes ready work across local queues. Parallel prefix computation illustrates why redesigning a dependency graph can reduce span without substantially increasing work.[1][2]

References

  1. Maurice Herlihy and Nir Shavit, The Art of Multiprocessor Programming ↩
  2. Remzi H. Arpaci-Dusseau and Andrea C. Arpaci-Dusseau, Operating Systems: Three Easy Pieces ↩