Precedence-Constrained Scheduling of Malleable Jobs with Preemption

Konstantin Makarychev, Debmalya Panigrahi

Introduction

In modern computing environments, from cloud infrastructure to high-performance computing (HPC) clusters, the nature of a "job" has evolved. Unlike classical scheduling models where a task occupies a single machine for a fixed duration, many contemporary workloads are malleable. A malleable job can be assigned a variable number of processors; increasing the allocation typically reduces the execution time, albeit often with diminishing returns. This paper, authored by researchers from Microsoft Research and Duke University, addresses the complex challenge of scheduling these malleable jobs when they are subject to precedence constraints—represented as a Directed Acyclic Graph (DAG).

The Challenge of Malleable Scheduling

The primary objective in Precedence-constrained Scheduling (PS) is to minimize the makespan, or the total time required to complete all jobs. This problem is governed by two fundamental bottlenecks:

  1. The Critical Path: The longest sequence of dependent tasks that must be executed sequentially.
  2. Total Work: The cumulative machine-hours required to process all tasks.

While the non-malleable version of this problem has been a staple of combinatorial optimization since the 1960s, the malleable case introduces a new dimension of complexity: the scheduler must decide not only when to run a job but also how many resources to allocate to it at any given moment.

Algorithmic Framework: LP Rounding and Iterative Scheduling

The authors propose a $(2+\epsilon)$-approximation algorithm based on a sophisticated Linear Programming (LP) relaxation. The approach follows a three-stage process:

1. LP Relaxation and Simplification

The algorithm begins by solving an LP that minimizes the makespan while respecting constraints on both the critical path and the total work. Because the original problem is discrete and complex, the LP allows for fractional allocations. A key structural insight proven by the authors is that any optimal solution to this LP can be simplified into a "canonical" form where each job $j$ is associated with a specific target machine allocation, $b^*_j$.

2. Iterative Allocation

The scheduling then proceeds in discrete time steps. At each step, the algorithm identifies the set of "available" jobs—those whose predecessors in the DAG have already been completed. The $m$ available machines are then distributed among these active jobs in proportion to their target allocations ($b^*_j$).

3. Mathematical Analysis

Using a potential function argument, the researchers demonstrate that for any concave processing function (where the speedup is a concave function of the machines assigned), the algorithm's makespan is at most twice the theoretical optimum (plus a small $\epsilon$ factor). This result is significant because it matches the best known theoretical bound for the much simpler non-malleable version of the problem.

Specialized Performance for Power-Law Scaling

A particularly impactful finding concerns "power-law" processing functions, where the processing rate $p(z)$ follows the form $c \cdot z^\gamma$ for some exponent $\gamma \in (0, 1]$. This model is highly relevant to real-world systems where doubling the resources might increase speed by a factor of $2^{0.7}$, for instance.

For these functions, the authors utilize Hölder’s inequality to show that the algorithm achieves a $(1+\epsilon)$-approximation. This near-optimal performance suggests that the inherent structure of power-law scaling allows for a nearly perfect balance between work and the critical path.

The Necessity of Look-Ahead

The paper also establishes a strong "negative" result regarding online scheduling. In an online scenario, the scheduler must make decisions without knowing the full structure of the dependency DAG or future job arrivals. The authors prove that any online algorithm is doomed to a poor competitive ratio of $\Omega(n^{1/4})$. This underscores a fundamental truth in malleable scheduling: to achieve efficiency, one must have a global view of the task dependencies.

Limitations and Practical Considerations

While the theoretical bounds are robust, the model relies on a few key assumptions:

  • Preemption: The algorithm assumes jobs can be stopped and resumed with different machine allocations instantaneously and without penalty. In practice, "checkpointing" or reconfiguring a job often incurs overhead.
  • Universal Exponents: The near-optimal $(1+\epsilon)$ result requires all jobs to share the same scaling exponent $\gamma$. If jobs exhibit wildly different scaling behaviors, the performance may revert to the general $(2+\epsilon)$ bound.
  • Integrality: The algorithm produces fractional machine assignments. While these can be approximated via round-robin techniques, the transition to physical hardware (e.g., integer CPU cores) may introduce minor discrepancies.

Conclusion

This research provides a definitive theoretical bridge between classical scheduling and the malleable workloads of modern computing. By matching the $(2+\epsilon)$ bound of the non-malleable case and providing a near-optimal solution for power-law scaling, the authors offer a powerful framework for optimizing complex, dependent workloads in high-performance environments.

Summary updated

BibTeX
@inproceedings{makarychev2014precedence,
  author = {Konstantin Makarychev and Debmalya Panigrahi},
  title = {{Precedence-Constrained Scheduling of Malleable Jobs with Preemption}},
  booktitle = {ICALP},
  year = {2014},
  url = {https://openreview.net/forum?id=NbtZmGqAs_q},
}
Figure