RashmiKumari / g_mmpbsa

MM-PBSA method for GROMACS. For full description, please visit homepage:
http://rashmikumari.github.io/g_mmpbsa/
GNU General Public License v3.0
64 stars 59 forks source link

RAM memory problems #7

Closed bieniekmateusz closed 6 years ago

bieniekmateusz commented 6 years ago

I have a large dataset and I've just noticed that my process is killed.

My dmesg says that the process took over 20GB:

Killed process 14036 (g_mmpbsa) total-vm:26639468kB

I presume this means that the entire simulation is loaded to the RAM memory. If that's true, is this really necessary? Thanks

rjdkmr commented 6 years ago

No, g_mmpbsa does not load the entire trajectory in RAM. However, polar solvation energy calculation requires large RAM that depend on grid-size, cfac, fadd and molecule size.

Also, please post these type of questions in g_mmpbsa forum.

bieniekmateusz commented 6 years ago

So this must be a memory leak issue. I have a small system and each time I use your software on a single trajectory, I am slowly running out of memory. And using simple tools suxh as 'ps' and 'top' I can see your process acumulating ever larger size of RAM memory.

rjdkmr commented 6 years ago

If it is memory leak, it is very difficult to track memory leak because g_mmpbsa uses APBS code internally and we are unable to check for APBS code. You may try to use g_mmpbsa, which uses APBS externally. In this case we could trace memory leak.

Despite the memory leak, such a large memory consumption shows that you are using large number of frames. Are you sure that you need such a large number of frames for MM/PBSA calculation.

bieniekmateusz commented 6 years ago

I'll run an additional test with just MM to see if this problem is due to APBS.

Right now after around 100 frames (and around 100,000 skipped frames) the software crashes on any modern machine.

bieniekmateusz commented 6 years ago

Using only MM does not lead to memory crash so this must be coming from APBS.

Do I understand it right that you using the binary file from APBS? If that is the case, then simply restarting the software would clean the memory heap.

Thanks for your help.

bieniekmateusz commented 6 years ago

I could not reproduce the issue. I imagine that it must have been some error on my part. It could the a PBC issue or something like that.

Thanks for your help, Mat

haseeb3389 commented 5 years ago

Dear @rjdkmr I was calculating the g_mmpbsa and due to power failure my system shutdown, is there anyway to restart from the previous or I have to re-calculate from start?