Static and Dynamic Work Distribution

Static scheduling assigns parts in advance. Dynamic scheduling gives workers more work as they become available under a policy.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace unequal tasks
  2. Account for assignment cost
  3. Compare assignments with uneven durations
  4. Include scheduling and locality costs

Trace unequal tasks

Two workers assigned heavy-heavy and light-light chunks can finish at very different times. A shared ready queue can let the earlier worker take another pending piece. Per-key work queues also have an ordering policy.

Account for assignment cost

Very small dynamically chosen tasks can spend more time in coordination. Measure chunk sizes and completion counts rather than relying on worker utilization alone. See batching overhead.[1]

Compare assignments with uneven durations

Four tasks have estimated times 8, 8, 2 and 2. Assigning the first two to worker A and the last two to B gives loads sixteen and four. An assignment of one long and one short each gives ten and ten. A dynamic queue may help where durations are unknown. See the last worker.

Static contiguous grouping: 16 vs 4
Balanced estimate: 10 vs 10
Dynamic queue can assign remaining jobs when a worker becomes free

Include scheduling and locality costs

Tiny tasks can spend significant time being dispatched. Fixed chunks can reuse nearby data. Compare skewed and uniform workloads using completed work and elapsed time.

References

  1. OpenMP Architecture Review Board, OpenMP API Specifications ↩