Created
June 25, 2018 07:43
-
-
Save emacsist/270ecd2676038acf71c9b4bcd8b4d936 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
#!/bin/bash | |
sudo sysctl -w net.ipv4.tcp_tw_reuse=1 | |
sudo sysctl -w net.ipv4.tcp_keepalive_time=600 | |
sudo sysctl -w net.core.rmem_default=212992 | |
sudo sysctl -w net.core.wmem_default=212992 | |
sudo sysctl -w net.core.rmem_max=2097152 | |
sudo sysctl -w net.core.wmem_max=2097152 | |
sudo sysctl -w net.core.netdev_max_backlog=8096 | |
sudo sysctl -w net.ipv4.tcp_max_syn_backlog=4096 | |
sudo sysctl -w fs.file-max=1635723 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment