Skip to content

Instantly share code, notes, and snippets.

@kessler
Created July 31, 2013 15:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kessler/6122814 to your computer and use it in GitHub Desktop.
Save kessler/6122814 to your computer and use it in GitHub Desktop.
linux net settings
echo ec2-user soft nofile 999999 >> /etc/security/limits.conf
echo ec2-user hard nofile 999999 >> /etc/security/limits.conf
echo root soft nofile 999999 >> /etc/security/limits.conf
echo root hard nofile 999999 >> /etc/security/limits.conf
echo net.core.rmem_max = 33554432 >> /etc/sysctl.conf
echo net.core.wmem_max = 33554432 >> /etc/sysctl.conf
echo net.ipv4.tcp_rmem = 4096 16384 33554432 >> /etc/sysctl.conf
echo net.ipv4.tcp_wmem = 4096 16384 33554432 >> /etc/sysctl.conf
echo net.ipv4.tcp_mem = 786432 1048576 26777216 >> /etc/sysctl.conf
echo net.ipv4.tcp_max_tw_buckets = 360000 >> /etc/sysctl.conf
echo net.core.netdev_max_backlog = 2500 >> /etc/sysctl.conf
echo vm.min_free_kbytes = 65536 >> /etc/sysctl.conf
echo vm.swappiness = 0 >> /etc/sysctl.conf
echo net.ipv4.ip_local_port_range = 1024 65535 >> /etc/sysctl.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment