-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Use fold/reduce to avoid locks in shrink accounts collection #34042
Use fold/reduce to avoid locks in shrink accounts collection #34042
Conversation
e89d2dd
to
1edcd31
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #34042 +/- ##
=======================================
Coverage 81.9% 81.9%
=======================================
Files 811 811
Lines 219569 219573 +4
=======================================
+ Hits 179901 179920 +19
+ Misses 39668 39653 -15 |
1edcd31
to
71ef71a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it. Are there perf numbers for before and after?
No. do you have a good way to bench this change? |
Looks like there's a I think if you use the same snapshot and do not skip the initial shrink, then that may be a way to compare? Another option is to spin up two nodes; one with this change and one without. Let them run for a bit, then swap. This should let you compare with and without this change. |
I tried ledger tool verify but it seems not hitting shrink during the run. I am going to spin up two nodes to compare instead. |
Nice. Now can you swap which node is running the pr vs master? That'll add another set of datapoints to compare. We'll want to see (ideally) that when the node goes from PR to master, its perf drops. And the node that goes from master to PR, its perf increases. |
Yeah, it's hard for me to draw conclusions. How do you recommend we proceed? |
Since there is no much improvement, let's close it. |
Problem
Motivated by #34011, we can use
fold/reduce to avoid locks in shrink accounts collection.
Summary of Changes
fold/reduce to avoid locks in shrink accounts collection.
Fixes #