TL;DR
GFS (Preemption-aware Scheduling Framework) is a proactive cluster management system designed to balance strict service-level objectives (SLOs) for high-priority LLM tasks while maximizing the utility of low-priority "spot" instances. By combining a lightweight probabilistic demand forecasting model with dynamic quota allocation and waste-aware preemption policies, GFS reduces spot instance evictions by 33.0% and slashes queuing delays by 44.1%. When deployed in a massive production cluster of over 10,000 GPUs, it boosted allocation rates by up to 22.8%, translating to nearly $460,000 in monthly savings.
What Problem Does This Paper Address?
The explosion of Large Language Models (LLMs) has fundamentally broken traditional GPU cluster management. LLM workloads are resource-heavy and persistent: they frequently demand full-node (8-GPU) allocations and run continuously for days or even weeks. To prevent massive financial waste from idle capacity, cloud providers offer deeply discounted, preemptible "spot instances" for low-priority (LP) tasks.
However, co-locating high-priority (HP) tasks (like online inference or primary model training) with these spot tasks creates a volatile environment. When an HP task suddenly demands resources, existing schedulers reactively evict spot tasks. This causes two major issues:
- High Eviction Rates & Wasted Work: Spot tasks are often terminated abruptly before reaching a checkpoint, completely erasing hours of computation.
- Resource Fragmentation: Standard "first-fit" scheduling heuristics coupled with unpredictable demand fluctuations leave high-end GPUs (like A100s and H800s) severely underutilized, often operating at sub-80% allocation rates.
Existing schedulers rely on rigid, static spot quotas and fail to account for the spatial-temporal demand patterns of different tenants sharing the cluster.
Methods
GFS tackles these challenges through a closed-loop architecture consisting of three novel components:
- GPU Demand Estimator (GDE) via OrgLinear: Instead of relying on heavy, slow deep learning models, the authors designed OrgLinear, a lightweight hierarchical time-series model. It splits historical GPU data into trend and cyclical components, incorporates business context (departmental budgets, cluster preferences), and uses heteroscedastic variance estimation to output a probabilistic distribution of future demand rather than a single point estimate.
- Spot Quota Allocator (SQA): SQA takes GDE’s probabilistic forecasts and dynamically calculates a safe "buffer" for spot instances. It features an eviction-aware feedback loop: if real-time eviction rates spike, it automatically tightens the spot quota; if evictions are low but queues are long, it expands the quota.
- Preemptive Task Scheduler (PTS): When scheduling tasks onto specific nodes, PTS applies a two-pronged strategy:
- Non-Preemptive Scoring: It scores nodes based on GPU packing efficiency, homogeneous co-location (keeping HP tasks together and spot tasks together to avoid fragmentation), and historical eviction awareness.
- Waste-Aware Preemption: If an HP task must preempt a spot task, the scheduler calculates the exact computational work that would be lost based on the time elapsed since the spot task's last checkpoint. It then strategically evicts the tasks that minimize overall wasted compute time.
[GDE: OrgLinear Forecasts] ➔ [SQA: Dynamic Quota Buffer] ➔ [PTS: Waste-Aware Preemption & Packing]
Datasets
The framework was evaluated using two primary data sources:
- Production Deployment Trace: Real-world data collected from an Alibaba production cluster managing 10,365 heterogeneous GPUs (including NVIDIA A10, A100, A800, and H800 models).
- Simulation Dataset: A three-month trace (April to June 2024) consisting of 138,403 HP tasks and 26,635 spot tasks deployed across a sub-cluster of 2,296 A100 GPUs.
- Open Source Contribution: The authors have released a production GFS serving trace as part of the public Alibaba cluster trace program.
Key Insights and Ideas
- Risk-Awareness Beats Point Precision: In cluster scheduling, knowing the uncertainty (variance) of a demand spike is far more valuable than knowing the average demand. OrgLinear’s ability to predict the tail-end risks allows the system to proactively protect spot instances from sudden HP surges.
- Preemption is Not Free: Traditional schedulers treat spot instances as completely disposable. GFS introduces the concept of "preemption cost" by tracking checkpoint milestones. Evicting a job that has been running for 59 minutes since its last hourly checkpoint is highly inefficient; GFS actively avoids this.
- Separation of Concerns Reduces Friction: By co-locating similar task types (HP with HP, spot with spot), the scheduler prevents fragmented "pockets" of idle GPUs, making it much easier to clear out clean, full-node blocks when massive gang-scheduled LLM tasks arrive.
Key Results
- Reduced Evictions & Queues: In simulations, GFS cut spot instance eviction rates by 33.01% and decreased job queuing times (JQT) by 44.10% compared to state-of-the-art schedulers like Chronus and Lyra.
- Production Efficiency Gains: Following real-world deployment, the allocation rate of high-end A800 GPUs jumped by 22.79%, and A100 allocation rates improved by 14.03%.
- Financial Impact: The optimization directly translated to an estimated $459,715 in monthly savings for a 10,000+ GPU cluster.
- Forecasting Speed: OrgLinear achieved a 24.3% reduction in Mean Absolute Error (MAE) compared to standard baselines while requiring only 1.63% of the training time of DeepAR, making it highly practical for real-time production loops.
Limitations and Future Work
While GFS excels at macro-level cluster orchestration (allocating pods and nodes), it operates entirely at the coarse-grained resource assignment level. It does not look inside the GPU itself. The authors note that future iterations will focus on fine-grained hardware utilization—specifically optimizing internal computing units like Streaming Multiprocessors (SMs) and Tensor Cores—to squeeze even more efficiency out of multi-tenant GPU architectures.
Summary updated