In high-performance computing (HPC) and cloud data centers, the trend of increasing GPU density within single servers has introduced a significant challenge: interconnect complexity. As servers pack more accelerators, the physical and logical links between them—such as NVLink, PCIe, and QPI—create a non-uniform communication landscape. If a communication-intensive machine learning job is randomly assigned to a set of GPUs with poor connectivity, performance can degrade significantly.
Researchers from UC Riverside, PNNL, and the University of Sydney introduced MAPA (Multi-Accelerator Pattern Allocation) at SC ’21 to address this. MAPA moves away from treating GPU clusters as collections of identical components, instead managing them as complex, heterogeneous networks.
The Problem: Topology Fragmentation
Modern GPU servers, such as the Nvidia DGX-1, are not simple boxes of accelerators; they are intricate webs of diverse interconnects. Some links, like NVLink, offer significantly higher bandwidth than standard PCIe lanes.
The primary issue in multi-tenant environments is fragmentation. Standard schedulers often assign GPUs based on the lowest available ID without considering topology. This can force a single job to communicate across slow PCIe bottlenecks even when high-speed NVLink "highways" are physically available but unassigned. For communication-heavy tasks, this sub-optimal allocation leads to massive slowdowns.
Methodology: A Graph-Based Approach
MAPA employs a topology-aware allocation policy using graph pattern mining to match an application’s specific communication requirements with the best available hardware links. The system operates through four main stages:
- Graph Abstraction: The server is represented as a Hardware Graph (nodes are GPUs, edges are the fastest links), while the application is represented as an Application Graph reflecting its internal communication patterns.
- Pattern Matching: Using the Peregrine graph mining engine, MAPA searches the hardware graph for available subgraphs that match the application's required pattern.
- Predictive Scoring: Rather than using raw bandwidth, MAPA utilizes a Predicted Effective Bandwidth (EffBW) metric. This uses non-linear polynomial regression to account for how different link types interact during collective operations like
All-Reduce. - The "Preserve" Policy: To optimize long-term throughput, MAPA assigns "bandwidth-insensitive" jobs to the least-connected available GPUs. This strategy preserves high-speed links for future jobs that are highly sensitive to communication latency.
Key Insights and Performance
The researchers found that ML models vary wildly in their sensitivity to link speed. For instance, models like GoogleNet have low communication-to-computation ratios and are relatively unaffected by link types. In contrast, models like VGG-16 can see nearly a 3x speedup when moved from PCIe to NVLink.
By targeting the "long tail" of execution—preventing jobs from receiving terrible allocations—MAPA achieves significant system-wide improvements:
- Tail Latency Reduction: Execution time for the 75th percentile of jobs was reduced by 12.4%.
- Worst-Case Improvement: The absolute longest execution times were reduced by up to 35% compared to baseline schedulers.
- Throughput: Overall system throughput increased by nearly 12%.
Conclusion and Future Directions
MAPA demonstrates that intelligent, topology-aware scheduling is essential for modern multi-tenant GPU servers. While the current implementation focuses on static intra-node topologies, future work aims to address dynamic communication patterns, multi-node cluster scaling via InfiniBand, and the impact of CPU-GPU NUMA effects. By treating the server as a network rather than a bucket of parts, MAPA provides a scalable path for next-generation hardware like Torus-2d and Cube-mesh architectures.
Summary updated