Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] mpi functions are slow when first called and become normal afterwards
From: rightcfd (rightcfd_at_[hidden])
Date: 2009-10-29 15:39:32

We installed a linux cluster recently. The OS is Ubuntu 8.04. The
network is infiniband. We run a simple MPI program to compute the
value of pi. The program follows three stages: MPI_Bcast, computation
and MPI_Reduce. We measure the elapsed time on computation and
communication, respectively. We also repeat the entire process in a
loop terminated by user input. We run the program interactively using
mpirun. We found an weird problem.

When MPI_Bcast and MPI_Reduce are called for the first time, they are
very slow. But after that, they run at normal and stable speed. Is
there anybody out there who have encountered such problem? If you need
any other information, please let me know and I'll provide. Thanks in