Linux Kernel Network Settings

Buffer

net.core.*

net.core.rmem_max: The net.core.rmem_max setting defines the maximum receive socket buffer size in bytes.
net.core.wmem_max: The net.core.wmem_max setting defines the maximum send socket buffer size in bytes.

[A damp discussion of network queuing]https://lwn.net/Articles/616241/

1
2
3
4
5
6
7
8
sysctl -w net.core.rmem_max=8388608
sysctl -w net.core.wmem_max=8388608
sysctl -w net.core.rmem_default=65536
sysctl -w net.core.wmem_default=65536
sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608'
sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608'
sysctl -w net.ipv4.tcp_mem='8388608 8388608 8388608'
sysctl -w net.ipv4.route.flush=1

Reference