Skip to content

Instantly share code, notes, and snippets.

@sorasoras
Last active January 6, 2018 07:23
Show Gist options
  • Save sorasoras/c349a749b1e698d97e8787dc13924102 to your computer and use it in GitHub Desktop.
Save sorasoras/c349a749b1e698d97e8787dc13924102 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.15-rc6/linux-image-4.15.0-041500rc6-generic_4.15.0-041500rc6.201712312330_amd64.deb
dpkg -i linux-image-4.15.0*.deb
update-grub
# 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