A competitive algorithm for throughput maximization on identical machines

Benjamin Moseley, Kirk Pruhs, Clifford Stein, Rudy Zhou

Introduction: The Online Throughput Challenge

In scheduling theory, the Online Throughput Maximization problem represents a fundamental challenge for resource management in dynamic environments like data centers. In this scenario, a stream of jobs arrives over time, each defined by its processing time (size), arrival time (release time), and a strict deadline. The objective is to maximize the total number of jobs completed successfully before their respective deadlines. This is often referred to as the "unit-profit" case, where every job has equal value.

Because the scheduler lacks knowledge of future job arrivals, its performance is measured by the competitive ratio: the factor by which an optimal offline scheduler (with perfect foresight) outperforms the online algorithm. For decades, a significant gap existed in our understanding of this problem, particularly regarding the power of deterministic strategies versus randomized ones.

Comparison of competitive ratios for single vs. multiple machines.

Bridging the Determinism Gap

As shown in the table above, the landscape for a single machine ($m=1$) is well-understood: no deterministic algorithm can achieve a constant competitive ratio ($\omega(1)$), necessitating randomization ($O(1)$) or resource augmentation (extra speed) to provide performance guarantees. For many years, researchers suspected that the multiple-machine case might suffer from the same limitations, or they relied on "speed augmentation"—giving the online algorithm faster processors than the optimal offline adversary—to prove results.

This paper presents a major breakthrough by proving that for multiple identical machines ($m > 1$), a deterministic $O(1)$-competitive algorithm exists without requiring extra processing speed or "slack" time (laxity). This resolves a 20-year-old open problem, demonstrating a "determinism paradox": the problem becomes easier to solve deterministically as the number of machines increases. The additional resources provide the flexibility needed for a deterministic strategy to recover from locally suboptimal decisions that would be fatal on a single machine.

The FinalAlg Framework: Partitioning and Sub-Algorithms

The authors propose a master algorithm, FinalAlg, which manages the complexity of the problem by partitioning both jobs and machines into three distinct sub-problems. The core logic depends on a job's laxity—the buffer time available before a job must start to meet its deadline.

Summary of the FinalAlg architecture and job partitioning logic.

FinalAlg categorizes incoming jobs based on a threshold $x_j$ related to their size. The machines are divided into three pools, each roughly $m/3$ in size, dedicated to specific sub-algorithms:

  1. LMNY (High-Laxity Jobs): For jobs where laxity $\ell_j > x_j$, the algorithm employs the LMNY strategy. This is an existing algorithm known to be highly effective in the "high-slack" regime, where jobs have plenty of time to wait before they must be processed.
  2. SRPT (Shortest Remaining Processing Time): For "low-laxity" jobs ($\ell_j \leq x_j$), the authors use a modified version of the classic SRPT. While SRPT is optimal for minimizing flow time, the authors prove it is also competitive for throughput when restricted to jobs that the optimal schedule completes without preemption (interruption).
  3. MLax (The Novel Component): To handle the most difficult cases—low-laxity jobs that are preempted in the optimal schedule—the authors introduced MLax. This sub-algorithm uses a stack-based (Last-In-First-Out) data structure for each machine. It introduces a pseudo-release time, a calculated moment after a job's arrival when it becomes "viable" to be pushed onto a machine's stack. This mechanism ensures the algorithm doesn't "abandon" jobs it has already invested time in unless it's for a significantly better (smaller or more flexible) job.

Theoretical Results and Analysis

The primary contribution is the mathematical proof of a constant competitive ratio for $m > 1$. The authors establish two main theorems:

  • Theorem 1: Establishes the existence of a deterministic $O(1)$-competitive algorithm for any number of machines $m > 1$.
  • Theorem 2: Confirms that for $m \ge 48$, the specific FinalAlg architecture achieves this constant ratio. For cases where $1 < m < 48$, the authors show that running a deterministic two-machine algorithm from prior literature is sufficient to maintain the $O(1)$ bound.

The analysis relies on a sophisticated charging scheme. The authors demonstrate that the throughput of an optimal schedule can be mapped to the throughput of FinalAlg by "transferring" credits from jobs in the optimal schedule to those completed by the online algorithm. A key step in this proof involves showing that any optimal schedule can be transformed into a "non-migratory forest" structure. By proving that this transformation only loses a constant factor of throughput, the authors make the comparison between the online algorithm and the optimal adversary mathematically tractable.

Limitations and Future Outlook

While this work marks a major theoretical milestone, several avenues for future research remain. First, the competitive ratio, while constant, is likely very high. The authors focus on the existence of the bound rather than its optimization, leaving the task of tightening this constant for practical implementation to future work.

Second, FinalAlg is a migratory algorithm, meaning a job might start on one machine and finish on another. The authors leave it as an open question whether a non-migratory deterministic $O(1)$ algorithm exists. Finally, extending these results to weighted throughput—where some jobs are more valuable than others—remains a significant challenge without the use of resource augmentation.

By removing the "crutches" of randomization and speed augmentation, this paper provides a new foundation for deterministic online scheduling on parallel machines, proving that the power of multiple machines can overcome the inherent limitations of online decision-making.

Summary updated

BibTeX
@article{moseley2024competitive,
  author = {Benjamin Moseley and Kirk Pruhs and Clifford Stein and Rudy Zhou},
  title = {{A competitive algorithm for throughput maximization on identical machines}},
  journal = {Math. Program.},
  year = {2024},
  doi = {10.1007/s10107-023-02045-0},
}
Figure