TL;DR
This paper presents the world’s first at-scale physical deployment and evaluation of Slim Fly (SF), a diameter-2 low-cost network topology, on a 200-server InfiniBand cluster. To overcome the lack of path diversity inherent to low-diameter networks, the authors also design a novel deadlock-free multipath routing architecture that balances traffic across minimal and non-minimal paths. The evaluation demonstrates that Slim Fly matches or outperforms non-blocking Fat Trees across scientific and deep learning workloads while drastically cutting switch count, cabling, and capital cost.
What Problem Does This Paper Address?
Modern supercomputers and data centers predominantly use Fat Tree (Clos) topologies, which require extensive switching hardware and cabling to guarantee full bisection bandwidth. Low-diameter topologies like Slim Fly promise to cut network latency by ~50% and reduce switches, cables, and power by 25–30% by capping the maximum distance between any two switches to just two hops.
However, Slim Fly had never been deployed in physical hardware. Practical adoption faced two major hurdles:
- Physical deployment and cabling complexity: Engineers feared that the intricate, graph-theoretic wiring of Slim Fly would be error-prone and hard to manage compared to modular Fat Trees.
- Routing and path diversity bottlenecks: In Fat Trees, Equal-Cost Multi-Path (ECMP) routing trivially exploits many identical-length minimal paths. In contrast, Slim Fly typically has only one minimal path between any switch pair, requiring traffic to take non-minimal (3-hop) paths to prevent congestion. Existing approaches (such as FatPaths) enforced acyclic layers to avoid deadlocks, which heavily constrained path selection and caused link bottlenecks on lossless interconnects like InfiniBand.
Methods
- Physical Cluster Deployment: The authors deployed a 200-node cluster connected via 50 36-port (56 Gb/s) Mellanox InfiniBand switches organized into 5 racks (using a $q=5$ Hoffman-Singleton graph construction). They developed automated port-to-port wiring scripts, a 3-step structured cabling procedure, and validation scripts utilizing
ibnetdiscoverto identify broken or misconnected links on a live fabric. - Decoupled Deadlock-Free Multipath Routing: Rather than pruning links to make routing layers acyclic, the authors generate layers by explicitly finding almost-minimal (3-hop) paths that minimize shared link weights ($W$) and prioritize pairs with few paths via a priority queue.
- Hardware-Compliant InfiniBand Multipathing: The authors emulate multipath routing in InfiniBand by configuring LID Mask Control (LMC), giving each endpoint multiple Local Identifiers (LIDs) that act as layer offsets.
- Layer-Agnostic Deadlock Avoidance: To support arbitrary non-minimal paths without exhausting InfiniBand Virtual Lanes (VLs), they implemented a coloring-based deadlock-avoidance scheme based on Duato’s theory: assigning Service Levels (SL) via switch vertex coloring to distinguish intermediate hops and isolate paths across disjoint subsets of VLs.
Datasets
The evaluation relies on standard high-performance computing (HPC) and deep learning proxy suites (no static data/label datasets were trained; instead, synthetic problem configurations and network benchmarks were executed):
- Microbenchmarks: Netgauge effective bisection bandwidth (
eBB), Intel MPI Benchmarks (IMB_Bcast,IMB_Allreduce), and a custom non-blockingMPI_Alltoall. - Scientific Mini-Apps & HPC Benchmarks: TSUBAME2 HyperX suite applications—CoMD, FFVC, mVMC, MILC, and NTChem—alongside High-Performance Linpack (HPL), AMG, MiniFE, and Graph 500 Breadth-First Search (BFS with edge factors 16, 128, and 1024).
- DNN Proxy Workloads: Distributed training proxies for ResNet-152 (data parallel), CosmoFlow (hybrid data/operator parallel), and GPT-3 (hybrid data, operator, and 10-stage pipeline parallel).
Key Insights and Ideas
- Decoupling deadlock handling from path selection is essential: Forcing routing layers to be trees (acyclic) severely limits throughput. Treating path selection and deadlock resolution as separate stages allows nearly 100% of node pairs to have 3+ link-disjoint paths with minimal congestion.
- Address space is the real scaling bottleneck, not switch radix: While adding LIDs per node improves multipath routing, InfiniBand’s 16-bit address space limits total cluster size when using large LMC values. The authors showed that 4 to 8 layers offer the sweet spot, providing up to $8\times$ better throughput than FatPaths without compromising cluster scale.
- Random node placement mitigates non-adaptive routing artifacts: In localized, sub-cluster allocations (e.g., 8–32 nodes), linear placement on Slim Fly created bottlenecks on the single direct inter-switch paths. Random rank placement scattered traffic across the fabric, instantly restoring high throughput even without hardware adaptive routing.
Key Results
- Microbenchmarks & Bisection Bandwidth: Slim Fly achieved ~75% of theoretical bisection bandwidth (matching the 2-level Fat Tree). The new routing scheme improved
eBBthroughput by up to 28% over standard InfiniBand shortest-path routing (DFSSSP). - Deep Learning & HPC Performance:
- On 200 nodes, GPT-3 saw up to a 24% speedup over DFSSSP due to non-minimal path dispersion, outperforming the baseline Fat Tree.
- In overall scaling, Slim Fly matched non-blocking Fat Tree performance across scientific solvers (CoMD, MILC, mVMC) with $<1\%$ runtime difference.
- Cost & Scalability Advantage: Under identical 64-port switch constraints, Slim Fly supports $16\times$ more endpoints than a non-blocking 2-level Fat Tree and $3\times$ more than a 2D-HyperX. For a fixed 2,048-endpoint cluster, deploying Slim Fly saves $1.7M over a 2-level Fat Tree and $2.5M over a 3-level Fat Tree.
Limitations and Future Work
- Absence of Adaptive Load Balancing: Open MPI's static round-robin packet/layer dispatch caused congestion in dense all-to-all communication under linear rank placement. Dynamic, hardware-supported congestion-aware load balancing (e.g., packet spraying or flowlet switching) remains an open engineering step.
- Subnet Address Space Caps: InfiniBand's 16-bit LID limit constrains the maximum number of usable layers at very large cluster sizes ($>10,000$ nodes).
- Port Mismatch in Test Deployment: The authors used 36-port switches where an 11-port switch was mathematically optimal for the chosen configuration, leaving switch ports unutilized solely due to available hardware inventory.
Summary updated