Skip to content

Commit

Permalink
scripts: encore-perfcommon: Use bbr2 TCP congestion if available
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <Rem01_Gaming@proton.me>
  • Loading branch information
Rem01Gaming committed Nov 17, 2024
1 parent 44fa2da commit 171d725
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scripts/encore-perfcommon
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ find /sys/devices/system/cpu/ -name schedutil -type d | while IFS= read -r gover
done &

# Networking tweaks
apply "cubic" /proc/sys/net/ipv4/tcp_congestion_control
if grep -q bbr2 /proc/sys/net/ipv4/tcp_available_congestion_control; then
apply "bbr2" /proc/sys/net/ipv4/tcp_congestion_control
else
apply "cubic" /proc/sys/net/ipv4/tcp_congestion_control
fi

apply "1" /proc/sys/net/ipv4/tcp_low_latency
apply "1" /proc/sys/net/ipv4/tcp_ecn
apply "3" /proc/sys/net/ipv4/tcp_fastopen
Expand Down

0 comments on commit 171d725

Please sign in to comment.