Last active
February 5, 2020 16:58
-
-
Save nawawi/fc1c0b381462f3ed794d4da16fca573d to your computer and use it in GitHub Desktop.
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
| kernel.msgmnb = 65536 | |
| kernel.msgmax = 65536 | |
| # use default | |
| #kernel.shmmax = 68719476736 | |
| #kernel.shmall = 16777216 | |
| fs.file-max = 2097152 | |
| vm.swappiness = 10 | |
| vm.dirty_ratio = 60 | |
| vm.dirty_background_ratio = 2 | |
| net.ipv4.tcp_synack_retries = 2 | |
| # 1024 < 2000, let local use it | |
| net.ipv4.ip_local_port_range = 2000 65535 | |
| net.ipv4.tcp_rfc1337 = 1 | |
| net.ipv4.conf.all.rp_filter = 2 | |
| net.ipv4.tcp_sack = 0 | |
| net.ipv4.tcp_max_syn_backlog = 4096 | |
| net.ipv4.tcp_fin_timeout = 15 | |
| net.ipv4.tcp_keepalive_time = 300 | |
| net.ipv4.tcp_keepalive_probes = 5 | |
| net.ipv4.tcp_keepalive_intvl = 15 | |
| net.core.rmem_default = 31457280 | |
| net.core.rmem_max = 12582912 | |
| net.core.wmem_default = 31457280 | |
| net.core.wmem_max = 12582912 | |
| net.core.somaxconn = 65536 | |
| net.core.netdev_max_backlog = 65536 | |
| net.core.optmem_max = 25165824 | |
| net.ipv4.tcp_mem = 65536 131072 262144 | |
| net.ipv4.udp_mem = 65536 131072 262144 | |
| net.ipv4.tcp_rmem = 10240 87380 12582912 | |
| net.ipv4.udp_rmem_min = 16384 | |
| net.ipv4.tcp_wmem = 10240 87380 12582912 | |
| net.ipv4.udp_wmem_min = 16384 | |
| net.ipv4.tcp_max_tw_buckets = 1440000 | |
| # remove from kern 4.12 | |
| #net.ipv4.tcp_tw_recycle = 1 | |
| net.ipv4.tcp_tw_reuse = 1 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
general kernel tuning for any linux distro