Skip to content

Instantly share code, notes, and snippets.

@emacsist
Created June 25, 2018 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emacsist/270ecd2676038acf71c9b4bcd8b4d936 to your computer and use it in GitHub Desktop.
Save emacsist/270ecd2676038acf71c9b4bcd8b4d936 to your computer and use it in GitHub Desktop.
#!/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