Blog by Edo Frederix edofrederix@gmail.com RSS

Tuning TCP #3

March 3, 2008

Abstract

And yet another follow-up on this interesting TCP tuning topic

Resulting in my current sysctl.conf file:

kernel.sysrq = 0
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_sack = 0
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_syncookies = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.conf.all.log_martians = 1
net.ipv4.tcp_rmem = 4096 25165824 25165824
net.core.rmem_max = 25165824
net.core.rmem_default = 25165824
net.ipv4.tcp_wmem = 4096 65536 25165824
net.core.wmem_max = 25165824
net.core.wmem_default = 65536
net.ipv4.ip_local_port_range = 1024 65000
kernel.shmmax = 67108864
#vm.bdflush = 100 1200 128 512 15 5000 500 1884 2
net.ipv4.tcp_max_syn_backlog = 4096
#net.ipv4.tcp_max_syn_backlog = 262144
net.core.somaxconn = 1024
net.core.netdev_max_backlog = 2500
net.ipv4.tcp_syn_retries = 0
net.ipv4.tcp_synack_retries = 0
#net.ipv4.netfilter.ip_conntrack_max = 125000