Ray's Knowledge Base
Unlock

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_ompio priority 30, io_romio321 priority 10), so a collective read such as MPI_File_read_at_all does not go through ROMIO.
  • OMPIO's file layer, mca_fbtl_posix.so, imports pread and preadv, not pread64. A wrapper bound only to pread64 and pwrite64 sees no file I/O from the aggregators. Bind pread, pwrite, preadv and pwritev too; take the preadv size 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 no MPI_ or PMPI_ 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 imports PMPI_Isend, PMPI_Irecv, PMPI_Wait* and similar through the GOT, so binding the PMPI_ names would show them.
  • HDF5 itself imports MPI_File_read_at_all, MPI_File_set_view, MPI_Allreduce and the other public calls, so their nesting under H5Dread is 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