-
Notifications
You must be signed in to change notification settings - Fork 715
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
Fix protocol handler retrieval thread CPU usage when no blocks are pr… #4617
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.
Solves the problem on my side.
Tracing the tokio loop from which this function is called shows that branches from the select are taken each second.
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.
Nice catch !
TODO: fix comment, shorten all thread names to fit
@sydhds @bilboquet @AurelienFT Does this require an urgent 1.1 deployment ? or does it have no impact at genesis ? |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4617 +/- ##
=======================================
Coverage 71.78% 71.78%
=======================================
Files 291 291
Lines 51642 51642
=======================================
Hits 37069 37069
Misses 14573 14573 ☔ View full report in Codecov by Sentry. |
No it should stop when blocks will be produced. Could be cool to verify with a labnet |
Signed-off-by: Jean-François <[email protected]>
It has impact on node runners hardware tho, if you want people to have node running before genesis it would be great to publish a new release. |
Reproduced in sandbox. In labnet (thanks to @Leo-Besancon) the behavior is the one expected and stated above by @AurelienFT:
|
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.
Good !
…ocessed
resync_check
flag