Two-phase I/O
Two-phase I/O is a collective access strategy that separates file transfers by aggregator processes from redistribution to or from the application's processes.
For reads, aggregators fetch file regions before distributing the requested portions. For writes, processes first send data to aggregators, which then issue file writes. These phases describe data movement, not two-phase transaction commit. [1]
In ROMIO's 1999 algorithm, file domains partition the combined request extent. Buffer limits can require repeated I/O and communication rounds; two phases do not mean two system calls. Domains may still contain gaps needing data sieving. [2]
ROMIO exposes aggregator-count and buffer-size hints, but requested hints can be ignored. MPI_File_get_info reports the values in use. Increasing the buffer does not remove redistribution costs. [3]
Example: four ranks each need four interleaved 4 KiB blocks. Two aggregators reading 32 KiB domains issue two logical file reads for 64 KiB, then move 48 KiB between ranks. A per-rank spanning-read strategy instead reads 208 KiB. These are constructed counts, not speedup measurements. [4]
Collective buffering can lose to independent access when communication costs exceed the saved I/O time. The historical UNSTRUC read experiment includes such a case. [2]
Relations
Citations
- ROMIO users guide, Optimizations (2016): aggregation and transfer order
- Thakur, Gropp and Lusk. Data Sieving and Collective I/O in ROMIO. Frontiers 1999, sections 4-5.
- ROMIO users guide, Hints (2016): collective-buffering controls
- Hesela: cyclic-read request and redistribution accounting
Sources & caveats
- The historical paper's bandwidth results are not predictions for modern storage. The accompanying model has no latency, cache or physical-device model.