Skip to content

Instantly share code, notes, and snippets.

@mofelee
Created September 25, 2017 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mofelee/240de333f45d6f4a77a97b3e4c9f2564 to your computer and use it in GitHub Desktop.
Save mofelee/240de333f45d6f4a77a97b3e4c9f2564 to your computer and use it in GitHub Desktop.
Update linux kernel and enable google bbr on ubuntu
#!/bin/sh
# update kernel
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10-rc1/linux-image-4.10.0-041000rc1-generic_4.10.0-041000rc1.201612252031_amd64.deb
dpkg -i linux-image-4.10.0*.deb
update-grub
reboot
# check kernel
uname -a
# enable bbr
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
# check bbr
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment