Last active
November 22, 2019 03:48
-
-
Save VoidMonk/a646d724cfdc9af1663eeecabac389ac to your computer and use it in GitHub Desktop.
sysctl.conf optimized
This file contains hidden or 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
# sysctl.conf optimized | |
# apply with: sudo sysctl -p | |
kernel.sem = 250 32000 100 128 | |
kernel.shmall = 2097152 | |
kernel.shmmax = 2147483648 | |
kernel.shmmni = 4096 | |
fs.file-max = 262140 | |
vm.swappiness = 5 | |
vm.vfs_cache_pressure = 50 | |
vm.min_free_kbytes = 65536 | |
net.core.netdev_max_backlog = 65536 | |
net.core.rmem_max = 33554432 | |
net.core.wmem_max = 33554432 | |
net.core.somaxconn=65536 | |
net.ipv4.tcp_rmem = 4096 87380 33554432 | |
net.ipv4.tcp_wmem = 4096 65536 33554432 | |
net.ipv4.tcp_no_metrics_save = 1 | |
net.ipv4.tcp_moderate_rcvbuf = 1 | |
net.ipv4.tcp_rfc1337 = 1 | |
net.ipv4.ip_no_pmtu_disc = 0 | |
net.ipv4.tcp_sack = 1 | |
net.ipv4.tcp_fack = 1 | |
net.ipv4.tcp_window_scaling = 1 | |
net.ipv4.tcp_timestamps = 1 | |
net.ipv4.tcp_ecn = 0 | |
net.ipv4.route.flush = 1 | |
net.ipv6.conf.all.disable_ipv6 = 1 | |
net.ipv6.conf.default.disable_ipv6 = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment