Load Balancing Under Skewed Task Sizes

Compare equal item counts with equal estimated work and account for the cost of changing partitions.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Equal counts can hide uneven cost
  2. Dynamic assignment trades locality for responsiveness

Equal counts can hide uneven cost

Suppose four tasks cost \(1,1,1,9\) units. A partition assigning two items to each of two workers can take ten units despite equal task count. Even an ideal nonpreemptive allocation cannot finish in under nine because of the heavy task. Splitting that task could lower the bound if its dependencies permit subdivision. Work and span explain these limits at finer granularity.

Dynamic assignment trades locality for responsiveness

A shared queue or work stealing lets idle workers acquire remaining work. More scheduling and data movement can outweigh the benefit when tasks are small and uniform. For weighted chunks, use estimates based on cost-causing features rather than only row count. Revisit estimates as workload phases change. A good comparison reports makespan and locality under the same workload, because balancing only one metric can move the bottleneck.[1][2]

References

  1. Robert D. Blumofe and Charles E. Leiserson, Scheduling Multithreaded Computations by Work Stealing ↩
  2. MIT OpenCourseWare, Design and Analysis of Algorithms: Lecture Notes ↩