Created
June 19, 2013 23:57
-
-
Save rozgo/5819199 to your computer and use it in GitHub Desktop.
increase socket buffer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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