Isolated Scheduling for Distributed Training Tasks in GPU Clusters

Xinchi Han, Weihao Jiang, Peirui Cao, Qinwei Yang, Yunzhuo Liu, Shuyao Qi, Shengkai Lin, Shizhen ZhaoarXiv 2023 · DOI

Introduction

As artificial intelligence models explode in size, the infrastructure required to train them has faced a significant shift in bottlenecks. In the last five years, the scale of machine learning models has grown by nearly 3,000x. However, hardware improvements have not kept pace across all dimensions; while computational capacity has increased significantly, single-port network bandwidth has only grown by approximately 4x. This disparity has turned the network into the primary bottleneck for large-scale Distributed Machine Learning (DML), where networking can now account for up to 90% of total training time.

The widening gap between model size growth and hardware capacity, particularly network bandwidth.

The Network Bottleneck

The authors identify two primary culprits behind this "network tax":

  1. Hash Collisions (Intra-task Contention): Modern data centers rely on Equal-Cost Multi-Path (ECMP) routing. Because ECMP uses random hashing to distribute traffic, multiple high-bandwidth flows often collide on the same physical port, causing congestion even when the overall network is underutilized.
  2. Multi-tenant Interference (Inter-task Contention): In shared GPU clusters, different jobs compete for the same physical links. This interference leads to unpredictable training times and performance degradation, particularly for communication-heavy models.

Proposed Solution: vClos and OCS-vClos

To address these issues, the researchers propose a two-tier solution that treats the network as a schedulable resource rather than a generic utility.

vClos (Virtual Clos)

vClos partitions the cluster into smaller, isolated Leaf-Spine sub-topologies. By using source routing instead of standard ECMP, vClos pre-plans paths to ensure they are mathematically guaranteed to be contention-free for common DML traffic patterns like Leaf-wise Permutation. The scheduler jointly optimizes GPU assignment and network topology based on the specific communication pattern of the model (e.g., Ring-AllReduce).

OCS-vClos

Static network partitioning often leads to resource fragmentation, where idle GPUs cannot be connected into a contention-free sub-topology. To solve this, the authors introduce Optical Circuit Switches (OCS) between the Leaf and Spine layers. OCS allows the system to physically rewire connections on the fly, "stitching together" fragmented resources into a clean vClos topology.

Comparison between standard shared network topologies and the proposed vClos architecture with OCS-enabled physical reconfiguration.

Evaluation and Key Results

The system was evaluated using real-world traces from large-scale DML clusters, physical testbed experiments with 32 NVIDIA V100 GPUs, and large-scale simulations on up to 2048 GPUs.

  • Performance Gains: In testbed experiments, vClos reduced the Average Job Running Time (JRT) by up to 21% compared to standard ECMP.
  • Wait Time Reduction: In 2048-GPU simulations, OCS-vClos reduced the Average Job Waiting Time (JWT) by 65% by effectively de-fragmenting the cluster.
  • Sensitivity and Stability: The research highlighted that Mixture-of-Experts (MoE) and recommendation models (DLRM) are particularly sensitive to contention due to their reliance on AlltoAll communication. vClos significantly improved performance stability for these models by providing physical or logical isolation.

Conclusion

As the gap between model size and network bandwidth continues to widen, traditional network management strategies like ECMP are becoming insufficient for DML. By implementing isolated scheduling through vClos and leveraging the physical flexibility of OCS, GPU clusters can eliminate network contention, significantly reducing training times and improving resource efficiency in multi-tenant environments.

Summary updated

BibTeX
@misc{han2023isolated,
  author = {Xinchi Han and Weihao Jiang and Peirui Cao and Qinwei Yang and Yunzhuo Liu and Shuyao Qi and Shengkai Lin and Shizhen Zhao},
  title = {{Isolated Scheduling for Distributed Training Tasks in GPU Clusters}},
  year = {2023},
  eprint = {2308.05692},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.05692},
}
Figure