新之助meow

Kratos
专注于用户阅读体验的响应式博客主题
  1. 首页
  2. 未分类
  3. 正文

conoha centos6.9 开启bbr 加速

2018年5月5日 953点热度 0人点赞 2条评论

原理文章

Linux Kernel 4.9 中的 BBR 算法与之前的 TCP 拥塞控制相比有什么优势?
https://www.zhihu.com/question/53559433

在有一定丢包率的情况下,TCP BBR 更加激进,抢占了更多的公网带宽
linux内核4.9以上自带

安装elrepo扩展源

先到www.elrepo.org 看一下centos6和7的最新rpm连接

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
centos6
yum install https://www.elrepo.org/elrepo-release-6.el6.elrepo.noarch.rpm
centos7
yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm

vi /etc/yum.repos.d/elrepo.repo
修改 [elrepo-kernel] 的 enabled=0 为 enabled=1

 

 

安装内核

yum install kernel-ml -y

 

修改 grub 的引导顺序

CentOS6 使用
sed -i 's/^default=.*/default=0/g' /boot/grub/grub.conf
Centos7 使用
grub2-set-default 0

然后重启服务器

reboot

开启配置

先看看更新成功否
uname -a

显示的版本号 ≥4.9 就OK了,然后直接复制下面的命令,再重启一发

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

 

检测TCP-BBR是否生效

为检测TCP-BBR是否生效,需要执行一下下面三条命令,如果均存在bbr的字样,说明已经成功生效了。

sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno
sysctl -n net.ipv4.tcp_congestion_control
bbr
lsmod | grep bbr
tcp_bbr 20480 55

 

参考文章

CentOS6开启BBR加速
https://blog.csdn.net/u012469987/article/details/72571862
TCP-BBR加速VPS
http://yinflying.top/2017/07/646

标签: 暂无
最后更新:2018年5月5日

tjccn_wx@hotmail.com

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • Mango

    /boot/grub/grub.conf 这里没有文件怎么办?

    2018年11月28日
    回复
  • Mango

    噢,openVZ 架构的。。

    2018年11月28日
    回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    取消回复

    归档

    • 2026 年 10 月
    • 2024 年 2 月
    • 2023 年 7 月
    • 2023 年 1 月
    • 2022 年 10 月
    • 2022 年 9 月
    • 2022 年 6 月
    • 2022 年 4 月
    • 2022 年 3 月
    • 2022 年 2 月
    • 2021 年 11 月
    • 2021 年 10 月
    • 2021 年 9 月
    • 2021 年 1 月
    • 2020 年 12 月
    • 2020 年 11 月
    • 2020 年 10 月
    • 2020 年 9 月
    • 2020 年 7 月
    • 2020 年 6 月
    • 2020 年 5 月
    • 2020 年 4 月
    • 2020 年 3 月
    • 2020 年 2 月
    • 2019 年 10 月
    • 2019 年 8 月
    • 2019 年 7 月
    • 2019 年 4 月
    • 2019 年 3 月
    • 2018 年 12 月
    • 2018 年 11 月
    • 2018 年 10 月
    • 2018 年 6 月
    • 2018 年 5 月
    • 2018 年 4 月
    • 2018 年 3 月
    • 2018 年 2 月
    • 2018 年 1 月
    • 2017 年 12 月
    • 2017 年 11 月
    • 2017 年 10 月
    • 2017 年 9 月
    • 2017 年 8 月
    • 2017 年 7 月
    • 2017 年 6 月
    • 2017 年 5 月
    • 2017 年 4 月
    • 2017 年 3 月
    • 2017 年 2 月
    • 2017 年 1 月
    • 2016 年 12 月
    • 2016 年 11 月
    • 2016 年 10 月
    • 2016 年 9 月
    • 2016 年 8 月
    • 2016 年 7 月
    • 2016 年 6 月
    • 2016 年 5 月
    • 2016 年 4 月
    • 2016 年 3 月
    • 2015 年 12 月
    • 2015 年 8 月

    分类

    • android
    • mysql
    • nethunter
    • proxmark
    • 未分类

    COPYRIGHT © 2026 新之助meow. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang