-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
eth,core: add api debug_getTrieFlushInterval #27303
Conversation
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.
Sounds good to me!
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.
Looks okish to me. The feature itself is tiny enough.
But honestly I am not a big fan of it. I am not sure when the reference based
in-memory garbage collection will be deprecated. It's supposed to be
replaced by path-based anyway. Feel like we will remove this feature a few
months later.
Signed-off-by: jsvisa <[email protected]>
Signed-off-by: jsvisa <[email protected]>
f6e3abd
to
2709a71
Compare
@rjl493456442 Thank you for your honest suggestion and careful consideration. We now adjust the gc commit rate on our node based on the current CPU and memory usage, as well as the growth ratio of the disk. We hope to know the current commit rate before making any adjustments. And we can drop the two apis together after merging pbss. |
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.
Two nitpicks, but generally LGTM.
As rjl points out, this will be moot after PBSS though 🤷
* core,eth: add api debug_getTrieFlushInterval Signed-off-by: jsvisa <[email protected]> * eth/api_debug: comment of SetTrieFlushInterval Signed-off-by: jsvisa <[email protected]> * Apply suggestions from code review --------- Signed-off-by: jsvisa <[email protected]> Co-authored-by: Martin Holst Swende <[email protected]>
This reverts commit 6d231bb.
This reverts commit 6d231bb.
No description provided.