TL;DR
SliceScheduler is a dynamic, operator-level scheduling system designed to reclaim the short-lived "idle slices" that plague multi-tenant GPU clusters. By moving beyond coarse container-level management and using a high-speed global simulator to perform real-time "what-if" reasoning, it boosts LLM serving throughput by up to 2.29× while strictly honoring high-priority service level agreements (SLAs).
What Problem Does This Paper Address?
In modern Model-as-a-Service (MaaS) clouds, GPUs are often significantly underutilized. The culprit is the standard industry practice of container-level scheduling. When you deploy an LLM, it’s usually wrapped in a container (like a Kubernetes pod) that "owns" a set of GPUs.
However, inference workloads are bursty. Even during peak times, there are frequent, millisecond-scale gaps where the GPU is doing nothing. As shown in the paper's analysis of production traces, these "idle slices" are substantial but too short-lived for traditional schedulers to exploit. Reallocating a container takes minutes due to checkpointing and cold starts, while these gaps last only seconds or less.
To fill these gaps with low-priority "offline" work, you need to schedule at the operator level (e.g., individual layers of a neural network). But this is incredibly difficult: you must manage complex data dependencies, ensure memory safety (avoiding Out-of-Memory/OOM errors), and coordinate data transfers across the cluster in real-time.
Methods
The authors introduce SliceScheduler, which treats the entire cluster as a single, unified execution engine. It consists of four main pillars:
- Global Mapping Graph (GMG): A cluster-wide abstraction that tracks every active operator, its tensor shapes, its dependencies, and its current execution state. It provides the "ground truth" for the entire cluster.
- Global Simulator: This is the system's "crystal ball." Because deep learning operators have highly predictable execution times for a given input shape, SliceScheduler uses lightweight linear estimators to simulate how the cluster state will evolve over time.
- Incremental Simulation-Based Scheduling: When new tasks arrive, the scheduler doesn't just guess where to put them. It runs parallel "what-if" simulations on clones of the GMG to evaluate different placement strategies. It selects the one that maximizes throughput and avoids OOM crashes.
- Operator Executor: A custom runtime (implemented as a PyTorch backend) that materializes these decisions on the GPUs. It uses a dependency-driven queue and a specialized arbitration algorithm to coordinate computation and cross-GPU data transfers without deadlocks.
Datasets
The system was evaluated using:
- Production AI Coding Traces: Two weeks of real-world request data from an industrial company, including arrival times, context lengths, and token generation speeds.
- Model: The Llama3-8B model was used as the primary workload for both online (high-priority) and offline (low-priority) tasks.
- Hardware: A server with 8× NVIDIA A16 GPUs (64GB memory each).
Key Insights and Ideas
- Temporal vs. Spatial Fragmentation: Idle time on different GPUs rarely aligns perfectly. A job needing multiple GPUs might never find them all idle at the same time. SliceScheduler solves this by decomposing jobs into fine-grained operators that can be spread across the cluster to fit into non-overlapping temporal gaps.
- Predictability as a Resource: The authors realized that the deterministic nature of GPU kernels (stable latency for stable shapes) allows for simulation-based scheduling that is both fast and accurate.
- Simulation Speed Matters: To be useful for real-time scheduling, the simulator must be orders of magnitude faster than the actual execution. SliceScheduler’s simulator achieves a throughput of ~176 operators per millisecond—roughly 4,000× faster than previous state-of-the-art simulators like SimAI.
Key Results
- Throughput Gains: SliceScheduler improved token throughput by 1.10× to 2.29× compared to standard online-only and GPU-sharing baselines.
- SLA Protection: It maintained high-priority service levels, with SLO attainment reaching 98.9%, significantly outperforming baselines that often saw performance degradation when co-locating tasks.
- GPU Utilization: The system increased aggregate GPU utilization by 17% to 38% by successfully harvesting fragmented idle slices.
- Negligible Overhead: Despite its complexity, the scheduling layer adds almost zero runtime overhead compared to direct execution, thanks to its efficient C++ implementation and avoidance of Python interpreter bottlenecks.
Limitations and Future Work
- Cluster Scale: The current analysis suggests the centralized master can scale to clusters of about 64 GPUs. For massive data centers, a hierarchical or decentralized version of the GMG might be necessary.
- Operator Granularity: The authors currently group layers into single "operators" to balance scheduling overhead. Finding the optimal level of granularity for different model architectures (like MoE) remains an open question.
- Memory Management: While the simulator tracks HBM occupancy, more sophisticated handling of KV-cache fragmentation (similar to PagedAttention) could further improve efficiency.
Summary updated