-
Notifications
You must be signed in to change notification settings - Fork 127
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
add support to log rtt #1522
add support to log rtt #1522
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.
Logging on packet send rather than when we update the value (which is when we receive an ACK) seems like we'll log more often than is necessary.
498db13
to
6a75e75
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1522 +/- ##
==========================================
- Coverage 87.63% 87.54% -0.09%
==========================================
Files 117 118 +1
Lines 38323 38497 +174
==========================================
+ Hits 33584 33704 +120
- Misses 4739 4793 +54 ☔ View full report in Codecov by Sentry. |
Agreed. We should only log when it's changed. |
6a75e75
to
7076f28
Compare
I've decided to log rtts in |
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.
A simplification might be in order, but this is OK otherwise.
neqo-transport/src/cc/classic_cc.rs
Outdated
min_rtt: Duration, | ||
latest_rtt: Duration, | ||
smooth_rtt: Duration, |
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.
Any reason why this can't be passed &RttEstimate
? The function is called from Path::on_packets_acked()
, so I think that is much easier. Then your logging calls might just invoke the Debug
implementation on RttEstimate
(which might need to be improved, as it uses the default).
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.
Your tests can probably build a const RTT_ESTIMATE
.
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.
Thanks. This is neat.
I'll do this.
7076f28
to
f29fdfe
Compare
I've addressed the comment again. |
@larseggert, do you want to review this? If not, would you mind merging it? |
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.
LGTM, but suggest renaming rtts
-> rtt_est
for clarity.
Co-authored-by: Lars Eggert <[email protected]>
72926e0
Co-authored-by: Lars Eggert <[email protected]>
Co-authored-by: Lars Eggert <[email protected]>
Co-authored-by: Lars Eggert <[email protected]>
Co-authored-by: Lars Eggert <[email protected]>
Co-authored-by: Lars Eggert <[email protected]>
Co-authored-by: Lars Eggert <[email protected]>
I assume I can just merge this PR, since the change after last review was addressing some nits. |
Maybe it's worth to also log RTT.