Efficient approximation algorithms for scheduling moldable tasks

Xiaohu Wu, Patrick Loiseau · DOI

Abstract: This paper introduces a novel $(\delta_j, k_j)$-monotonic speedup model for moldable tasks, bridging the gap between overly pessimistic general models and unrealistic linear speedup assumptions. By exploiting the linear scaling phase typical of real-world parallel tasks, the authors develop new approximation algorithms for makespan minimization and throughput maximization that significantly outperform previous theoretical bounds, achieving ratios close to 1.0 for large-scale systems.

Introduction: The Challenge of Moldable Task Scheduling

In the realm of parallel computing, a moldable task is defined as a task where the scheduler determines the number of processors assigned to it before execution begins. Once set, this allocation remains fixed. The primary objective for schedulers is to manage $n$ tasks across $m$ processors to either minimize the makespan (the total time required to complete all tasks) or maximize throughput (the total value of tasks completed by a specific deadline).

For decades, the theoretical foundation for this problem has relied on the "monotonic" assumption: while assigning more processors to a task reduces its execution time, it simultaneously increases the total workload due to communication and synchronization overhead. Under this broad and somewhat pessimistic assumption, the best-known approximation ratio for makespan minimization has remained stagnant at 1.5.

Timeline of achieved approximation ratios for makespan minimization, highlighting the long-standing 1.5 barrier.

The $(\delta_j, k_j)$-Monotonic Model

The authors argue that the standard monotonic model fails to capture the nuances of modern supercomputing. In practice, tasks often exhibit "perfect" linear speedup when assigned a small number of processors, only transitioning to sublinear scaling after crossing a certain threshold. To exploit this, the paper introduces the $(\delta_j, k_j)$-monotonic model, which categorizes task behavior into three distinct phases:

  1. Linear Phase: For any allocation up to $\delta_j$ processors, the speedup is linear and the total workload remains constant.
  2. Sublinear Phase: Between $\delta_j$ and $k_j$ processors, execution time continues to decrease, but the total workload increases due to overhead.
  3. Parallelism Bound: $k_j$ represents the hard upper limit of processors that can be assigned to the task.
Relationship between different speedup models for parallel task scheduling.

This model sits strategically between the general monotonic model and the ideal (but often unrealistic) linear-speedup model, providing a more accurate framework for algorithm design.

Algorithmic Innovation: Sched and OMS

The core of the proposed solution is the Sched algorithm. It operates through a multi-step process:

  • Task Classification: Tasks are categorized as "large," "medium," or "small" based on the minimum processor count required to meet a target completion time $d$.
  • Strategic Allocation: The algorithm assigns tasks to processor groups to maintain high utilization. The authors prove that if some tasks cannot be scheduled, it is because the system has reached a high utilization threshold, denoted as $\theta(\delta)$.
  • Dual Approximation: To minimize makespan, the authors utilize the OMS algorithm, which wraps Sched in a binary search to identify the smallest time $d$ for which a valid schedule is feasible.

Key Results and Benchmarking

The performance of these new algorithms is tied to the value of $\delta$ (the minimum linear-speedup threshold). By citing benchmarks like the NAS Parallel Benchmarks (NPB) and HPLinpack, the authors show that real-world tasks typically scale linearly up to thresholds between 25 and 150 processors.

  • Makespan Minimization: With $\delta = 25$, the approximation ratio improves to approximately 1.2. At $\delta = 150$, the ratio drops further to 1.077, nearly reaching optimality.
  • Throughput Maximization: This paper provides the first formal approximation algorithm for moldable tasks under these scaling models, offering a $\theta(\delta)$-approximation.
  • Computational Efficiency: The algorithms are highly scalable, with a time complexity of $O(n \log m \log (nmt_m/\epsilon))$, making them practical for massive cloud clusters.

Conclusion and Future Directions

By refining the mathematical model of task scaling, this research breaks the 1.5 approximation barrier that has limited parallel scheduling for years. While the current algorithms are "offline"—requiring full knowledge of tasks in advance—they lay the groundwork for future extensions into online scheduling and workflows with complex precedence constraints.

Summary updated

BibTeX
@article{wu2023efficient,
  author = {Xiaohu Wu and Patrick Loiseau},
  title = {{Efficient approximation algorithms for scheduling moldable tasks}},
  journal = {Eur. J. Oper. Res.},
  year = {2023},
  doi = {10.1016/j.ejor.2023.02.044},
}
Figure