CentOS7 开启BBR

CentOS7 开启BBR

安装kernel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
yum remove -y kernel-headers kernel-tools kernel-tools-libs

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm

yum -y install grub2

#kernel-ml-4.17.9-1.el7.elrepo.x86_64
yum --enablerepo=elrepo-kernel install -y kernel-ml kernel-ml-headers kernel-ml-devel
yum --enablerepo=elrepo-kernel install -y kernel-ml-doc kernel-ml-tools kernel-ml-tools-libs perf python-perf

ls -l /boot/vmlinuz*

mkdir /boot/grub

grub2-mkconfig -o /boot/grub/grub.cfg

rpm -qa | grep kernel

awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
#egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'

shutdown -r now

yum remove -y kernel

shutdown -r now

开启BBR

1
2
3
4
cat >>/etc/sysctl.conf << EOF
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
EOF
1
2
3
4
5
6
7
sysctl -p

sysctl net.ipv4.tcp_available_congestion_control

sysctl net.core.default_qdisc

lsmod | grep bbr

参考

Linode CentOS7开启Google TCP-BBR优化算法

一键安装最新内核并开启 BBR 脚本

×

纯属好玩

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

文章目录
  1. 1. CentOS7 开启BBR
    1. 1.1. 参考
,