Google-BBR TCP拥堵算法
更换内核
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
yum -y --enablerepo=elrepo-kernel install kernel-ml
grub2-set-default 0
reboot
如果rpm提示错误,升级yum:yum -y update
如果重启后未生效
vi /etc/default/grub
修改如下:
GRUB_DEFAULT=0
并执行
grub2-mkconfig -o /boot/grub2/grub.cfg
开启BBR
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
检查
sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
lsmod | grep bbr
安装成功会出现BBR
删除旧内核
yum -y remove kernel kernel-tools
此处评论已关闭