1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 11:01:50 +00:00

Change sysctl

This commit is contained in:
Ycarus 2018-07-18 18:45:46 +02:00
parent 57f39548dd
commit 86570b3910
2 changed files with 8 additions and 10 deletions

View file

@ -1,6 +1,4 @@
net.ipv4.tcp_ecn=1
net.netfilter.nf_conntrack_helper=1 net.netfilter.nf_conntrack_helper=1
net.ipv4.tcp_slow_start_after_idle=30
net.ipv4.tcp_no_metrics_save=1
net.ipv4.tcp_fack=1 net.ipv4.tcp_fack=1
net.ipv4.tcp_retries2=3 net.core.somaxconn=4096
net.core.netdev_max_backlog=4096

View file

@ -12,7 +12,7 @@ net.core.wmem_default = 65536
# max processor input queue # max processor input queue
net.core.netdev_max_backlog = 4096 net.core.netdev_max_backlog = 4096
# max backlog # max backlog
net.core.somaxconn = 4096 #net.core.somaxconn = 4096
# resist SYN flood attacks # resist SYN flood attacks
net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_syncookies = 1
@ -27,7 +27,7 @@ net.ipv4.tcp_fin_timeout = 30
# outbound port range # outbound port range
net.ipv4.ip_local_port_range = 9999 65000 net.ipv4.ip_local_port_range = 9999 65000
# max SYN backlog # max SYN backlog
net.ipv4.tcp_max_syn_backlog = 4096 et.ipv4.tcp_max_syn_backlog = 10240
# max timewait sockets held by system simultaneously # max timewait sockets held by system simultaneously
net.ipv4.tcp_max_tw_buckets = 10000 net.ipv4.tcp_max_tw_buckets = 10000
# turn on TCP Fast Open on both client and server side # turn on TCP Fast Open on both client and server side
@ -35,11 +35,11 @@ net.ipv4.tcp_fastopen = 3
# TCP receive buffer # TCP receive buffer
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 87380 134217728
# TCP buffer # TCP buffer
net.ipv4.tcp_mem = 25600 51200 102400 #net.ipv4.tcp_mem = 25600 87380 102400
# turn on path MTU discovery # turn off path MTU discovery
net.ipv4.tcp_mtu_probing = 1 net.ipv4.tcp_mtu_probing = 0
# for low-latency network, use cubic instead # for low-latency network, use cubic instead
# net.ipv4.tcp_congestion_control = balia # net.ipv4.tcp_congestion_control = balia