Get the most out of your Centmin Mod LEMP stack
Become a Member

WebPerf Google's BBR Algorithm for Speeding up Internet Traffic Gains Wider Adoption

Discussion in 'All Internet & Web Performance News' started by pamamolf, Jul 22, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    41,748
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,443
    Local Time:
    4:31 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    strange indeed maybe unrelated issues? you can try re-enabling BBR later and see if same issues ?
     
  2. Tinkerd10

    Tinkerd10 New Member

    21
    3
    3
    Sep 28, 2016
    Ratings:
    +13
    Local Time:
    7:31 AM
    1.11
    5.5
    Yes , you are correct the problem is not exactly with database but with tasks that require external source
    Like adding new content info from external API , and also yum update didn't work

    So i tried pinging those source and i was able too which is weird

    I thought the problem is with the website, so i tried a different copy, i was able to retrieve content from API after many attempts but unable to submit it to database

    There was a new version of kernel 4.12-8, which i tried 20 mins ago, but the server stuck on boot as described by Host provider kernel panic

    "This is a notification that you server is currently experiencing a Kernel Panic due to an remotely mounted FileSystem not being able to mount for an unkown reason. If you require it, we can have a KVM made available right away to you for $50/day. Otherwise, we can schedule a KVM free of charge for the first 24 hours tomorrow. Please let us know how you would like to proceed."

    Picture sent by provider
    http://imgur.com/a/d1Ao2
     
    • Informative Informative x 1
  3. buik

    buik Well-Known Member

    1,197
    320
    83
    Apr 29, 2016
    Ratings:
    +939
    Local Time:
    8:31 AM
    Great to see that your server provider offers free KVM switch support to fix your kernel panic.
    Let this be a clear message to all of you, who are considering to use the elrepo kernel.

    I have seen and experienced it before kernel panics et al.
    Do not use the elrepo kernel in a production environment.
     
    • Agree Agree x 1
  4. Tinkerd10

    Tinkerd10 New Member

    21
    3
    3
    Sep 28, 2016
    Ratings:
    +13
    Local Time:
    7:31 AM
    1.11
    5.5
    Yes they are one of the best provider i have being with them for more than 5 years now
    Very flexible and fast support, after i explained to them what i did they went ahead and fixed it and updated me on every step.

    I will bookmark this tutorial and try again another time.

    Regards.
     
  5. eva2000

    eva2000 Administrator Staff Member

    41,748
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,443
    Local Time:
    4:31 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yes that is a risk with messing with 3rd party Linux Kernels not provided by the distribution's native yum repositories or not provided with web hosts who properly test their custom Linux Kernels i.e. Linode's 4.9.x
     
  6. ArisC

    ArisC Active Member

    122
    29
    28
    Jun 1, 2017
    Ratings:
    +59
    Local Time:
    9:31 AM
    Nginx Latest
    MariaDB Latest
    @Tinkerd10 Could you share your provider with us ?
     
    • Agree Agree x 1
  7. Tinkerd10

    Tinkerd10 New Member

    21
    3
    3
    Sep 28, 2016
    Ratings:
    +13
    Local Time:
    7:31 AM
    1.11
    5.5
    • Informative Informative x 1
  8. eva2000

    eva2000 Administrator Staff Member

    41,748
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,443
    Local Time:
    4:31 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    • Like Like x 1
  9. rdan

    rdan Well-Known Member

    4,672
    1,122
    113
    May 25, 2014
    Ratings:
    +1,664
    Local Time:
    2:31 PM
    Mainline
    10.2
    Code:
    # yum install centos-release-xen
    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
     * base: mirror.0x.sg
     * epel: ams.edge.kernel.org
     * extras: mirror.0x.sg
     * rpmforge: kartolo.sby.datautama.net.id
     * updates: mirror.0x.sg
    284 packages excluded due to repository priority protections
    Resolving Dependencies
    --> Running transaction check
    ---> Package centos-release-xen.x86_64 10:8-3.el7 will be installed
    --> Processing Dependency: /usr/bin/grub-bootxen.sh for package: 10:centos-release-xen-8-3.el7.x86_64
    --> Processing Dependency: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Virtualization for package: 10:centos-release-xen-8-3.el7.x86_64
    --> Running transaction check
    ---> Package centos-release-virt-common.noarch 0:1-1.el7.centos will be installed
    ---> Package centos-release-xen-common.x86_64 10:8-3.el7 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    =============================================================================================================================================================================================
     Package                                                   Arch                                  Version                                         Repository                             Size
    =============================================================================================================================================================================================
    Installing:
     centos-release-xen                                        x86_64                                10:8-3.el7                                      extras                                6.3 k
    Installing for dependencies:
     centos-release-virt-common                                noarch                                1-1.el7.centos                                  extras                                4.5 k
     centos-release-xen-common                                 x86_64                                10:8-3.el7                                      extras                                6.9 k
    
    Transaction Summary
    =============================================================================================================================================================================================
    Install  1 Package (+2 Dependent packages)
    
    Total download size: 18 k
    Installed size: 4.6 k
    Is this ok [y/d/N]: y
    Downloading packages:
    (1/3): centos-release-virt-common-1-1.el7.centos.noarch.rpm                                                                                                           | 4.5 kB  00:00:00     
    (2/3): centos-release-xen-8-3.el7.x86_64.rpm                                                                                                                          | 6.3 kB  00:00:00     
    (3/3): centos-release-xen-common-8-3.el7.x86_64.rpm                                                                                                                   | 6.9 kB  00:00:00     
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                        121 kB/s |  18 kB  00:00:00     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : centos-release-virt-common-1-1.el7.centos.noarch                                                                                                                          1/3
      Installing : 10:centos-release-xen-common-8-3.el7.x86_64                                                                                                                               2/3
      Installing : 10:centos-release-xen-8-3.el7.x86_64                                                                                                                                      3/3
      Verifying  : 10:centos-release-xen-8-3.el7.x86_64                                                                                                                                      1/3
      Verifying  : 10:centos-release-xen-common-8-3.el7.x86_64                                                                                                                               2/3
      Verifying  : centos-release-virt-common-1-1.el7.centos.noarch                                                                                                                          3/3
    
    Installed:
      centos-release-xen.x86_64 10:8-3.el7                                                                                                                                                       
    
    Dependency Installed:
      centos-release-virt-common.noarch 0:1-1.el7.centos                                               centos-release-xen-common.x86_64 10:8-3.el7                                             
    
    Complete!
    [[email protected] html]# yum update
    Loaded plugins: fastestmirror, priorities, versionlock
    Loading mirror speeds from cached hostfile
     * base: centos.netonboard.com
     * epel: ams.edge.kernel.org
     * extras: centos.netonboard.com
     * rpmforge: kartolo.sby.datautama.net.id
     * updates: centos.netonboard.com
    centos-virt-xen-46                                                                                                                                                    | 2.9 kB  00:00:00     
    centos-virt-xen-46/7/x86_64/primary_db                                                                                                                                | 4.5 MB  00:00:02     
    477 packages excluded due to repository priority protections
    No packages marked for update
    [[email protected] html]# sysctl net.ipv4.tcp_available_congestion_control
    net.ipv4.tcp_available_congestion_control = cubic reno
    [[email protected] html]#
    yum update has nothing new to install though.
     
  10. buik

    buik Well-Known Member

    1,197
    320
    83
    Apr 29, 2016
    Ratings:
    +939
    Local Time:
    8:31 AM
    If everything is configured correctly, the system should take the Xen kernel.
    A common problem is that you have a newer kernel already installed (+4.9).
    Then of course it will not be updated to the Xen kernel, which is in fact 4.9.*.

    Otherwise try yum update kernel.

    Or use the compatible Oracle UEK5 kernel (4.14 LTS with TCP-BBR enabled) as the Xen project is more or less a dead end.

    Releasing a patch is great. But there are a few problems.

    1. Last Cloudflare code release is from Jun 28, 2017. So first see and then believe.

    2. The upstream Nginx team has not accepted patches from third parties for ages (just review there forum).

    In fact, patches are no longer offered by Cloudflare and Google because they are not accepted for bla bla and blah blah reason.

    3. As intended the Cloudflare patch needs a modern kernel with BBR for compatibility requirements. And thus, compatibility issues can occur with a lot of servers. It seems to me very likely that it will not be implemented.

    This is now typically a patch that works perfectly with a specific system such as Cloudflare but does not work with the mainstream.
     
    Last edited: Oct 15, 2018
    • Informative Informative x 1
  11. upgrade81

    upgrade81 Premium Member Premium Member

    236
    14
    18
    Sep 5, 2016
    Switzerland
    Ratings:
    +21
    Local Time:
    8:31 AM
    1.17
    10.3
    someone tried bbr with net.ipv4.tcp_notsent_lowat = 16384

    are there any tests?
     
  12. eva2000

    eva2000 Administrator Staff Member

    41,748
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,443
    Local Time:
    4:31 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  13. buik

    buik Well-Known Member

    1,197
    320
    83
    Apr 29, 2016
    Ratings:
    +939
    Local Time:
    8:31 AM
    Is the above Cloudflare patch already available?
     
  14. eva2000

    eva2000 Administrator Staff Member

    41,748
    9,398
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,443
    Local Time:
    4:31 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    not yet AFAIK