-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running into memory issues when simulating many models with with different initial conditions #1225
Comments
What version are you running? Can this be reproduced on a desktop machine?
|
I'm using libroadrunner 2.5.0 haven't tried running it locally yet |
I can say that the saveState/loadState functions had a bug that was fixed with 2.7.0. It was causing crashes, not memory leaks, though. But it can't hurt to try the latest version, at least? |
sure ill update and report back |
same thing with 2.7.0... |
We'll probably need a desktop example that shows the effect in order to pin
down the leak.
|
Thanks for checking! I just ran all of roadrunner's C-based tests through valgrind and there were no errors/leaks there, so the problem must lie either in Python directly or in the Python bindings. If you could manage to get something that illustrated the problem and could be run locally, that would be ideal. |
Thanks for checking that Lucian. Working on a minimal example that will show the issue locally... What are some way I could check for memory leaks in python or bindings? |
It's possible to run valgrind on python, but that's going to find issues on even the blandest of scripts. It should also find the leak we're looking for, though. The main thing I can think of is to just have the exact same script as ran on Hyak, but locally (and maybe simpler) and watch it eat memory? |
I'm running simulations in parallel on Hyak using ipyparallel. I'm able to load and simulate models on many engines, but eventually I run out of memory. After doing a couple of tests, I believe the memory leak is related to roadrunner and not ipyparallel.
Here is what I'm seeing:
initial load:
and the load eventually after some iterations:
I'm doing something like this in a loop with different parameter sets:
And i have these config flags:
The text was updated successfully, but these errors were encountered: