mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-14 19:41:51 +00:00
Increase timeout for glorytun, decrease txqueuelen for interfaces
This commit is contained in:
parent
f5f68a0729
commit
9e10f07fa6
3 changed files with 5 additions and 4 deletions
|
@ -75,9 +75,9 @@ start_instance() {
|
||||||
[ "${chacha20}" = "1" ] && procd_append_param command chacha20
|
[ "${chacha20}" = "1" ] && procd_append_param command chacha20
|
||||||
|
|
||||||
procd_append_param command \
|
procd_append_param command \
|
||||||
retry count -1 const 500000 \
|
retry count -1 const 5000000 \
|
||||||
timeout 40000 \
|
timeout 40000 \
|
||||||
keepalive count 5 idle 30 interval 2 \
|
keepalive count 5 idle 10 interval 2 \
|
||||||
buffer-size 32768
|
buffer-size 32768
|
||||||
|
|
||||||
procd_set_param respawn 0 30 0
|
procd_set_param respawn 0 30 0
|
||||||
|
|
|
@ -97,6 +97,7 @@ interface_multipath_settings() {
|
||||||
[ "$mode" = "master" ] && {
|
[ "$mode" = "master" ] && {
|
||||||
ip route replace default via $gateway dev $iface
|
ip route replace default via $gateway dev $iface
|
||||||
}
|
}
|
||||||
|
ifconfig $iface txqueuelen 90 > /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
load_interfaces() {
|
load_interfaces() {
|
||||||
|
|
|
@ -6,9 +6,9 @@ net.core.rmem_max = 134217728
|
||||||
# max write buffer
|
# max write buffer
|
||||||
net.core.wmem_max = 134217728
|
net.core.wmem_max = 134217728
|
||||||
# default read buffer
|
# default read buffer
|
||||||
net.core.rmem_default = 65536
|
net.core.rmem_default = 32768
|
||||||
# default write buffer
|
# default write buffer
|
||||||
net.core.wmem_default = 65536
|
net.core.wmem_default = 32768
|
||||||
# max processor input queue
|
# max processor input queue
|
||||||
net.core.netdev_max_backlog = 4096
|
net.core.netdev_max_backlog = 4096
|
||||||
# max backlog
|
# max backlog
|
||||||
|
|
Loading…
Reference in a new issue