Created
March 5, 2018 15:41
-
-
Save thbkrkr/b76cbdfba3543b25b3e1e3541c8968c2 to your computer and use it in GitHub Desktop.
sysctl tuning fs,net,vm
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 -w fs.file-max="9999999" | |
| sysctl -w fs.nr_open="9999999" | |
| sysctl -w net.core.netdev_max_backlog="4096" | |
| sysctl -w net.core.rmem_max="16777216" | |
| sysctl -w net.core.somaxconn="65535" | |
| sysctl -w net.core.wmem_max="16777216" | |
| sysctl -w net.ipv4.ip_local_port_range="1025 65535" | |
| sysctl -w net.ipv4.tcp_fin_timeout="30" | |
| sysctl -w net.ipv4.tcp_keepalive_time="30" | |
| sysctl -w net.ipv4.tcp_max_syn_backlog="20480" | |
| sysctl -w net.ipv4.tcp_max_tw_buckets="400000" | |
| sysctl -w net.ipv4.tcp_no_metrics_save="1" | |
| sysctl -w net.ipv4.tcp_syn_retries="2" | |
| sysctl -w net.ipv4.tcp_synack_retries="2" | |
| sysctl -w net.ipv4.tcp_tw_recycle="1" | |
| sysctl -w net.ipv4.tcp_tw_reuse="1" | |
| sysctl -w vm.min_free_kbytes="65536" | |
| sysctl -w vm.overcommit_memory="1" | |
| ulimit -n 9999999 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment