arrow
Return

Self-Consistent MPI Performance Guidelines

delete2010-05-01
delete25
delete
OA
AI
J
Jesper Larsson Träff *
William Gropp cover
William Gropp (William Gropp)
Rajeev Thakur cover
Rajeev Thakur (Rajeev Thakur)
DOI:10.1109/TPDS.2009.120delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Message passing using the Message-Passing Interface (MPI) is at present the most widely adopted framework for programming parallel applications for distributed memory and clustered parallel systems. For reasons of ( universal) implementability, the MPI standard does not state any specific performance guarantees, but users expect MPI implementations to deliver good and consistent performance in the sense of efficient utilization of the underlying parallel (communication) system. For performance portability reasons, users also naturally desire communication optimizations performed on one parallel platform with one MPI implementation to be preserved when switching to another MPI implementation on another platform. We address the problem of ensuring performance consistency and portability by formulating performance guidelines and conditions that are desirable for good MPI implementations to fulfill. Instead of prescribing a specific performance model (which may be realistic on some systems, under some MPI protocol and algorithm assumptions, etc.), we formulate these guidelines by relating the performance of various aspects of the semantically strongly interrelated MPI standard to each other. Common-sense expectations, for instance, suggest that no MPI function should perform worse than a combination of other MPI functions that implement the same functionality, no specialized function should perform worse than a more general function that can implement the same functionality, no function with weak semantic guarantees should perform worse than a similar function with stronger semantics, and so on. Such guidelines may enable implementers to provide higher quality MPI implementations, minimize performance surprises, and eliminate the need for users to make special, nonportable optimizations by hand. We introduce and semiformalize the concept of self-consistent performance guidelines for MPI, and provide a (nonexhaustive) set of such guidelines in a form that could be automatically verified by benchmarks and experiment management tools. We present experimental results that show cases where guidelines are not satisfied in common MPI implementations, thereby indicating room for improvement in today's MPI implementations.
Keywords:
Parallel processing
message passing
message-passing interface
MPI
performance portability
performance prediction
performance model
public benchmarking
performance guidelines

AI Summary

Brief Overview

In May 2010, Traff, Jesper Larsson; Gropp, William D.; and Thakur, Rajeev published the paper "Self-Consistent MPI Performance Guidelines" online in IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS. This study proposed a set of self-consistent performance guidelines that address the critical issue of unpredictable and highly variable performance when parallel programs are run on different supercomputers or different vendors' MPI software. By systematically comparing and constraining the performance relationships among various message-passing operations (such as send, broadcast, and reduction), the study established the reasonable expectation that "functionally similar operations should not exhibit drastically different performance," thereby significantly curbing the practice of users being forced to manually rewrite communication code to improve speed. It provides a new approach for enhancing the stability and portability of the high-performance computing software ecosystem.

Research Abstract

In the supercomputing field, scientists rely on the Message Passing Interface (MPI) to write parallel programs but frequently encounter an awkward situation: running the same code on a different machine or with a different MPI version can cause communication speed to drop by half. Users are compelled to act like "tuning engineers," repeatedly splitting messages, replacing functions, or even rewriting underlying communication logic. Existing solutions may optimize individual functions for specific hardware (such as making broadcast faster), but they neglect the inherent correlations between functions. For example, "broadcast" can theoretically be implemented by combining "scatter" and "gather"; if the native broadcast is slower than this manual combination, it exposes a design contradiction. This paper moves away from traditional performance modeling that presumes hardware parameters; instead, it starts from common sense for programmers and outlines dozens of "expected performance relationships," such as "dedicated functions should not be slower than general-purpose functions" and "functions with stronger guarantees should not be slower." The results show that mainstream MPI libraries on systems such as the IBM Blue Gene frequently violate these guidelines, indicating a systemic optimization blind spot in the framework that urgently requires a unified standard to calibrate quality.

Background

MPI is the most commonly used parallel programming tool on supercomputers, with its core advantage being cross-platform universality—a single codebase can theoretically run on systems ranging from petaflop-scale supercomputers to ordinary server clusters. However, when users find that sending 1500 bytes of data using MPI_Send is faster than splitting it into two 750-byte messages, a serious problem is exposed: performance is no longer determined by algorithmic efficiency but is hijacked by hidden mechanisms such as low-level protocol switches (e.g., "eager mode" vs. "handshake mode"). This causes communication efficiency to plummet when migrating a program from machine A to machine B. Although Strategy A accelerates single operations through customized algorithms, it leads to performance imbalances among similar operations; Strategy B emphasizes absolute speed but sacrifices cross-platform consistency. Therefore, establishing a "universal standard" that does not rely on specific hardware but constrains the relative performance of all MPI functions has become a critical bottleneck in improving the portability of supercomputing applications.

Key Highlights

  1. Performance Anchoring for Similar Functions: Executing a large task by splitting it into multiple smaller tasks (e.g., splitting one large data send into two smaller sends) should not be faster than executing it as a single task—otherwise, it indicates that the underlying layer has not optimized large-task performance properly. In actual measurements, some MPI libraries showed performance variations up to 4x in such scenarios, akin to "a highway with an 80 mph speed limit that encourages drivers to take small roads to overtake."
  2. Dedicated Over General: The MPI_Bcast function, designed specifically for broadcasting, should not be slower than a combination of general-purpose functions like MPI_Scatter + MPI_Allgather—otherwise, it exposes a fragmented algorithm. In the paper, the IBM Blue Gene system showed that its broadcast speed was only 1/4 of such a combination, like "an express train being slower than a carpool ride."
  3. Strong Guarantees Should Not Hinder Performance: The MPI_Ssend function, which includes synchronous acknowledgment (ensuring the receiver is ready), adds an extra layer of safety compared to ordinary sends but should not be slower for that reason—otherwise, safety implies inefficiency. Tests indicate that violations cause latency to increase by 2–3x, similar to "adding a bumper to a car making it run slower."

Summary and Outlook

Based on self-consistent performance guidelines, establishing relative performance constraints between functions enables a quantifiable assessment of MPI implementation quality. This technology offers the dual advantage of transparent principles and practical verifiability. The results show that on the IBM Blue Gene/P system, performance inversions were identified between broadcast and scatter operations, and in heterogeneous supercomputing clusters, a 300% surge in communication latency was found to be caused by process renumbering. This study not only addresses the industry pain point of "one machine, one performance profile" for parallel programs but also provides a methodological paradigm for performance governance in distributed system middleware, AI training communication libraries, and future quantum computing control software by elevating engineering experience into verifiable logical rules. The research team is subsequently promoting the integration of these guidelines into the international supercomputing benchmark SKaMPI, enabling every newly launched supercomputer to automatically "check up" on the health of its MPI library.

errShare
errSave
MIST: Towards MPI Instant Startup and Termination on Tianhe HPC Systems
err
err0
PREAI
errYiqin Dai; Ruibo Wang; Yong Dong; Min Xie; Juan Chen; Wenzhe Zhang; Huijun Wu; Mingtian Shao; Kai Lu
errShare
errSave
errShare
errSave
MPI for Python:: Performance improvements and MPI-2 extensions
err2008-05-01
err252
errOAAI
errDalcin, Lisandro; Paz, Rodrigo; Storti, Mario; D'Elia, Jorge
errShare
errSave
errShare
errSave

Journal

IEEE Transactions on Parallel and Distributed Systems cover
IEEE Transactions on Parallel and Distributed Systems
IF:
6
Papers:
5.2K
Citations:
1.4W

Organization

U
University of Illinois Urbana-Champaign
Scholars:
1.9K
Papers: 776
Citations: 1.9W
University of Illinois System cover
University of Illinois System
Scholars:
6.9W
Papers: 6.2W
Citations: 8.4W
U
University of Vienna
Scholars:
1.5K
Papers: 649
Citations: 1.4W
researcher View more organizations
Cited Papers

Cited Papers

LogP - A practice model of parallel computation
err1996-11-01
err186
errOAAI
errCuller, DE; Karp, RM; Patterson, D; Sahay, A; Santos, EE; Schauser, KE; Subramonian, R; vonEicken, T
errShare
errSave
researcher View more