-
Notifications
You must be signed in to change notification settings - Fork 129
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
Profile memory usage and describe plan of action to address issues #1936
Comments
Notes to myself (ongoing, this will be changed/edited):
Program features
Infrastructure (after pprof server above)
Code
Memory related
General soundness
|
https://drive.google.com/drive/folders/1eh5_0Kb4zbwe8qckCqJ2we6EE3nTkr4C?usp=sharing |
With #2009 memory consumption ( EDIT: Sometimes it stabilizes, sometimes not and it goes OOM |
Problem is definitely coming from Lines 72 to 82 in ccf12de
We are appending hashes of 'old generation node' to the One way to fix this would be to keep a reference to the parent branch (or nil for the root node) in order to update the reference to the node being from the older generation. I am still reviewing and testing the code in |
After full unit testing coverage and full linear refactoring of Most notably, the following issues were the root of the memory usage increasing over time: Issues fixed during the trie refactoring
Issues fixed by refactoring the trie node code
Issues fixed in
|
There is a memory leak with the gossip map of seen hashes, discovered in #2383 |
Gossip map of seen hashes memory leak mentioned above is tracked by #2398 (found in audit) |
Closed since we have resolved a lot of our slow memory leaks. Also will be revamping state storage, so another round of testing will be done. |
Issue summary
Other information and links
The text was updated successfully, but these errors were encountered: