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
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]