Ubuntu kernel upgrade and how to turn BBR acceleration (pro-test feasible, indeed has accelerated the speed)

BBR is something I will not go into details, it can be understood as a quick and sharp things about the same, but then, sharp high-speed low-end price and will not sell. We can not achieve the results in a free and easy to use unilateral acceleration; therefore, in this context, we now have the option BBR ( new TCP congestion control algorithms and RTT Bandwidth Bottleneck ).

Premise we all know, Ubuntu is open BBR kernel must be equal to higher than 4.9, so I want to use this magnificent thing, you need to see if your kernel is 4.9 or above.

View command:uname -a

If it is 4.9 or above, then congratulations, you upgrade the kernel you can skip this step, and if 4.9 or less, it would need to be updated about the kernel; unfortunately GCE official default mirror mounted, the kernel is 4.4, so I We must do a wave kernel upgrade.

A, Ubuntu kernel upgrade

In fact, the upgrade process is relatively simple, make sure your system is 32-bit or 64-bit, you can use the following command to view

View command:getconf LONG_BIT

After determining the system, you need to download the necessary upgrade packages

http://kernel.ubuntu.com/~kernel-ppa/mainline/

This site can find the latest package using wget command to download to the server according to their needs;

For example, my 64-bit server, install the kernel 4.10.2:
sudo wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.2/linux-image-4.10.2-041002-generic_4.10.2-041002.201703120131_amd64.deb(with root privileges, then you can remove the front of the command "sudo")

Then switch to your download directory file, execute the following command to upgrade:

sudo dpkg -i linux-image-4.10.2-041002-generic_4.10.2-041002.201703120131_amd64.deb

Finally, Run sudo update-grub, updating grub boot loader.

Once all aspects have been completed, restart the machine, you are ready to use. After a system reboot, open a terminal window and execute the command uname -a, make sure that you are actually in the kernel to run after you update.

Second, open TCP BBR

Modify the system variables:
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

Focus on the implementation of the above command, if you can try to deny access to the display using the following command
sudo bash -c 'echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf'
sudo bash -c 'echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf'

Save the entry into force
sysctl -p

carried out
sysctl net.ipv4.tcp_available_congestion_control

If the return result
net.ipv4.tcp_available_congestion_control = bbr cubic reno
then congratulations BBR open success!

It can also be performed
lsmod | grep bbr
to detect whether BBR really turned successful ......

At this point, your server BBR opened successfully, rush to cool wave!

Finally, based on Google posted a GCE, and opened the picture of SS BBR speed!

YouTuBe 4K video

Free to send $ 300 Google GCE cloud host application configuration tutorial graphic Raiders

 

Using cloud shoot / Cha cattle cloud WebP format images of thin

One Response: "Ubuntu kernel upgrade and how to turn BBR acceleration"

Published 29 original articles · won praise 5 · Views 8000

Guess you like

Origin blog.csdn.net/qq_25194685/article/details/90643518