-
Notifications
You must be signed in to change notification settings - Fork 75
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 consumption #235
Comments
Hi Rob, Regarding your question, a simple run of the model with 1 million individuals should definitely not exhaust 60Gb of memory. The example in import COVID19.model as abm
model = abm.Model( params = { "n_total" : 1000000, "end_time": 50 } )
model.run() Would it be possible for you to please provide a minimal example of where you're coming up against problems with memory? It will help us diagnose the issue. Best regards, |
Hi Will, Thanks for the help. I digged a bit further and realized the memory leak was in the Python-bindings with SWIG. I'll make a pull-request soon to fix this. Indeed, after the fix 100k users consumes less than 5gb and 1M users consumes less than 10gb. |
Hi Rob, |
Hi all, thanks for implementing this API. It has enabled great research already.
I am running into memory problems. Running the simulator with 1 million users, it's intended use-case, my 60 gb memory run out in under 40 steps. Changing the 'days_of_interactions' parameter hasn't changed that.
Am I doing something wrong? What typical memory consumption do you observe?
Thanks in advance,
Rob
The text was updated successfully, but these errors were encountered: