Abstract
We consider the classical problem of minimizing the total weighted flow-time for unrelated machines in the online non-clairvoyant setting. In this problem, a set of jobs $J$ arrive over time to be scheduled on a set of $M$ machines. Each job $j$ has processing length $p_j$, weight $w_j$, and is processed at a rate of $\ell_{ij}$ when scheduled on machine $i$. The online scheduler knows the values of $w_j$ and $\ell_{ij}$ upon arrival of the job, but is not aware of the quantity $p_j$. We present the first online algorithm that is scalable ($(1+\epsilon)$-speed $O(\frac{1}{\epsilon^2})$-competitive for any constant $\epsilon > 0$) for the total weighted flow-time objective. No non-trivial results were known for this setting, except for the most basic case of identical machines. Our result resolves a major open problem in online scheduling theory. Moreover, we also show that no job needs more than a logarithmic number of migrations. We further extend our result and give a scalable algorithm for the objective of minimizing total weighted flow-time plus energy cost for the case of unrelated machines. The key algorithmic idea is to let jobs migrate selfishly until they converge to an equilibrium. To the best of our knowledge, this is the first work that demonstrates the usefulness of ideas from coordination mechanisms and Nash equilibria for designing and analyzing online algorithms.
Introduction
In modern cloud computing and heterogeneous chip architectures, scheduling is a fundamental challenge. Systems must manage a continuous stream of incoming tasks across diverse processors—some optimized for high-throughput integer math, others for specialized floating-point operations. This environment is characterized by "unrelated machines," where a job's processing speed depends entirely on the specific machine to which it is assigned.
Optimizing such systems typically involves minimizing the total weighted flow-time, which represents the sum of the time each job spends in the system, weighted by its relative importance. However, real-world schedulers face three significant hurdles:
- Non-clairvoyance: The exact processing time of a job is unknown until it completes.
- Heterogeneity: Machines have different performance profiles for different tasks.
- Online Arrivals: Jobs arrive dynamically without knowledge of future requests.
While solutions existed for simpler cases (like identical machines), the general problem of non-clairvoyant scheduling on unrelated machines remained a major open problem. This paper introduces SELFISHMIGRATE, the first scalable online algorithm for this complex setting.
The SELFISHMIGRATE Framework
The core innovation of this work is the treatment of the scheduling problem as a coordination game. Rather than employing a centralized, top-down controller, the authors design a system where jobs act as selfish agents that migrate between machines to maximize their own utility.
Machine Policy: Weighted Ranked Processor Sharing (WRPS)
Each machine implements a local scheduling policy called Weighted Ranked Processor Sharing. The machine maintains a virtual queue of jobs, ordered by their arrival or migration time. To prioritize shorter jobs without knowing their actual sizes, the machine splits its processing power such that jobs at the tail of the queue (the most recent arrivals) receive more resources. This "tail-heavy" allocation helps flush out short jobs quickly, a critical strategy in non-clairvoyant settings.
Job Behavior and Virtual Utility
Each job $j$ is assigned a virtual utility function. This utility is not merely a measure of the job's own processing speed; it is carefully defined to be inversely proportional to the delay (or "misery") the job inflicts on other jobs in the system. By aligning individual job incentives with the global objective of minimizing total weighted flow-time, the algorithm ensures that selfish behavior leads to a socially desirable outcome.
Selfish Migration to Nash Equilibrium
Jobs are permitted to migrate between machines. A job will move if it can increase its virtual utility on a different processor. The algorithm simulates these best-response moves until the system reaches a Nash equilibrium—a state where no job can improve its utility by moving. The authors prove that this equilibrium state naturally satisfies the requirements of a complex linear programming relaxation of the scheduling problem, a technique known as dual fitting.
Key Results and Scalability
The primary contribution of this work is the proof that SELFISHMIGRATE is scalable. In the context of online algorithms, scalability means that if the algorithm is given machines that are slightly faster (by a factor of $1+\epsilon$) than those of an optimal offline scheduler, it can achieve a competitive ratio that is constant (independent of the number of jobs or machine speeds).
- Performance Guarantee: For any $\epsilon > 0$, the algorithm is $(1+\epsilon)$-speed $O(1/\epsilon^2)$-competitive for total weighted flow-time.
- Migration Efficiency: A common concern with migration-based scheduling is "thrashing," where jobs move constantly without making progress. This paper proves that each job migrates at most $O(\frac{\log W + \log n}{\epsilon})$ times, where $W$ is the weight range and $n$ is the number of jobs. This logarithmic bound makes the approach feasible for practical implementation.
- Energy Awareness: The framework extends to power-aware settings. The authors provide a scalable algorithm for minimizing the sum of weighted flow-time and energy cost, assuming a standard power function $s^\gamma$.
Discussion and Future Work
By bridging the gap between game theory and online scheduling, SELFISHMIGRATE provides a robust solution to a long-standing theoretical hurdle. The use of coordination mechanisms allows for a decentralized approach to a highly complex global optimization problem.
However, some challenges remain for practical deployment. The current analysis assumes a continuous model of processing and migration; in systems with high migration latency, the overhead of moving job states might be more significant than the theoretical bounds suggest. Additionally, while the Nash equilibrium is guaranteed to exist and be reachable, the computational cost of finding this equilibrium at every time step in a high-speed operating system remains an area for further optimization. Future research may explore "approximate" Nash equilibria or more efficient best-response dynamics to reduce scheduling overhead.
Summary updated