-
Notifications
You must be signed in to change notification settings - Fork 44
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
RAM usage grows without bound when using pyabc.sampler.SingleCoreSampler()
#626
Comments
Thanks @Gabriel-p for reporting this. So are you saying you cannot provide the script for us to test to reproduce the results? It would be good to confirm it on another installation. |
Let me see if I can clean it up and reduce the number of files to the minimum required |
Ok, here's the compressed file with everything needed to reproduce the issue. You'll need a
Then you just run the Let me know if something does not work. |
Ah, perfect, we will have a look at this. |
At @Gabriel-p I can't reproduce your issue here, what is the frequency of this error happening? |
Hi @stephanmg, I think I sent the files improperly packaged, not sure if you could manage to run the I can reproduce the issue 100% of the times, even after restarting the system.Another thing I've noticed is that sometimes the script keeps running in the background even after I close my IDE (Sublime Text) |
Yes, please re-package if possible and I will give it another try. Thanks for your patience. |
Now it should work |
Hi @Gabriel-p I can't reproduce it here, I will also assign @arrjon to check the issue. |
Ok, I can still reproduce this issue 100% of the times so let me know what I can do to help |
I checked it now on MacOS, and it seems like |
Hi @Gabriel-p, could you show the content of OMP_NUM_THREADS, e.g. |
... and could you try the branch |
This is the output to screen with the
It appears to be running the sampler twice? The RAM usage stays low as expected. This is the output to screen with the
The RAM usage immediately starts climbing. |
Thanks for the information @Gabriel-p - we are currently still troubleshooting the issue. We will push the fix, when it's ready, to the |
@Gabriel-p might be related to this issue: ICB-DCM/pyPESTO#1312 Could you please try again the |
@stephanmg just tested the |
Thanks for testing so quickly, hoped the issue would go away in light of this. However, seems that we need to dig deeper. |
Bug description
When I use
pyabc.ABCSMC()
withsampler=pyabc.sampler.SingleCoreSampler()
the RAM usage will some times grow until all available RAM is consumed. This happens rarely but I tested it enough times to reproduce it. The issue goes away if I use insteadsampler=pyabc.sampler.MulticoreEvalParallelSampler(n_procs=1)
Script with
sampler=pyabc.sampler.SingleCoreSampler()
Exact same script but using
sampler=pyabc.sampler.MulticoreEvalParallelSampler(n_procs=1)
Expected behavior
Not use all the RAM.
To reproduce
I can't, my scrip is very large and it also does not happen all the time.
Environment
elementary OS 7.1 (based on Ubuntu 22.04.3 LTS); Linux 6.5.0-14-generic
The text was updated successfully, but these errors were encountered: