Created
July 8, 2014 22:15
-
-
Save slezica/caf5d0f58ddaf7181e61 to your computer and use it in GitHub Desktop.
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
# SETTING DEFAULT | |
sysctl -w net.ipv4.ip_local_port_range="500 65535" # 32768 61000 | |
sysctl -w net.ipv4.tcp_tw_recycle="1" # 0 | |
sysctl -w net.ipv4.tcp_tw_reuse="1" # 0 | |
sysctl -w net.ipv4.tcp_rmem="4096 87380 16777216" # 4096 87380 6291456 | |
sysctl -w net.ipv4.tcp_wmem="4096 16384 16777216" # 4096 16384 4194304 | |
sysctl -w fs.file-max="655300" # 797108 | |
sysctl -w fs.nr_open="3000000" # 1048576 | |
ulimit -n 2000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment