linux核心引數優化重要項

深圳市康帕科技有限公司發表於2020-10-21

#optimize network performance

net.ipv4.tcp_max_syn_backlog = 8192

net.ipv4.tcp_synack_retries= 3

net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_syn_retries = 3

net.core.somaxconn = 262144

kernel.sysrq = 1

net.ipv4.ip_no_pmtu_disc = 1

net.ipv4.tcp_keepalive_time = 30

net.ipv4.tcp_fin_timeout = 30

net.ipv4.tcp_tw_recycle = 1    (nat網路下,客戶端主動出訪問經過nat閘道器,該引數請設定為0)

net.ipv4.tcp_tw_reuse = 1

相關文章