Skip to content

Instantly share code, notes, and snippets.

@rhemz
Created February 27, 2017 18:49
Show Gist options
  • Save rhemz/97c9058258e07049ba17a64d233a457f to your computer and use it in GitHub Desktop.
Save rhemz/97c9058258e07049ba17a64d233a457f to your computer and use it in GitHub Desktop.
sysctl high volume tcp tune (safe)
net.ipv4.ip_local_port_range="10000 65000"
net.ipv4.tcp_tw_reuse="1"
net.ipv4.tcp_fin_timeout="10"
net.core.netdev_max_backlog="2500"
net.ipv4.tcp_rmem="4096 87380 16777216"
net.ipv4.tcp_wmem="4096 65536 16777216"
net.ipv4.tcp_syn_retries="2"
net.ipv4.tcp_synack_retries="2"
net.core.somaxconn="3240000"
net.ipv4.tcp_max_tw_buckets="1440000"
net.nf_conntrack_max=262144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment