bmad-sim / bmad-ecosystem

Bmad simulation ecosystem for simulating high energy storage rings.
https://www.classe.cornell.edu/bmad/
12 stars 13 forks source link

Opem MPI programs not releasing memory during run #1163

Open henrylovelace3 opened 1 month ago

henrylovelace3 commented 1 month ago

The ompi programs do not release memory and cause the insufficient memory error. forrtl: severe (41): insufficient virtual memory

test-err.zip

y-axis free memory, x-axis time in minute image Vertical line indicates crash of program

DavidSagan commented 1 month ago

@henrylovelace3 I am not able to reproduce this. And I tried both ifort (17.0.7) and gfortran (11.2.1) Can you try running on a different machine to see what happens?

henrylovelace3 commented 1 month ago

@DavidSagan Attached is a script that if you are using linux will produce the data used in the file. I have tried this on a different machine with the same result. To run the script: bash mem_log.txt log-mem.txt

If you run the script in concert with the mpi programs, you will see that the free memory will slowly deplete.

DavidSagan commented 1 month ago

@henrylovelace3 This does not look like a script.

henrylovelace3 commented 1 month ago

You are right, it was an output. Sorry about that. Attached is the script mem_log.txt

DavidSagan commented 1 month ago

@henrylovelace3 It is not a question of monitoring the memory usage. When I run with your input files I do not see the memory used going up.