听说5.X内核对BBR有神秘加成,手中正好有闲置小鸡,就来试试

cloud 内核是什么呢?包页面对 linux-image-cloud-amd64 的说明是:This package depends on the latest Linux kernel and modules for use on cloud platforms including Amazon EC2, Microsoft Azure, and Google Compute Engine.即专门为云平台而优化的,剔除了蓝牙、声音这些无用模块的同时添加了几乎只有云平台会用到的驱动程序,支持KVM虚拟化

一键安装:

echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/buster-backports.list 
apt update
apt -t buster-backports install linux-image-cloud-amd64 -y

删除老内核:

dpkg --get-selections | grep linux
apt autoremove --purge linux-image-4.19.0-20-amd64 linux-image-4.19.0-21-amd64 -y
apt autoremove
apt autoclean

更新一下grub:

sudo update-grub

重启:

reboot

重启后一键开启BBR:

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf && echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf && sysctl -p

检查BBR是否启动

lsmod | grep bbr

如果Debian9安装Cloud内核的话:

echo "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list 
apt update
apt -t stretch-backports install linux-image-cloud-amd64 -y
Last modification:March 21, 2023
If you think my article is useful to you, please feel free to appreciate