mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Optimized sysctl
This commit is contained in:
parent
8bc18271f6
commit
642f800bd2
1 changed files with 7 additions and 6 deletions
|
@ -2,9 +2,10 @@
|
|||
# max open files
|
||||
fs.file-max = 512000
|
||||
# max read buffer
|
||||
net.core.rmem_max = 134217728
|
||||
net.core.rmem_max = 524287
|
||||
# max write buffer
|
||||
net.core.wmem_max = 134217728
|
||||
net.core.wmem_max = 524287
|
||||
net.core.optmem_max = 524287
|
||||
# default read buffer
|
||||
net.core.rmem_default = 32768
|
||||
# default write buffer
|
||||
|
@ -33,13 +34,13 @@ net.ipv4.tcp_max_tw_buckets = 10000
|
|||
# turn on TCP Fast Open on both client and server side
|
||||
#net.ipv4.tcp_fastopen = 3
|
||||
# TCP receive buffer
|
||||
net.ipv4.tcp_rmem = 4096 87380 134217728
|
||||
net.ipv4.tcp_rmem = 4096 524288 204217728
|
||||
# TCP write buffer
|
||||
net.ipv4.tcp_wmem = 4096 65536 134217728
|
||||
net.ipv4.tcp_wmem = 4096 524288 204217728
|
||||
# TCP buffer
|
||||
net.ipv4.tcp_mem = 134217728 134217728 134217728
|
||||
net.ipv4.tcp_mem = 768174 10242330 15363480
|
||||
# UDP buffer
|
||||
net.ipv4.udp_mem = 134217728 134217728 134217728
|
||||
net.ipv4.udp_mem = 768174 10242330 15363480
|
||||
# turn off path MTU discovery
|
||||
net.ipv4.tcp_mtu_probing = 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue