-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
use SO_RCVBUFFORCE to increase receive buffer size #3795
Comments
I'm interested in picking this up. 🧑🏭 |
@marten-seemann could you add a Linux section to https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes which explains the |
@otbutz Can you suggest some text? |
As of quic-go v0.19.x, you might see warnings about the receive and send buffer sizes. Experiments have shown that QUIC transfers on high-bandwidth connections can be limited by the size of the UDP receive and send buffer. The receive buffer holds packets that have been received by the kernel, but not yet read by the application (quic-go in this case). The send buffer holds packets that have been sent by quic-go, but not sent out by the kernel. In both cases, once these buffers fill up, the kernel will drop any new incoming packet. Therefore, quic-go tries to increase the buffer size. The way to do this is an OS-specific, and we currently have an implementation for LinuxIf the process has the
These commands would increase the maximum receive and the send buffer size to 2.5 MiB. To make these changes persistent across reboots, you should create a sysctl config like
BSDTaken from: https://medium.com/@CameronSparr/increase-os-udp-buffers-to-improve-performance-51d167bb1360
To update the value immediately to 2.5M, type the following commands as root: sysctl -w kern.ipc.maxsockbuf=3014656 Add the following lines to the
|
Do we need a section for Windows? e.g https://lcm-proj.github.io/lcm/content/multicast-setup.html#kernel-udp-receive-buffer-sizing |
The text was updated successfully, but these errors were encountered: