Collective I/O
Collective I/O is file access coordinated across a group of processes, allowing their requests to be considered together.
In MPI, the collective group comes from the communicator used to open the file, through a duplicate associated with its handle. Other arguments can differ unless the operation requires agreement. Matching collective operations must occur in the same order across the group. [1][2]
Participation does not guarantee aggregation: ROMIO can service a collective call with individual accesses when collective buffering is disabled or its heuristic chooses that path. Two-phase I/O is one implementation strategy, not another name for every collective operation. [3]
The implementation may wait for every member to enter before making progress. A fast process can therefore wait for a late participant even when the storage device is idle. [4]
The linked example separates file-read bytes, file-read calls and cross-rank payload. None alone predicts elapsed time. [5]
Relations
Citations
- MPI 4.1, Collective File Operations
- MPI 4.1, Correctness: ordering of collective calls
- ROMIO users guide, Hints (2016): collective-buffering controls
- MPI 4.1, Progress: collective file routines
- Hesela: cyclic-read request and redistribution accounting
Sources & caveats
- MPI 4.1 semantics and the dated ROMIO guide are separate evidence scopes; library configuration is not an interface guarantee.