Skip to content

Commit

Permalink
sysctl: Network Tunables Cleanup (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
1Naim authored Dec 21, 2024
1 parent 0f0ee02 commit 71cd8ee
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions usr/lib/sysctl.d/99-cachyos-settings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,12 @@ kernel.kptr_restrict = 2
# Disable Kexec, which allows replacing the current running kernel.
kernel.kexec_load_disabled = 1

# Enable TCP Fast Open
# TCP Fast Open is an extension to the transmission control protocol (TCP) that helps reduce network latency
# by enabling data to be exchanged during the sender’s initial TCP SYN [3].
# Using the value 3 instead of the default 1 allows TCP Fast Open for both incoming and outgoing connections:
net.ipv4.tcp_fastopen = 3

# TCP Enable ECN Negotiation for both outgoing and incoming connections
net.ipv4.tcp_ecn = 1

# TCP Reduce performance spikes
# Refer https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux_for_real_time/7/html/tuning_guide/reduce_tcp_performance_spikes
net.ipv4.tcp_timestamps = 0

# Increase netdev receive queue
# May help prevent losing packets
net.core.netdev_max_backlog = 16384
net.core.netdev_max_backlog = 4096

# Disable TCP slow start after idle
# Helps kill persistent single connection performance
Expand Down

0 comments on commit 71cd8ee

Please sign in to comment.