Created
July 31, 2013 15:09
-
-
Save kessler/6122814 to your computer and use it in GitHub Desktop.
linux net settings
This file contains 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
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