-
Notifications
You must be signed in to change notification settings - Fork 13
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
Memory usage increases with multiple realizations #127
Comments
Yeah, sometimes this problem comes up with Julia and it can be a bit annoying to fix. I think there are three things you could try:
|
Thank you very much @hexaeder . I was almost renouncing using Julia for any simulation! |
To be honest, not really. If you search for Sometimes, especially on HPC systems, the maximum available memory is much higher than what your process is allowed to use (if you're on a compute cluster with 500 gigs of memory but only allocated 100 for you job...). For those scenarios, there is a new I'll close the issue here since it is not really ND.jl related. |
I would like to compute some statistical quantities from multiple realizations of a dynamical system. I reproduced the issue that I have using one of the examples, kuramoto_oscillators.jl.
For example, I simply introduced a loop that repeats either the sampling of the initial conditions + solves (commented below) or the entire construction of the dynamical system. I would have expected that the variables were overwritten after each repetition, not consuming further memory. But at each repetition, it keeps increasing, eventually saturating all the available memory. I am relatively new to Julia, so I apologize if I am not seeing something. I attempted to understand the leak with the profiler Pprof without success. I also tried to set all the variables
= nothing
, but it did not improve the issue. I seem to be making a mistake, but I'm not sure what it is. (Julia versions 1.9.0 and 1.9.2)The text was updated successfully, but these errors were encountered: