Switch to BBR congestion control

This commit is contained in:
Bob Mottram 2017-07-22 18:31:11 +01:00
parent cbcdc4dd40
commit c63b3abe8b
1 changed files with 10 additions and 0 deletions

View File

@ -685,6 +685,13 @@ function setup_powerline {
fi
}
function congestion_control {
# see /proc/sys/net/ipv4/tcp_congestion_control
echo 'net.core.default_qdisc=fq' > /etc/sysctl.d/10-custom-kernel-bbr.conf
echo 'net.ipv4.tcp_congestion_control=bbr' >> /etc/sysctl.d/10-custom-kernel-bbr.conf
sysctl --system
}
function setup_utils {
read_config_param "PROJECT_REPO"
write_config_param "PROJECT_REPO" "$PROJECT_REPO"
@ -695,6 +702,9 @@ function setup_utils {
function_check support_256_colours
support_256_colours
function_check congestion_control
congestion_control
function_check enable_predictable_device_names
enable_predictable_device_names