Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

MPI taking so much VIRT memory

mrobin
Beginner
331 Views
Hi,
I have a fortran program compiled with ifort and openMPI and I experienced a strange behaviour - when runing at one processor, it takes about 105M of VIRT memory (which is fine) but when I run it on 2 processors ( mpirun -np 2 ...) each process takes about 550MB of virt memory. There is nothing in the code that would scale with the number of processes and the amount of SHR memory fits well ( 44 MB with one proc and cca 52MB altogether with 2 procs). Any ideas why does it need so much memory?
0 Kudos
2 Replies
William_M_Intel1
Employee
331 Views

It could be that OpenMPI is pre-allocating a lot of message buffers.

Can you try the same experiment with Intel MPI? If the memory consumption is still too high, Intel MPI provides knobs that you can turn to reduce memory consumption.

--Bill

0 Kudos
umar
Beginner
331 Views
Do you happen to use "contains" statement? I remember long time ago
that with contains somehow the memory usage was much larger.
0 Kudos
Reply