-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinux_bbr.txt
36 lines (27 loc) · 1.07 KB
/
linux_bbr.txt
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
29
30
31
32
33
34
35
(Use centOS as example, other distributions are similar)
$ yum update
Release version should be higher than 7.5:
$ cat /etc/redhat-release
Install elrepo and update the core:
$ rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
$ rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
$ yum --enablerepo=elrepo-kernel install kernel-ml -y
Check the installed core,
$ awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
and set the elrepo one to default
$ grub2-set-default [elepro core index]
Copy the following to /etc/sysctl.conf,
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
and load the file
$ sysctl -p
Test if bbr is turned on:
$ sysctl net.ipv4.tcp_congestion_control
This should give you
net.ipv4.tcp_congestion_control = bbr
Could also try
$ lsmod | grep bbr
--------------------------------------------------------------------------------
Original: https://gist.github.com/ComeBey/93103843bcc22e327ea892345cd7beac
As created on 2020.5, last modified on 2020.5
(Refer to the above dates instead of the ones in commit log)