-
Notifications
You must be signed in to change notification settings - Fork 23
debug memory leak in wave #845
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
Conversation
f6c6780 to
5024409
Compare
|
Impact of different workarounds on memory consumption of wave:
|
|
Every time step, approx. 650 objects are garbage collected with the code in this PR. A typedump of those objects is in https://gist.github.com/matthiasdiener/33956f42bbd60321c75ad2ed62ea2fc6 . A few data structures contain references to PooledSVM allocations (see e.g. line 25 in that file). Are these the objects we should focus on? |
|
Possibly? They look like somewhat plausible suspects for keeping an array alive. |
606c5cb to
b18d120
Compare
|
Here is a reference graph with the objects that are garbage collected on a timestep (made with inducer/pytools#177, slightly modified to limit the number of characters shown per string). |
|
Do the arrows in the graph point from referred to referent? (i.e. the opposite of the 'refers-to') graph? |
Yes, this is true. I'll switch inducer/pytools#177 to point the edges in the other direction. |
b18d120 to
5cf974f
Compare
|
Closing, workarounds (including |
cc #839