Skip to content

Instantly share code, notes, and snippets.

@winguse
Created July 9, 2020 10:34
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 winguse/e641cc6fefb861fff03e5bf1ad52f820 to your computer and use it in GitHub Desktop.
Save winguse/e641cc6fefb861fff03e5bf1ad52f820 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo '
net.core.wmem_max = 12582912
net.core.rmem_max = 12582912
net.ipv4.tcp_rmem = 10240 87380 12582912
net.ipv4.tcp_wmem = 10240 87380 12582912
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
net.ipv4.tcp_no_metrics_save = 1
net.core.netdev_max_backlog = 5000
' >> /etc/sysctl.conf
sysctl -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment