Last active
June 5, 2020 12:16
-
-
Save zhboner/ba8504ca8ac84db468a4b30c7ecc174e to your computer and use it in GitHub Desktop.
Some helpful kernel parameters for improving network efficiency
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
| net.core.rmem_default = 26214400 | |
| net.core.rmem_max = 26214400 | |
| net.core.wmem_default = 26214400 | |
| net.core.wmem_max = 26214400 | |
| net.core.netdev_max_backlog = 2000 | |
| net.core.somaxconn = 2048 | |
| net.core.optmem_max = 81920 | |
| net.ipv4.tcp_mem = 131072 262144 524288 | |
| net.ipv4.tcp_rmem = 8760 256960 4088000 | |
| net.ipv4.tcp_wmem = 8760 256960 4088000 | |
| net.ipv4.tcp_keepalive_time = 1800 | |
| net.ipv4.tcp_keepalive_intvl = 30 | |
| net.ipv4.tcp_keepalive_probes = 3 | |
| net.ipv4.tcp_sack = 1 | |
| net.ipv4.tcp_fack = 1 | |
| net.ipv4.tcp_timestamps = 1 | |
| net.ipv4.tcp_window_scaling = 1 | |
| net.ipv4.tcp_syncookies = 1 | |
| net.ipv4.tcp_tw_reuse = 1 | |
| net.ipv4.tcp_tw_recycle = 1 | |
| net.ipv4.tcp_fin_timeout = 30 | |
| net.ipv4.ip_local_port_range = 1024 65000 | |
| net.ipv4.tcp_max_syn_backlog = 2048 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment