Optimal multiserver scheduling with unknown job sizes in heavy traffic

Ziv Scully, Isaac Grosof, Mor Harchol-Balter · DOI

TL;DR

This paper solves a long-standing open problem in queueing theory: how to optimally schedule multiple servers when you don't know how long jobs will take to finish. The authors introduce a new policy called Monotonic Gittins (M-Gittins) and prove that it minimizes mean response time in the "heavy traffic" limit (when the system is nearly at full capacity) for a broad range of job size distributions.

What Problem Does This Paper Address?

In computer systems—from web servers to databases—scheduling determines which jobs get CPU time. The goal is usually to minimize mean response time (the average time from a job's arrival to its completion).

If you know exactly how long every job is (the "known size" case), the Shortest Remaining Processing Time (SRPT) policy is optimal. However, in the real world, we often don't know a job's size until it finishes. For a single server ($k=1$), the Gittins policy is the gold standard for unknown sizes. But for multiple servers ($k \geq 2$), the problem becomes mathematically "intractable."

Until now, we didn't know if a multiserver version of Gittins was optimal, or if any simple policy could even come close. This paper tackles the $M/G/k$ queue (Poisson arrivals, general job sizes, $k$ servers) specifically in the heavy traffic regime, where the system load $\rho$ approaches 1.

Methods

The authors' primary innovation is the Monotonic Gittins (M-Gittins) policy.

  1. The Monotonicity Fix: The standard Gittins policy assigns a "rank" (priority) to a job based on its age. However, this rank function can be non-monotonic—a job's priority might go up and down as it ages. This "oscillation" makes multiserver analysis impossible because a job might be delayed by a massive amount of "relevant work" from other jobs. M-Gittins fixes this by taking the "running maximum" of the Gittins rank, ensuring priority only ever decreases (rank only increases) as a job ages.
  2. The Tagged Job Method: To prove optimality, the authors use a "tagged job" approach. They track a single job through the system and bound the amount of work that can delay it. By showing that M-Gittins behaves similarly to a single-server system in heavy traffic, they can leverage known single-server results.
  3. M-SERPT: They also analyze a simpler cousin called M-SERPT (Monotonic Shortest Expected Remaining Processing Time), which is easier to compute than Gittins but still highly effective.

Datasets

As a theoretical paper in stochastic modeling, no empirical datasets were used. Instead, the authors evaluated their policies against several mathematically defined job size distribution classes:

  • OR(−∞, −2): Heavy-tailed distributions (like Pareto) with finite variance.
  • MDA(Λ): Distributions with smooth, lighter-than-Pareto tails (like Exponential, Normal, Log-normal, Weibull).
  • QDHR/QIMRL: Relaxations of "Decreasing Hazard Rate" distributions, where jobs are more likely to be large the longer they have already run.

Key Insights and Ideas

  • Monotonicity is the Key to Multiserver Analysis: The "aha moment" is that while non-monotonic policies (like standard Gittins) are optimal for one server, they are a nightmare to analyze for many. By forcing monotonicity, the authors created a policy that is both analytically tractable and asymptotically optimal.
  • The "Price" of Unknown Sizes: The paper reveals that for heavy-tailed distributions, not knowing job sizes doesn't actually hurt you in the long run—Gittins scales just as well as SRPT. However, for light-tailed distributions (like Exponential), knowing the size provides a significant asymptotic advantage.
  • M-SERPT as a Practical Alternative: While M-Gittins is optimal, M-SERPT is a "2-approximation," meaning it's never more than twice as bad as the optimal policy in heavy traffic. This is a huge win for practitioners looking for a simple, robust scheduling rule.

Key Results

  • Heavy-Traffic Optimality: Theorem 3.1 proves that M-Gittins is optimal for the $M/G/k$ queue as load $\rho \to 1$ for a wide class of finite-variance distributions.
  • 2-Approximation: Theorem 3.2 proves that M-SERPT is a 2-approximation for mean response time under similar conditions.
  • Scaling Laws: The authors provide the first characterization of how mean response time scales for Gittins-style policies in the $M/G/1$ and $M/G/k$ (Theorem 3.3). For example, if the distribution is very heavy-tailed, the response time grows as $\Theta(\log \frac{1}{1-\rho})$.

Limitations and Future Work

  • Heavy Traffic Only: The optimality results are specifically for the limit where the system is nearly saturated ($\rho \to 1$). The performance at low or medium loads remains a conjecture, though M-Gittins is suspected to be a 3-approximation at all loads.
  • Finite Variance: The proofs generally require the job size distribution to have finite variance.
  • Preemption Overhead: The model assumes "preempt-resume" with zero overhead, which may not hold in high-performance computing environments where context switching is expensive.
  • Future Directions: The authors suggest that the techniques used here (like the "hill-valley" integration by parts) could be used to tighten bounds for other complex scheduling policies like FCFS in multiserver settings.

Summary updated

BibTeX
@article{scully2021optimal,
  author = {Ziv Scully and Isaac Grosof and Mor Harchol-Balter},
  title = {{Optimal multiserver scheduling with unknown job sizes in heavy traffic}},
  journal = {Perform. Evaluation},
  year = {2021},
  doi = {10.1016/j.peva.2020.102150},
}
Figure