1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +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
fs.file-max = 512000
# max read buffer
net.core.rmem_max = 16777216
net.core.rmem_max = 7500000
# max write buffer
net.core.wmem_max = 16777216
net.core.wmem_max = 7500000
#net.core.optmem_max = 33554432
# default read buffer
net.core.rmem_default = 16777216
#net.core.rmem_default = 16777216
# default write buffer
net.core.wmem_default = 16777216
#net.core.wmem_default = 16777216
# max processor input queue
net.core.netdev_max_backlog = 8192
# max backlog
@ -24,13 +24,13 @@ net.ipv4.tcp_tw_reuse = 1
# short FIN timeout
#net.ipv4.tcp_fin_timeout = 40
# increase max orphans
net.ipv4.tcp_max_orphans = 32768
net.ipv4.tcp_max_orphans = 16384
# short keepalive time
#net.ipv4.tcp_keepalive_time = 2400
# outbound port range
net.ipv4.ip_local_port_range = 9999 65000
# max SYN backlog
net.ipv4.tcp_max_syn_backlog = 10240
net.ipv4.tcp_max_syn_backlog = 4096
# max timewait sockets held by system simultaneously
net.ipv4.tcp_max_tw_buckets = 6000
# 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
net.ipv4.tcp_wmem = 4096 87380 16777216
# TCP buffer
net.ipv4.tcp_mem = 1638400 1638400 1638400
net.ipv4.tcp_mem = 409600 819200 1638400
# UDP buffer
net.ipv4.udp_mem = 4096 131072 67108864
# turn off path MTU discovery
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
# net.ipv4.tcp_congestion_control = balia