Jump to content

5.CentOS 7 開啟BBR加速


Jack

Recommended Posts

-------------------------------------------------------------------------
CentOS 7 一鍵安裝最新內核並開啟BBR
-------------------------------------------------------------------------

BBR一键安装脚本
KVM架構使用
https://teddysun.com/489.html

 

内核檢查

uname -r

果然是 3.10 内核

 

指令

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

 

會看到你的系統訊息

---------- System Information ----------
 OS      : CentOS 7.7.1908
 Arch    : x86_64 (64 Bit)
 Kernel  : 3.10.0-1062.18.1.el7.x86_64
----------------------------------------
 Auto install latest kernel for TCP BBR

 URL: https://teddysun.com/489.html
----------------------------------------

Press any key to start...or Press Ctrl+C to cancel

敲任意鍵

自動安裝

 

 

Complete!

Info: The system needs to reboot.

Do you want to restart system? [y/n]

安裝完成

重開機輸入 y

 

SSH登入

驗證是否已安裝並開啟BBR

uname -r

顯示結果為 5.6.8-1.el7.elrepo.x86_64 內核版本已更新到5.6

 

敲入
sysctl net.ipv4.tcp_available_congestion_control

返回值一般為
net.ipv4.tcp_available_congestion_control = reno cubic bbr

 

敲入
sysctl net.ipv4.tcp_congestion_control

返回值一般為
net.ipv4.tcp_congestion_control = bbr

 

敲入
sysctl net.core.default_qdisc

返回值一般為
net.core.default_qdisc = fq

 

敲入
lsmod | grep bbr

返回值有出現 tcp_bbr

說明BBR已啟動

Edited by Jack
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...