Open MPI 4.1 reads files through OMPIO with pread and preadv, and its collective exchange hides from MPI interposition
FactVerified 1 Oct 2026Holds openmpi: 4.1:4.1
Fact. A statement and the evidence for it.
Statement#
- Open MPI 4.1 picks OMPIO for MPI-IO by default (
io_ompiopriority 30,io_romio321priority 10), so a collective read such asMPI_File_read_at_alldoes not go through ROMIO. - OMPIO's file layer,
mca_fbtl_posix.so, importspreadandpreadv, notpread64. A wrapper bound only topread64andpwrite64sees no file I/O from the aggregators. Bindpread,pwrite,preadvandpwritevtoo; take thepreadvsize as the sum of the iov lengths. - OMPIO's two-phase exchange (
mca_fcoll_vulcan.so) sends and receives through Open MPI's internal tables (mca_pml,ompi_request_functions), with noMPI_orPMPI_symbol. No symbol interposition sees it. In a trace it is only the collective's time less the aggregator's own reads. - If ROMIO is forced (
OMPI_MCA_io=romio321), its ADIOI code importsPMPI_Isend,PMPI_Irecv,PMPI_Wait*and similar through the GOT, so binding thePMPI_names would show them. - HDF5 itself imports
MPI_File_read_at_all,MPI_File_set_view,MPI_Allreduceand the other public calls, so their nesting underH5Dreadis visible.
Evidence#
Read with nm and ompi_info on Open MPI 4.1.9a1 (dpucrumbs, VPIC-IO and BDCATS read with collective H5Dread). nm -D mca_fbtl_posix.so lists pread and preadv as imports and no pread64. A kprobe layer on ksys_pread64 and do_preadv recorded nothing (why was not proven). After binding pread and preadv, 32-rank runs showed reads only on ranks 0, 8, 16 and 24 (230 MiB per array each), the reads taking 72 to 78 percent of their MPI_File_read_at_all, while the other 28 ranks spent 109 to 408 ms in the same call with no file I/O.
Also found by searching
- MPI_File_read_at_all wrapper shows no file reads on the aggregators
- pread64 interposition misses Open MPI collective reads
- how do I see which ranks are MPI-IO aggregators
- PMPI wrappers do not see the two-phase exchange inside a collective read