Skip to content

Instantly share code, notes, and snippets.

@seancheung
Created October 28, 2017 15:04
Show Gist options
  • Save seancheung/24c021791cf1976ea096bdaab3b8f164 to your computer and use it in GitHub Desktop.
Save seancheung/24c021791cf1976ea096bdaab3b8f164 to your computer and use it in GitHub Desktop.
enable google bbr
#!/bin/bash
# get the latest linux kernel at http://kernel.ubuntu.com/~kernel-ppa/mainline/
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14-rc6/linux-image-4.14.0-041400rc6-generic_4.14.0-041400rc6.201710230731_amd64.deb
# install the kernel
dpkg -i linux-image-4.*.deb
# update grub
# for linode, change kernel in boot settings to GRUB 2
update-grub
reboot
# check bbr
lsmod | grep bbr
# if no tcp_bbr found in the last step, enable it manually
modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
# update sysctl
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
# last check
sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
lsmod | grep bbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment