1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Tune kernel settings

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-08-01 12:01:05 +02:00
parent d78a4af08e
commit e387bbedab

View file

@ -2,14 +2,14 @@
# max open files # max open files
fs.file-max = 512000 fs.file-max = 512000
# max read buffer # max read buffer
net.core.rmem_max = 16777216 net.core.rmem_max = 7500000
# max write buffer # max write buffer
net.core.wmem_max = 16777216 net.core.wmem_max = 7500000
#net.core.optmem_max = 33554432 #net.core.optmem_max = 33554432
# default read buffer # default read buffer
net.core.rmem_default = 16777216 #net.core.rmem_default = 16777216
# default write buffer # default write buffer
net.core.wmem_default = 16777216 #net.core.wmem_default = 16777216
# max processor input queue # max processor input queue
net.core.netdev_max_backlog = 8192 net.core.netdev_max_backlog = 8192
# max backlog # max backlog
@ -24,13 +24,13 @@ net.ipv4.tcp_tw_reuse = 1
# short FIN timeout # short FIN timeout
#net.ipv4.tcp_fin_timeout = 40 #net.ipv4.tcp_fin_timeout = 40
# increase max orphans # increase max orphans
net.ipv4.tcp_max_orphans = 32768 net.ipv4.tcp_max_orphans = 16384
# 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 = 9999 65000 net.ipv4.ip_local_port_range = 9999 65000
# max SYN backlog # max SYN backlog
net.ipv4.tcp_max_syn_backlog = 10240 net.ipv4.tcp_max_syn_backlog = 4096
# max timewait sockets held by system simultaneously # max timewait sockets held by system simultaneously
net.ipv4.tcp_max_tw_buckets = 6000 net.ipv4.tcp_max_tw_buckets = 6000
# turn on TCP Fast Open on both client and server side # turn on TCP Fast Open on both client and server side
@ -40,11 +40,15 @@ net.ipv4.tcp_rmem = 4096 87380 16777216
# TCP write buffer # TCP write buffer
net.ipv4.tcp_wmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 87380 16777216
# TCP buffer # TCP buffer
net.ipv4.tcp_mem = 1638400 1638400 1638400 net.ipv4.tcp_mem = 409600 819200 1638400
# UDP buffer # UDP buffer
net.ipv4.udp_mem = 4096 131072 67108864 net.ipv4.udp_mem = 4096 131072 67108864
# turn off path MTU discovery # turn off path MTU discovery
net.ipv4.tcp_mtu_probing = 0 net.ipv4.tcp_mtu_probing = 0
# 1/8 * available memory in receive buffer
net.ipv4.tcp_adv_win_scale=-3
# limits the size of unsent bytes in the write queue
net.ipv4.tcp_notsent_lowat = 131072
# 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