Created
March 18, 2017 15:07
-
-
Save hujunxianligong/466dd308bda45e2a6d619ee43cc76562 to your computer and use it in GitHub Desktop.
Update linux kernel and enable google bbr on ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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