Enabling Highly-Scalable Remote Memory Access Programming with MPI-3 One Sided

Robert Gerstenberger, Maciej Besta, Torsten Hoefler

TL;DR

This paper presents a scalable and efficient implementation of the MPI-3.0 one-sided communication interface, leveraging RDMA networks. They demonstrate that this implementation achieves performance comparable to or better than existing PGAS languages and significantly improves application performance with minimal complexity overhead.

What Problem Does This Paper Address?

Modern high-performance computing relies on fast interconnects that support Remote Direct Memory Access (RDMA). While RDMA offers a powerful programming model akin to shared memory, its direct use can be complex. The MPI-3.0 standard introduced a one-sided communication interface to provide a more portable and accessible way to harness RDMA. However, the practical scalability and performance of MPI-3.0 one-sided communication, especially on massive systems, remained largely unproven. This paper addresses this gap by developing and evaluating a highly scalable implementation of MPI-3.0 one-sided communication over RDMA networks, aiming to demonstrate its viability for future exascale systems.

Methods

The authors developed a library called FOMPI (fast one sided MPI) that implements the MPI-3.0 one-sided communication specification. Their approach focuses on creating scalable bufferless protocols that directly utilize RDMA hardware capabilities. Key methodological aspects include:

  • Leveraging Low-Level RDMA: FOMPI interfaces directly with hardware-level RDMA APIs like DMAPP (for inter-node) and XPMEM (for intra-node communication), minimizing software overhead.
  • Scalable Synchronization Protocols: They designed novel, scalable protocols for MPI-3.0 synchronization primitives (e.g., MPI_Win_fence, MPI_Win_start/MPI_Win_complete, MPI_Win_lock/MPI_Win_unlock). These protocols aim for $O(\log p)$ time and space complexity per process on $p$ processes, crucial for large-scale systems.
  • Performance Modeling: The paper provides detailed asymptotic and parametrized performance models for various functions. These models are intended to help programmers select optimal communication and synchronization strategies for their applications.
  • Unified Memory Model: The implementation focuses on the stronger "unified" memory model, which is well-supported by current RDMA networks and offers higher performance.

Datasets

Not discussed in the paper. The paper focuses on microbenchmarks and real-world application studies rather than training on specific datasets.

Key Insights and Ideas

  • MPI-3.0 RMA is Viable for Extreme Scale: The paper convincingly shows that MPI-3.0 one-sided communication, when implemented efficiently over RDMA, can scale to hundreds of thousands of processes and deliver competitive performance.
  • Bufferless Protocols are Key: By avoiding unnecessary data buffering, their protocols achieve low memory overhead and high performance, making them suitable for memory-constrained large-scale systems.
  • Performance Models Empower Programmers: The detailed performance models are a significant contribution, enabling users to make informed decisions about algorithm design and implementation choices, moving beyond "black box" performance.
  • RDMA Unlocks Significant Application Speedups: The application studies demonstrate that leveraging MPI-3.0 RMA can lead to substantial performance improvements (e.g., 15% for MILC, 2x for 3D FFT) with comparable or even simpler programming complexity than traditional MPI-1.
  • Minimal MPI Overhead: The implementation adds a remarkably small number of instructions (around 150-200) to the critical path for communication functions, highlighting the efficiency of their approach.

Key Results

  • Scalability: The implementation scales to 524,288 processes.
  • Performance:
    • Achieves latency and bandwidth comparable to or better than other PGAS languages (UPC, Fortran Coarrays) and optimized MPI-2.2.
  • FOMPI's MPI_Put latency is over 50% lower than other PGAS models for smaller messages.
  • Significant application speedups:
  • Over 15% full-application speedup for MILC.
  • A factor of two speedup for a 3D FFT application.
  • 13.8% improvement for MILC on 524,288 processes.
  • Memory Overhead: Protocols achieve $O(\log p)$ time and space complexity per process, ensuring negligible memory consumption even at massive scales.
  • Programming Complexity: The MPI-3.0 RMA interface allows for performance improvements with comparable or simpler programming complexity compared to MPI-1.

Limitations and Future Work

  • Blocking Calls: The paper notes that while MPI guarantees correct behavior with blocking calls, users can tune for performance by understanding which calls might block. However, writing truly performance-portable programs generally requires avoiding reliance on this detailed knowledge.
  • Future Work: The authors suggest that their developed protocols and synchronization algorithms can serve as a blueprint for future optimized MPI-3.0 RMA implementations. They also anticipate that demonstrating high performance will encourage wider adoption of MPI RMA programming. The detailed performance models are highlighted as a tool for algorithm design and autotuning.

Summary updated

BibTeX
@article{gerstenberger2018enabling,
  author = {Robert Gerstenberger and Maciej Besta and Torsten Hoefler},
  title = {{Enabling Highly-Scalable Remote Memory Access Programming with MPI-3 One Sided}},
  journal = {Communications of the ACM},
  year = {2018},
  url = {https://openreview.net/forum?id=SSz0L4Rp0G},
}
Figure