When One Worker Finishes Last
A phase needing all worker results cannot finish until its slowest required worker is done.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace chunk imbalance
Three chunks take two, two, and eight seconds on separate workers. Their work sums to twelve seconds and phase completion takes at least eight. Dividing by three alone predicts an unrealizable four unless work is redistributed. See critical path and work.
Choose a better boundary
Smaller independently scheduled chunks may balance remaining work, at coordination cost. Static and dynamic distribution explains that tradeoff.[1]
Compute phase completion from the slowest worker
If three workers finish at times four, six and eleven, the phase completes at eleven when all results are required. An average of seven does not describe when the combined result is ready. See barriers between phases.
Worker finish times: 4,6,11
Phase end: 11
Early workers wait 7 and 5 units before the next phase
Investigate what made the last partition larger
Focus on the distribution of work sizes
Equal record counts can conceal unequal costs per record. Splitting a heavy chunk or choosing a better key may help. Test output correctness and compare dispatch overhead after redistribution.