Repository navigation
perf(linux): size UDP socket buffers to 1 MiB, as mqvpn does - #40
Merged
Merged
Conversation
The QUIC UDP sockets kept the 208 KiB default send buffer, which fills in
about 2 ms at 900 Mbps. On the WAN MITM bench about 20% of sendmsg calls
failed with EAGAIN; behind each one xquic retried on every wakeup and logged
three ERROR lines. Request 1 MiB for SO_SNDBUF and SO_RCVBUF in
UdpSocket::bind, mqvpn's value (the kernel caps it at net.core.{w,r}mem_max
and doubles it).
On the bench kernel sendmsg EAGAIN went from ~20% to 0, and throughput rose
12-19% single path and 28-37% multipath (paired runs).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The QUIC UDP sockets kept the 208 KiB default send buffer, which fills in about 2 ms at 900 Mbps. On the WAN MITM bench about 20% of sendmsg calls failed with EAGAIN; behind each one xquic retried on every wakeup and logged three ERROR lines. Request 1 MiB for SO_SNDBUF and SO_RCVBUF in UdpSocket::bind, mqvpn's value (the kernel caps it at net.core.{w,r}mem_max and doubles it).
On the bench kernel sendmsg EAGAIN went from ~20% to 0, and throughput rose 12-19% single path and 28-37% multipath (paired runs).