mirror of
https://github.com/k4yt3x/sysctl.git
synced 2025-12-29 16:16:10 +00:00
updated assumptions; enabled more optimizations by default
This commit is contained in:
20
sysctl.conf
20
sysctl.conf
@@ -124,11 +124,11 @@ net.core.netdev_max_backlog = 250000
|
||||
net.core.bpf_jit_harden = 2
|
||||
|
||||
# increase TCP max buffer size setable using setsockopt()
|
||||
#net.core.rmem_max = 8388608
|
||||
#net.core.wmem_max = 8388608
|
||||
#net.core.rmem_default = 8388608
|
||||
#net.core.wmem_default = 8388608
|
||||
#net.core.optmem_max = 8388608
|
||||
net.core.rmem_max = 8388608
|
||||
net.core.wmem_max = 8388608
|
||||
net.core.rmem_default = 8388608
|
||||
net.core.wmem_default = 8388608
|
||||
#net.core.optmem_max = 40960
|
||||
|
||||
########## IPv4 Networking ##########
|
||||
|
||||
@@ -218,6 +218,8 @@ net.ipv4.tcp_timestamps = 0
|
||||
# enabling SACK can increase the throughput
|
||||
# but SACK is commonly exploited and rarely used
|
||||
net.ipv4.tcp_sack = 0
|
||||
net.ipv4.tcp_dsack = 0
|
||||
net.ipv4.tcp_fack = 0
|
||||
|
||||
# divide socket buffer evenly between TCP window size and application
|
||||
net.ipv4.tcp_adv_win_scale = 1
|
||||
@@ -225,15 +227,15 @@ net.ipv4.tcp_adv_win_scale = 1
|
||||
# SSR could impact TCP's performance on a fixed-speed network (e.g., wired)
|
||||
# but it could be helpful on a variable-speed network (e.g., LTE)
|
||||
# uncomment this if you are on a fixed-speed network
|
||||
#net.ipv4.tcp_slow_start_after_idle = 0
|
||||
net.ipv4.tcp_slow_start_after_idle = 0
|
||||
|
||||
# enabling MTU probing helps mitigating PMTU blackhole issues
|
||||
# this may not be desirable on congested networks
|
||||
#net.ipv4.tcp_mtu_probing = 1
|
||||
net.ipv4.tcp_mtu_probing = 1
|
||||
|
||||
# increase memory thresholds to prevent packet dropping
|
||||
#net.ipv4.tcp_rmem = 4096 87380 8388608
|
||||
#net.ipv4.tcp_wmem = 4096 87380 8388608
|
||||
net.ipv4.tcp_rmem = 4096 87380 8388608
|
||||
net.ipv4.tcp_wmem = 4096 87380 8388608
|
||||
|
||||
########## IPv6 Networking ##########
|
||||
|
||||
|
||||
Reference in New Issue
Block a user