User Tools

Site Tools


linux:bbr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:bbr [2018/01/08 13:29] percylinux:bbr [2018/01/08 14:39] percy
Line 10: Line 10:
  
 ==== Enable bbr ==== ==== Enable bbr ====
 +  sysctl net.core.default_qdisc=fq
 +  sysctl net.ipv4.tcp_congestion_control=bbr
 +
 <code BASH> <code BASH>
 pi@raspberrypi:~ $  sudo sysctl net.ipv4.tcp_congestion_control=bbr pi@raspberrypi:~ $  sudo sysctl net.ipv4.tcp_congestion_control=bbr
Line 32: Line 35:
 Or Or
   sudo apt-get install linux-image-4.10.0-42-generic linux-headers-4.10.0-42-generic   sudo apt-get install linux-image-4.10.0-42-generic linux-headers-4.10.0-42-generic
-   +  
 +Actuall after install the above kernel, it doesn't support BBR, and the working kernel is following one, you need manual download and install it 
 + 
 +  cd kernel4.9/ 
 +  wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/linux-image-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb 
 +  sudo dpkg -i linux-image-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb 
 Update the grub Update the grub
   sudo vim /etc/default/grub   sudo vim /etc/default/grub
Line 38: Line 47:
   GRUB_DISABLE_SUBMENU = Y   GRUB_DISABLE_SUBMENU = Y
      
-  export GRUB_CONFIG =`sudo find / boot -namegrub.cfg`+  export GRUB_CONFIG=`sudo find /boot -name "grub.cfg"`
   sudo update-grub   sudo update-grub
  
Line 47: Line 56:
 Now you can reoot the VPS Now you can reoot the VPS
      
 +
 +==== Some tips ====
 +<code>
 +uname -r
 +#查看内核版本,含有4.9.0就表示OK了
 +#------------
 +sysctl net.ipv4.tcp_available_congestion_control
 +#返回值一般为:
 +#net.ipv4.tcp_available_congestion_control = bbr cubic reno
 +#------------
 +sysctl net.ipv4.tcp_congestion_control
 +#返回值一般为:
 +#net.ipv4.tcp_congestion_control = bbr
 +#------------
 +sysctl net.core.default_qdisc
 +#返回值一般为:
 +#net.core.default_qdisc = fq
 +#------------
 +lsmod | grep bbr
 +#返回值有tcp_bbr模块即说明bbr已启动。
 +</code>
 +
 +==== Refer ====
 +  - https://www.nmbhost.com/archives/1594
 +  - https://blog.chenjia.me/articles/161229-000832.html
 +  - https://www.digitalocean.com/community/tutorials/how-to-update-a-digitalocean-server-s-kernel
  
  
  
  
/var/www/dokuwiki/wiki/data/pages/linux/bbr.txt · Last modified: 2018/01/08 14:40 by percy