Reduce kernel networking buffer for rmem and wmem (#6422)

automerge
This commit is contained in:
Pankaj Garg
2019-10-17 14:52:24 -07:00
committed by Grimes
parent 1759968c1e
commit 854c62e208
3 changed files with 12 additions and 12 deletions

View File

@ -4,11 +4,11 @@ set -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
sudo sysctl -w net.core.rmem_default=1610612736
sudo sysctl -w net.core.rmem_max=1610612736
sudo sysctl -w net.core.rmem_default=134217728
sudo sysctl -w net.core.rmem_max=134217728
sudo sysctl -w net.core.wmem_default=1610612736
sudo sysctl -w net.core.wmem_max=1610612736
sudo sysctl -w net.core.wmem_default=134217728
sudo sysctl -w net.core.wmem_max=134217728
echo "MaxAuthTries 60" | sudo tee -a /etc/ssh/sshd_config
sudo service sshd restart