sysctl.si › Parameters › net.core.rmem_max
net.core.rmem_max
Largest receive buffer a socket may request, in bytes.
- Default
- 212992
- Typical value
- 16 MB at 1G, 64 MB at 10G
When to change it
Raise it for high-bandwidth, high-latency links. It only caps buffer sizes, so TCP auto-tuning still decides the actual size.
Check the current value
sysctl net.core.rmem_max
Change it until the next reboot
sudo sysctl -w net.core.rmem_max=16777216
Make it permanent
echo "net.core.rmem_max = 16777216" | sudo tee /etc/sysctl.d/99-custom.conf sudo sysctl --system
Related parameters
net.core.somaxconn · net.ipv4.tcp_max_syn_backlog · net.core.netdev_max_backlog · net.core.wmem_max · net.ipv4.tcp_congestion_control · net.core.default_qdisc · net.ipv4.tcp_tw_reuse · net.ipv4.tcp_fin_timeout
Generate a full sysctl config for your server
Values are starting points. Test on a staging machine and measure before and after.