socket recv buffer

SO_RCVBUF

1
BDP * 4 / 3

use iperf for testing

1
2
iperf -s -w 200K # server
iperf -c localhost # client

iperf

1
2
3
4
5
6
ethtool -k eth0 # segment offload makes tcpdump see a packet bigger than MTU
net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_congestion_control
net.ipv4.tcp_moderate_rcvbuf
net.ipv4.tcp_slow_start_after_idle
Share Comments