Skip to content
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

Reduce memory used by callback data in confirmation height processor #2456

Conversation

wezrule
Copy link
Contributor

@wezrule wezrule commented Jan 1, 2020

#2233 made the confirmation height processor use a lot more memory as it stored the whole block & sideband for each block it traversed. This has been changed to only store the block hash. An additional store.block_get () is then required later to retrieve the contents but this didn't have any measurable performance hit from benchmarking and gave considerable memory reduction gains, as shown below:
image

It shows for the confirmation_height.long_chains test in the slow_tests a reduction from 82MB to 12MB (86% less memory) for the affected containers. The memory is still unbounded (as well as for receive_source_pairs) but it has been significantly reduced and a proper bounded solution is scheduled for a future release.

I increased the number of blocks used in the slow_test.

@wezrule wezrule added the performance Performance/resource utilization improvement label Jan 1, 2020
@wezrule wezrule added this to the V21.0 milestone Jan 1, 2020
@wezrule wezrule requested review from SergiySW and cryptocode January 1, 2020 11:48
@wezrule wezrule self-assigned this Jan 1, 2020
@wezrule
Copy link
Contributor Author

wezrule commented Feb 1, 2020

No longer needed thanks to #2531

@wezrule wezrule closed this Feb 1, 2020
@zhyatt zhyatt removed this from the V21.0 milestone Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance/resource utilization improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants