mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Add tcp_mem setting
This commit is contained in:
parent
1485da1b8c
commit
9598b30c1a
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,7 @@ net.ipv4.tcp_fin_timeout = 30
|
||||||
# short keepalive time
|
# short keepalive time
|
||||||
#net.ipv4.tcp_keepalive_time = 2400
|
#net.ipv4.tcp_keepalive_time = 2400
|
||||||
# outbound port range
|
# outbound port range
|
||||||
net.ipv4.ip_local_port_range = 10000 65000
|
net.ipv4.ip_local_port_range = 9999 65000
|
||||||
# max SYN backlog
|
# max SYN backlog
|
||||||
net.ipv4.tcp_max_syn_backlog = 4096
|
net.ipv4.tcp_max_syn_backlog = 4096
|
||||||
# max timewait sockets held by system simultaneously
|
# max timewait sockets held by system simultaneously
|
||||||
|
@ -36,6 +36,8 @@ net.ipv4.tcp_fastopen = 3
|
||||||
net.ipv4.tcp_rmem = 4096 87380 134217728
|
net.ipv4.tcp_rmem = 4096 87380 134217728
|
||||||
# TCP write buffer
|
# TCP write buffer
|
||||||
net.ipv4.tcp_wmem = 4096 65536 134217728
|
net.ipv4.tcp_wmem = 4096 65536 134217728
|
||||||
|
# TCP buffer
|
||||||
|
net.ipv4.tcp_mem = 25600 51200 102400
|
||||||
# turn on path MTU discovery
|
# turn on path MTU discovery
|
||||||
net.ipv4.tcp_mtu_probing = 1
|
net.ipv4.tcp_mtu_probing = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue