mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Change optimization
This commit is contained in:
parent
251ad883ac
commit
c85cd75159
3 changed files with 20 additions and 18 deletions
|
@ -21,9 +21,9 @@ net.ipv4.tcp_tw_reuse = 1
|
|||
# turn off fast timewait sockets recycling
|
||||
net.ipv4.tcp_tw_recycle = 0
|
||||
# short FIN timeout
|
||||
net.ipv4.tcp_fin_timeout = 30
|
||||
net.ipv4.tcp_fin_timeout = 20
|
||||
# short keepalive time
|
||||
net.ipv4.tcp_keepalive_time = 2400
|
||||
net.ipv4.tcp_keepalive_time = 1200
|
||||
# outbound port range
|
||||
net.ipv4.ip_local_port_range = 10000 65000
|
||||
# max SYN backlog
|
||||
|
@ -32,12 +32,14 @@ net.ipv4.tcp_max_syn_backlog = 4096
|
|||
net.ipv4.tcp_max_tw_buckets = 10000
|
||||
# turn on TCP Fast Open on both client and server side
|
||||
net.ipv4.tcp_fastopen = 3
|
||||
# TCP buffer
|
||||
net.ipv4.tcp_mem = 134217728 134277728 134217728
|
||||
# TCP receive buffer
|
||||
net.ipv4.tcp_rmem = 4096 87380 134217728
|
||||
# TCP write buffer
|
||||
net.ipv4.tcp_wmem = 4096 65536 134217728
|
||||
net.ipv4.tcp_wmem = 4096 87380 134217728
|
||||
# turn on path MTU discovery
|
||||
net.ipv4.tcp_mtu_probing = 1
|
||||
net.ipv4.tcp_mtu_probing = 0
|
||||
|
||||
# for low-latency network, use cubic instead
|
||||
net.ipv4.tcp_congestion_control = olia
|
||||
|
@ -47,4 +49,4 @@ net.netfilter.nf_conntrack_max = 131072
|
|||
|
||||
# MPTCP settings
|
||||
net.mptcp.mptcp_checksum = 0
|
||||
net.mptcp.mptcp_syn_retries = 30
|
||||
net.mptcp.mptcp_syn_retries = 20
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue