diff options
| author | luqiuwen <[email protected]> | 2019-06-22 13:13:15 +0800 |
|---|---|---|
| committer | luqiuwen <[email protected]> | 2019-06-22 13:13:15 +0800 |
| commit | 74365f53d59b81505db96b9b40a3580fcc8789bb (patch) | |
| tree | 804bd5b36968d884a880c81fcc4e2cea316dca6b /script/sysctl | |
| parent | acfad0f9576403ed067e6047883f398006897f6a (diff) | |
增加tfe-env环境服务文件,替代原环境配置脚本。
Diffstat (limited to 'script/sysctl')
| -rw-r--r-- | script/sysctl/80-tfe.conf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/script/sysctl/80-tfe.conf b/script/sysctl/80-tfe.conf new file mode 100644 index 0000000..4f59377 --- /dev/null +++ b/script/sysctl/80-tfe.conf @@ -0,0 +1,32 @@ +# read/write buffer +net.core.rmem_default = 256960 +net.core.rmem_max = 256960 +net.core.wmem_default = 256960 +net.core.wmem_max = 256960 + +# disable rpfilter +net.ipv4.conf.all.rp_filter=0 +net.ipv4.conf.default.rp_filter=0 + +# fs +fs.file-max=1048560 +net.core.netdev_max_backlog=1000000 +net.core.somaxconn=131072 + +# tcp options about TIME_WAIT +net.ipv4.tcp_fin_timeout=10 +net.ipv4.tcp_tw_reuse=1 +net.ipv4.tcp_max_tw_buckets=4096 +net.ipv4.tcp_max_orphans=131072 +net.ipv4.tcp_max_syn_backlog=131072 + +# bbr +net.ipv4.tcp_congestion_control=bbr + +# tcp feature +net.ipv4.tcp_ecn=0 +net.ipv4.tcp_sack=1 +net.ipv4.tcp_timestamps=1 + +# disable tcp windows scaling for kernel bugs +net.ipv4.tcp_window_scaling=0
\ No newline at end of file |
