How to use TcpA in Tencent

Tencent internal use of TcpA, Tencent TEG operating system group research and development, based on rhel7.4 source code, customized TcpA.
Team Introduction:
Tencent TEG operating system group, established in 2010, has a professional kernel team to maintain and develop Tencent's internal Linux operating system tlinux, so as to ensure the efficient and stable operation of millions of servers and provide strong support for Tencent business.

Advantages: after TcpA is enabled, small files can be increased by more than 40% compared with BBR, and large files can be increased by 5% ~ 10% compared with BBR. The advantage of TcpA lies in the performance improvement of small files, and the program only accelerates the website port (80 / 443 / 8080) by default, so it is more suitable for site building scenarios.

Installation requirements:
Centos7 up
Boot partition is not less than 500m (too small may cause kernel installation failure)

Deployment process:
The installation depends on:

 yum -y install net-tools

Kernel system replacement

 [root@vultr ~]# wget http://down.08mb.com/tcp_ opz/tcpa/kernel-3.10.0-693.5.2.tcpa06.tl2.x86_ 64.rpm
[root@vultr ~]# rpm -ivh kernel-3.10.0-693.5.2.tcpa06.tl2.x86_ 64.rpm --force
Preparing...                          ################################# [100%]
Updating / installing...
   1:kernel-3.10.0-693.5.2.tcpa06.tl2 ################################# [100%]
Install kernel
Set Grub default to "3.10.0-693.5.2.tcpa06.tl2" Done.

Restart the operating system

 reboot

Download the main program:

 wget http://down.08mb.com/tcp_ opz/tcpa/tcpa_ packets_ 180619_ 1151.tar.gz

Start installation:

 tar xf tcpa_ packets_ 180619_ 1151.tar.gz
cd tcpa_ packets
sh install.sh

TcpA (only the three ports of 804438080 are accelerated by default). If new speed ports are required:

 vim /usr/local/storage/tcpav2/start.sh

Add after line 46:

 $bindir / $ctlapp access add tip $IP tport custom port

Start TcpA congestion algorithm:

 cd /usr/local/storage/tcpav2
sh start.sh

Check whether it is opened successfully

 [root@vultr tcpav2]# lsmod|grep tcpa
tcpa_ engine           224249  0

Unloading method:

 cd /usr/local/storage/tcpav2
sh uninstall.sh

If you want to be lazy, you can use the blog's one click installation script:

 wget http://down.08mb.com/tcp_ opz/tcpa/tcpa.sh
sh tcpa.sh

Restart the kernel and install it automatically without manual intervention.

Test results of Borui authoritative data:
 1.png
 16.png

Original article, author: Lijian, if reprinted, please indicate the source: https://www.lijian.me/141.html

Comment

Email addresses will not be made public. Required item used * tagging

Comment list (24)

  •  head portrait
    a variety of Chinese cabbage 9:27 am, March 10, 2019

    Good thing. Can you reprint it?
    blog.wxlost.com

  •  head portrait
    a variety of Chinese cabbage 3:35 PM, March 11, 2019

    I found that the boot is generally 300 +. It seems that we need to study how to increase the boot capacity without damage

  •  head portrait
    Zeal Lau 10:33 PM, March 11, 2019

    Can Debian work?

    •  admin
      admin reply Zeal Lau 6:34 PM, March 13, 2019

      If it only supports centos7 and Debian, you can manually install and test it on an idle machine. If the kernel is universal, it should be OK.

  •  head portrait
    light rain 10:30 am, March 13, 2019

    Blogger, can I use this script OpenVZ?
    Or must we rely on kvz?

    •  admin
      admin reply light rain 6:31 PM, March 13, 2019

      OpenVZ does not support kernel replacement, so it can't be used

  •  head portrait
    xhqpp 11:50 PM, March 14, 2019

    Does Tencent accelerate faster than BBR plus?

    •  admin
      admin reply xhqpp 12:18 PM, March 17, 2019

      According to the actual test, it is not that the higher the bandwidth consumption, the better.

  •  head portrait
    lj47312 10:29 am, March 18, 2019

    This script is amazing! Just kill my wireguard! I'm going to relocate wireguard's wall crossing service.

    •  admin
      admin reply lj47312 2:50 PM, March 19, 2019

      There is no extra action on the script content. Wireguard cannot be used. It may be related to the replacement of the kernel.

  •  head portrait
    Dad de notes 12:19 am, May 1, 2019

    Advantages: after TcpA is enabled, small files can be increased by more than 40% compared with BBR, and large files can be increased by 5% ~ 10% compared with BBR. The advantage of TcpA lies in the performance improvement of small files, and the program only accelerates the website port (80 / 443 / 8080) by default, so it is more suitable for site building scenarios.
    So my domestic host set CDN, there is no need to do this.

  •  head portrait
    Mo 000 11:30 am, November 12, 2019

    [secret] Hello, blogger. Why does the memory of VPS decrease by about 100MB after TcpA is installed? For example, the total memory before is 998mb, and after TcpA installation, the total memory becomes 880MB

  •  head portrait
    Yuhuatai 1:07 PM, November 14, 2019

    Hello blogger, why does the memory of VPS reduce by about 100MB after TcpA is installed? For example, the total memory before is 998mb, and after TcpA is installed, the total memory becomes 880MB

  •  head portrait
    Fate 12:59 am, December 3, 2019

    : Aru: knife:: the file is missing and 404 has been downloaded

  •  head portrait
    lisa1936 10:00 pm, January 27, 2020

    The speed of the two GCRs is worse than that of the BBP

  •  head portrait
    A small group March 16, 2020 7:33 PM

    Didn't the message succeed? I just want to ask whether TcpA can be installed after the pagoda panel is installed

  •  admin
    admin reply Faster use of TCR and TCR 12:59 PM, March 11, 2019

    Your blog code highlights what plug-ins use. It's beautiful

contact us

Online consultation: Click here to send me a message

Email: root ා lijian.me (change ා to @)