-
Notifications
You must be signed in to change notification settings - Fork 38.6k
validation: improve connect bench logging #24216
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
Conversation
jonatack
left a comment
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.
Code review ACK 7ccde3737fc48e114b19e78fb1d511459dd63dea
7ccde37 to
cfb027d
Compare
|
Review ACK cfb027dd1becbc8b3b93504f67eaf76696d65fe8 |
cfb027d to
304ef73
Compare
|
OCD rebase now that CI works again, but that seems justified when touching |
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.
Concept and code-review ACK 304ef73
Note that these two consecutive log messages are contradictary to each other:
- Using cached block
- Load block from disk: ...
In theory one could just suppress the "Load block" message in the cache case since it doesn't contain any valuable information (measuring the time it takes for merely setting a pointer will always yield a result close to zero). OTOH I don't know if it's worth it to make further changes here. The PR is a clear improvement in any case.
(EDIT) Oh, nevermind, the message also contains the total time spent on loading blocks, so it would be a rather bad idea to not show it in some cases.
|
@theStack I agree the messages are contradictory, but I didn't want to drop the second message, since others might rely on it. |
|
Code review ACK 304ef73 |
jonatack
left a comment
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.
re-ACK 304ef73 per git range-diff 4faf7a1d8 cfb027d 304ef7 rebase only since my last review
Example outputs from
src/bitcoind -debug=benchduring IBD.When the pass the block in memory:
When we have to load the block from disk (when blocks are received out of order, they are saved after initial validation steps and then loaded again for the final validation steps and connecting to tip):