Tuning my Linux IP Stack
Sat 08 January 2011
Filed under OS
I have gig networking, lots of disks, etc, etc. I need speed Oh, and this improved my internet speeds as well.
# Controls the use of TCP syncookies net.ipv4.tcp_syncookies = 1 # don't cache ssthresh from previous connection net.ipv4.tcp_no_metrics_save = 1 # recommended to increase this for 10G NICS net.core.netdev_max_backlog = 30000 # increase TCP max buffer size setable using setsockopt() # 16 MB with a few parallel streams is recommended for most 10G paths # 32 MB might be needed for some very long end-to-end 10G or 40G paths net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 # increase Linux autotuning TCP buffer limits # min, default, and max number of bytes to use net.ipv4.tcp_mem = 129940 129940 33554432 net.ipv4.tcp_rmem = 28800 129940 16777216 net.ipv4.tcp_wmem = 28800 129940 16777216 net.ipv4.tcp_congestion_control=cubic net.ipv4.tcp_mtu_probing=1 net.ipv4.tcp_base_mss=1460