Abstract
Modern data center scheduling requires managing complex, multidimensional resource constraints where job sizes are often unknown upon arrival. This paper introduces the Packing Scheduling Problem (PSP), a generalized framework for modeling these polyhedral constraints. We demonstrate that the Proportional Fairness (PF) algorithm—a staple of fair resource allocation—is surprisingly effective for minimizing job latency in non-clairvoyant settings. By leveraging dual-fitting techniques and competitive equilibrium theory, we prove that PF is $O(1)$-competitive for weighted completion time and provides robust guarantees for flow time under speed augmentation.
Introduction
In traditional scheduling theory, models often assume simple resource requirements, such as a job occupying a single processor. However, modern cloud environments present a more complex reality: a single task may simultaneously require specific, varying amounts of CPU, RAM, and network bandwidth. Furthermore, schedulers must operate in an online fashion (jobs arrive unpredictably) and a non-clairvoyant manner (the processing time required is unknown until completion).
This paper addresses the challenge of minimizing job latency—specifically weighted completion time and flow time—under these general polyhedral constraints. We propose a unified framework, the Packing Scheduling Problem (PSP), which encompasses classical problems such as unrelated machine scheduling, broadcast scheduling, and parallelizable job scheduling.
The Packing Scheduling Problem (PSP)
In the PSP framework, each job $j$ has a weight $w_j$ and a total processing requirement $p_j$. At any time $t$, the scheduler assigns a processing rate $x_j(t)$ to each active job. The constraints on these rates are defined by a set of packing constraints: $Ax(t) \leq \mathbf{1}$, where $A$ is a non-negative matrix representing resource requirements. The goal is to minimize the total weighted completion time $\sum w_j C_j$ or the total weighted flow time $\sum w_j (C_j - a_j)$, where $a_j$ is the arrival time and $C_j$ is the completion time.
Methodology: Proportional Fairness as a Scheduler
The core insight of this work is the application of Proportional Fairness (PF) to scheduling. Traditionally used to ensure equitable resource distribution, PF assigns rates by solving the following convex optimization problem at every time step:
$$\max \sum_{j \in \text{Active}} w_j \log x_j(t)$$ $$\text{subject to } Ax(t) \leq \mathbf{1}, x_j(t) \geq 0$$
To analyze the performance of PF, we employ a dual-fitting approach. We show that the Lagrange multipliers (or "prices") generated by the PF optimization can be used to construct a feasible solution for the dual of a global scheduling linear program. This allows us to bound the ratio between the algorithm's performance and the optimal offline solution.
Key Results
1. Weighted Completion Time
We prove that the Proportional Fairness algorithm is $O(1)$-competitive for minimizing weighted completion time under general packing constraints. Specifically, our analysis yields a competitive ratio of 64. This represents the first constant-ratio result for several non-clairvoyant scheduling problems within the PSP framework.
2. Weighted Flow Time and Speed Augmentation
Flow time (the duration a job spends in the system) is significantly more difficult to optimize than completion time. We demonstrate that for general PSP, PF is $O(\log n)$-speed $O(\log n)$-competitive, where $n$ is the number of jobs. Furthermore, we provide a lower bound showing that no non-clairvoyant algorithm can achieve a constant competitive ratio without at least $\Omega(\sqrt{\log n})$ speedup, highlighting the inherent difficulty of the general problem.
3. Unrelated Machine Scheduling
For the specific case of scheduling on unrelated machines, we introduce BLASS (Balanced Latest Arrival Smooth Scheduling). BLASS utilizes a "smooth" version of processor sharing combined with a migration policy that redistributes jobs to balance load as tasks complete. We prove that BLASS is scalable, meaning for any $\epsilon > 0$, it is $(1+\epsilon)$-speed $O(1/\epsilon^2)$-competitive for unweighted flow time. This result resolved a long-standing open question regarding non-clairvoyant scheduling in heterogeneous environments.
Discussion: Fairness $\approx$ Efficiency
The most significant conceptual contribution of this research is the bridge between fairness and efficiency. In non-clairvoyant settings, an algorithm that is "fair" effectively hedges its bets. By distributing resources proportionally to job weights, PF prevents a single large, unknown job from monopolizing resources and delaying numerous smaller jobs. This "competitive equilibrium" approach provides a robust mechanism for handling the uncertainty of job sizes in complex resource landscapes.
Conclusion and Future Work
While this work establishes strong foundations for the PSP framework, several avenues remain open. Our flow time results for general packing constraints are logarithmic; future research could investigate whether specific sub-problems (e.g., multidimensional scheduling with a fixed number of resources) allow for $O(1)$ competitive ratios with less aggressive speed augmentation. Additionally, while BLASS addresses unweighted flow time on unrelated machines, extending these scalable results to the weighted case remains a vital area of study.
Summary updated