Skip to content

Instantly share code, notes, and snippets.

@rozgo
Created June 19, 2013 23:57
Show Gist options
  • Save rozgo/5819199 to your computer and use it in GitHub Desktop.
Save rozgo/5819199 to your computer and use it in GitHub Desktop.
increase socket buffer
# increase TCP max buffer size settable using setsockopt()
net.core.rmem_max=16777216
net.core.wmem_max=16777216
# increase Linux autotuning TCP buffer limit
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_wmem=4096 65536 16777216
# increase the length of the processor input queue
net.core.netdev_max_backlog=30000
# recommended default congestion control is htcp
net.ipv4.tcp_congestion_control=htcp
# recommended for hosts with jumbo frames enabled
net.ipv4.tcp_mtu_probing=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment