Change the kernel to accelerate BBR

888u

Last update at :2024-05-16,Edit by888u

This feature of BBR is actually planned to be added in Linux kernel 4.9. Therefore, to enable BBR, the kernel version needs to be Linux kernel 4.9 or above. Let’s record how to upgrade the Linux kernel and enable BBR:

Debian 8 / Ubuntu 14 / Ubuntu 16

Friendly reminder: If you install the latest Ubuntu 17 version, it is possible that the kernel is already 4.10, and there is no need to upgrade the kernel

Download the latest kernel. Check here for the latest kernel: http://kernel.ubuntu.com/~kernel-ppa/mainline

wget -c http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.4/linux-image-4.11.4-041104-generic_4.11.4-041104.201706071003_amd64.deb

Install kernel:

dpkg -i linux-image-4.*.deb

Clean up old unused kernels (optional):

apt-get autoremove

Update grub system boot files and restart:

update-grub reboot

CentOS 7

Download and replace the kernel. Check here for the latest kernel: http://elrepo.org/linux/kernel/el7/x86_64/RPMS/

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 whether the kernel is installed successfully:

rpm -qa | grep kernel

Remove old kernel (optional):

rpm -ev old kernel

Update grub system boot files and restart:

egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \' grub2-set-default 0 #default 0 means that the first kernel is set to run by default. Just choose the latest kernel. reboot

Enable BBR

After booting, run uname -r to see if it is kernel 4.9, 4.10 or 4.11

Execute lsmod | grep bbr, if there is no tcp_bbr in the result, execute it first:

modprobe tcp_bbr echo "tcp_bbr" >> /etc/modules-load.d/modules.conf

Execute:

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

Save to take effect:

sysctl -p

Execute:

sysctl net.ipv4.tcp_available_congestion_control sysctl net.ipv4.tcp_congestion_control

If the results all show bbr, it proves that your kernel has bbr enabled. Seeing the tcp_bbr module means that bbr has been started.

Recommended site searches: IP proxy, how long does it take to register a website, free virtual host application, server hosting, same IP website query, .net space, US host rental, US server defense, registered domain name purchase, registration-free CDN acceleration, < /p>

Change the kernel to accelerate BBR

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码