Node Operator
Search…
Linux Configuration for UDP
If you are running your node on Linux, you might see warnings about the receive buffer size.
UDP transfers on high-bandwidth connections can be limited by the size of the UDP receive buffer. This buffer holds packets that have been received by the kernel, but not yet read by the application. Once this buffer fills up, the kernel will drop any new incoming packet.
Our software attempts to increase the UDP receive buffer size. However, on Linux, an application is only allowed to increase the buffer size up to a maximum value set in the kernel, and the default maximum value is too small for high-bandwidth UDP transfers.
We recommend increasing the maximum buffer size by running the following to increase it to ~2.5MB.
1
sysctl -w net.core.rmem_max=2500000
Copied!
To make this value persistent across reboots, run the following instead:
1
echo "net.core.rmem_max=2500000" >> /etc/sysctl.conf
2
3
sysctl -w net.core.rmem_max=2500000
Copied!
Last modified 4mo ago
Copy link