Introduction
In modern data centers, Machine Learning (ML) has become the primary workload. Unlike traditional big data tasks, ML training is highly GPU-intensive, often spanning from minutes to weeks. Managing these resources in multi-tenant environments—where hardware is shared among numerous users—presents significant challenges. Testing new scheduling algorithms on large-scale clusters (1,000+ GPUs) is prohibitively expensive and risky, as failures can disrupt production. Furthermore, legacy tools like Slurm or YARN are often ill-equipped for ML-specific needs such as high-bandwidth interconnects and GPU sharing.
AnalySIM addresses this gap as a high-fidelity, trace-driven simulator designed to evaluate GPU scheduling policies at scale without the overhead of physical infrastructure.
The AnalySIM Platform
AnalySIM is built on three core principles: fidelity, portability, and analyzability. It models both physical network topologies (switches, latency, and bandwidth) and logical partitions to recreate the exact conditions of a production environment.
The platform supports dynamic mechanisms such as:
- Preemption: Pausing lower-priority jobs to accommodate urgent tasks.
- Migration: Moving running jobs between nodes to defragment the cluster.
- Trace-Driven Simulation: Utilizing real-world job logs to replicate production environments accurately.
Experimental Setup
The simulator was evaluated using a 20-day production trace from SenseTime, encompassing 154 nodes and 1,160 GPUs. This dataset includes 9,356 jobs, with approximately 40% requiring more than four GPUs simultaneously, providing a robust testbed for complex scheduling scenarios.
Key Insights and Results
AnalySIM demonstrated exceptional accuracy, with a predicted average Job Completion Time (JCT) within 0.1% of real-world cluster performance (6604.11s vs. 6606.35s).
One significant finding involves the "Free-GPU" allocation strategy. Traditional "Best-fit" policies often force jobs to wait for a single node with sufficient idle slots. AnalySIM reveals that allowing jobs to utilize idle GPUs across different nodes—provided the network can support the communication—drastically reduces wait times.
Additionally, the study highlighted:
- Migration for Defragmentation: Moving small jobs to "pack" them together can free up entire nodes for large-scale jobs, mitigating resource fragmentation.
- MLFQ for Fairness: Multi-Level Feedback Queues (MLFQ) effectively prevent massive training sessions from starving smaller experimental jobs by managing time quantums based on GPU usage.
Conclusion
AnalySIM provides a powerful environment for researchers to iterate on complex scheduling strategies like Reinforcement Learning (RL) and job migration. By bridging the gap between theoretical design and large-scale deployment, it enables more efficient utilization of expensive GPU resources in multi-tenant data centers.
Summary updated