Ubuntu16 升级内核手动下载官方deb包 Or 编译
URL:http://kernel.ubuntu.com/~kernel-ppa/mainline
- wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.5/linux-headers-4.9.5-040905_4.9.5-040905.201701200532_all.deb
- wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.5/linux-headers-4.9.5-040905-generic_4.9.5-040905.201701200532_amd64.deb
- wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.5/linux-image-4.9.5-040905-generic_4.9.5-040905.201701200532_amd64.deb
- ###安装
- dpkg -i linux-headers-4.9.5* linux-image-4.9.5*
开启 TCP BBR
- echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
- echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
- reboot
重启后,首先 uname -a 看下内核是否切换到 4.9,然后执行下面明亮查看内核是否开启 TCP BBR
root@Baron-VirtualBox:~# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno
net.ipv4.tcp_available_congestion_control = bbr cubic reno
root@Baron-VirtualBox:~# sysctl net.ipv4.tcp_congestion_control
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_congestion_control = bbr
查看 tcp_bbr 模块是否加载
root@Baron-VirtualBox:~# lsmod | grep tcp_bbr
tcp_bbr 20480 22
tcp_bbr 20480 22
没有评论