Steps for installing a new version of CentOS7 kernel
uname -sr
-A or -- all: display all information; -M or -- machine: display the computer type; -N or - nodename: the host name displayed on the network; -R or -- release: displays the release number of the operating system; -S or -- sysname: displays the name of the operating system; -v: Display the version of the operating system; -P or -- processor: output processor type or "unknown"; -I or -- hardware platform: output hardware platform or "unknown"; -O or -- operating system: output the operating system name; --Help: Display help; --Version: displays version information.
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml -y
rpm -qa | grep kernel
kernel-3.10.0-862.14.4.el7.x86_64 kernel-ml-5.3.8-1.el7.elrepo.x86_64 kernel-3.10.0-1062.4.1.el7.x86_64 kernel-headers-3.10.0-1062.4.1.el7.x86_64 kernel-3.10.0-957.5.1.el7.x86_64 kernel-3.10.0-1062.1.2.el7.x86_64 kernel-tools-3.10.0-1062.4.1.el7.x86_64 kernel-tools-libs-3.10.0-1062.4.1.el7.x86_64 kernel-3.10.0-957.1.3.el7.x86_64
sudo egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'
CentOS Linux (5.3.8-1.el7.elrepo.x86_64) 7 (Core) CentOS Linux (3.10.0-1062.4.1.el7.x86_64) 7 (Core) CentOS Linux (3.10.0-1062.1.2.el7.x86_64) 7 (Core) CentOS Linux (3.10.0-957.5.1.el7.x86_64) 7 (Core) CentOS Linux (3.10.0-957.1.3.el7.x86_64) 7 (Core) CentOS Linux (3.10.0-862.14.4.el7.x86_64) 7 (Core) CentOS Linux (0-rescue-618ca2de6e204efbb013b592564ef36a) 7 (Core)
sudo grub2-set-default 0
reboot
uname -r
grub2-mkconfig -o /boot/grub2/grub.cfg
Enable BBR on the new CentOS7 kernel
echo 'net.core.default_qdisc=fq' | sudo tee -a /etc/sysctl.conf echo 'net.ipv4.tcp_congestion_control=bbr' | sudo tee -a /etc/sysctl.conf sudo sysctl -p
sudo sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno
sudo sysctl -n net.ipv4.tcp_congestion_control
bbr
lsmod | grep bbr
tcp_bbr 16384 0
What's the use of turning on BBR?
BBR and BBR2 one button package
What is BBR2?
Bbr2 one button package
wget --no-check-certificate -q -O bbr2.sh " https://raw.githubusercontent.com/yeyingorg/bbr2.sh/master/bbr2.sh " && chmod +x bbr2.sh && bash bbr2.sh auto
BBR one button package
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./ bbr.sh
Bbr plus one button package
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./ bbr.sh