Skip to content
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

ackhandler.Packet pool is mostly ineffective #3537

Closed
marten-seemann opened this issue Aug 30, 2022 · 1 comment · Fixed by #3538
Closed

ackhandler.Packet pool is mostly ineffective #3537

marten-seemann opened this issue Aug 30, 2022 · 1 comment · Fixed by #3538

Comments

@marten-seemann
Copy link
Member

The ackhandler.Packet pool introduced in #3525 seems to be leaky.

Instrumenting the code with simple counters for the Get and Put operations shows that we're getting a lot more buffers than we're putting back. On the receiving end of a 1 GB transfer, we get the following:

get: 228214, put: 11783

230k Gets seem about right, it means we're sending an ACK for every 3-4 packets we receive. I would've expected most of these packets to be acknowledged at some point though, which would release them back into the pool.

@marten-seemann marten-seemann added this to the v0.30.0 milestone Aug 30, 2022
@marten-seemann
Copy link
Member Author

We don't save non-ack-eliciting packets to our packet history, so we're leaking all the Packets there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant