centos7 安装bbr脚本

centos7 安装bbr脚本

admin
2022-05-17 / 0 评论 / 23 阅读 / 正在检测是否收录...

BBR(Bottleneck Bandwidth and Round-trip propagation time)是Google 提出的一种新型拥塞控制算法,可以使Linux服务器显著地提高吞吐量和减少TCP连接的延迟。Google已经开源了该算法,并提交到了Linux内核,从4.9开始,Linux内核已经用上了该算法。

解决方案

查看当前Centos的版本

大于7.3即可

cat /etc/redhat-release

执行一键安装脚本

wget --no-check-certificate -O /opt/bbr.sh https://github.com/teddysun/across/raw/master/bbr.sh && chmod 755 /opt/bbr.sh && /opt/bbr.sh

安装完成后会提示重启系统

l38ym8kk.png

立即重启,输入:y ,等待重启完毕

失败请执行:

yum install -y linux-firmware

验证当前的TCP算法

sysctl net.ipv4.tcp_available_congestion_control

结果: net.ipv4.tcp_available_congestion_control = reno cubic bbr

输出结果包含bbr 表示成功

查看BBR是否启动

sysctl net.ipv4.tcp_congestion_control

结果为: net.ipv4.tcp_congestion_control = bbr

查看BBR是否已经载入了系统模块

lsmod | grep bbr

结果为: tcp_bbr 20480 8

0

评论 (0)

取消