{"id":21,"date":"2020-08-25T01:20:02","date_gmt":"2020-08-24T17:20:02","guid":{"rendered":"https:\/\/kk.traekle.com\/?p=21"},"modified":"2020-09-02T09:04:53","modified_gmt":"2020-09-02T01:04:53","slug":"orcale-ubuntu-18-04-3-lts-bbr","status":"publish","type":"post","link":"https:\/\/hk.traekle.com\/?p=21","title":{"rendered":"Oracle Ubuntu 18.04.3 LTS \u5347\u7ea7\u6700\u65b0\u5185\u6838\u5f00\u542f BBR \u52a0\u901f\uff08bbr\/bbrplus\/bbr2\/\u9510\u901f\u5185\u6838\u5b89\u88c5\u811a\u672c\uff09"},"content":{"rendered":"\n<p><strong>1.\u786e\u8ba4\u5f53\u524d\u7cfb\u7edf\u7248\u672c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uname -m<\/code><\/pre>\n\n\n\n<p><strong>2.\u786e\u8ba4\u5347\u7ea7\u5185\u6838\u7248\u672c<\/strong><\/p>\n\n\n\n<p>\u4ece Ubuntu Kernel Team&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/cyhour.com\/go\/aHR0cHM6Ly9rZXJuZWwudWJ1bnR1LmNvbS9-a2VybmVsLXBwYS9tYWlubGluZS8\" target=\"_blank\">Mainline Kernel Build<\/a>&nbsp;\u5b98\u65b9\u7f51\u7ad9\u67e5\u627e\u9700\u8981\u7684\u5185\u6838\uff0c\u6bd4\u5982 5.3.4\u3002<\/p>\n\n\n\n<p>\u6839\u636e\u7cfb\u7edf\u7248\u672c\u9009\u62e9 x64 \u6216\u8005 x86\u3002<\/p>\n\n\n\n<p>generic\uff1a\u901a\u7528\u7248\u5185\u6838\uff0clowlatency\uff1a\u4f4e\u5ef6\u8fdf\u5185\u6838\uff0c\u6211\u4eec\u4e00\u822c\u9009\u62e9\u901a\u7528\u5185\u6838\u3002<\/p>\n\n\n\n<p><strong>3.\u4e0b\u8f7d\u5185\u6838<\/strong><\/p>\n\n\n\n<p>\u6709\u53ef\u80fd\u9700\u8981\u5b89\u88c5 wget<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y wget<\/code><\/pre>\n\n\n\n<p>\u4e0b\u8f7d4\u4e2a\u5185\u6838\u6587\u4ef6\uff08\u4e00\u4e2a header + 3\u4e2a generic \u6587\u4ef6\uff0c\u4ee5 x86_64 \u7248\u672c\u4e3a\u4f8b\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.3.4\/linux-headers-5.3.4-050304_5.3.4-050304.201910051526_all.deb  https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.3.4\/linux-headers-5.3.4-050304-generic_5.3.4-050304.201910051526_amd64.deb https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.3.4\/linux-image-unsigned-5.3.4-050304-generic_5.3.4-050304.201910051526_amd64.deb https:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v5.3.4\/linux-modules-5.3.4-050304-generic_5.3.4-050304.201910051526_amd64.deb<\/code><\/pre>\n\n\n\n<p><strong>4.\u5b89\u88c5\u5185\u6838<\/strong><\/p>\n\n\n\n<p>\u4f7f\u7528 dpkg \u5b89\u88c5\u6700\u65b0\u5185\u6838\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dpkg -i *.deb<\/code><\/pre>\n\n\n\n<p>\u66f4\u65b0 grub\uff0c\u5176\u5b9e\u4e0a\u4e00\u6b65\u5df2\u7ecf\u66f4\u65b0\uff0c\u4e0d\u653e\u5fc3\u53ef\u4ee5\u518d\u6267\u884c\u4e00\u6b21\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-grub<\/code><\/pre>\n\n\n\n<p>\u91cd\u542f\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot<\/code><\/pre>\n\n\n\n<p>\u8fdb\u5165\u7cfb\u7edf\u786e\u8ba4\u7248\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uname -rs<\/code><\/pre>\n\n\n\n<p>\u6b63\u5e38\u4f1a\u8f93\u51fa\u65b0\u5185\u6838\u7248\u672c\uff1aLinux 5.3.4-050304-generic<\/p>\n\n\n\n<p><strong>5.Ubuntu \u5f00\u542f BBR \u52a0\u901f<\/strong><\/p>\n\n\n\n<p>\u4fee\u6539\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su\necho \"net.core.default_qdisc=fq\" >> \/etc\/sysctl.conf\necho \"net.ipv4.tcp_congestion_control=bbr\" >> \/etc\/sysctl.conf<\/code><\/pre>\n\n\n\n<p>\u4fdd\u5b58\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo sysctl -p<\/code><\/pre>\n\n\n\n<p>\u91cd\u542f\u7cfb\u7edf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot<\/code><\/pre>\n\n\n\n<p>\u68c0\u67e5\u662f\u5426\u5f00\u542f\u6210\u529f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo sysctl net.ipv4.tcp_available_congestion_control<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa\uff1anet.ipv4.tcp_available_congestion_control = reno cubic bbr<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo sysctl net.ipv4.tcp_congestion_control<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa\uff1anet.ipv4.tcp_congestion_control = bbr<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo lsmod | grep bbr<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa\uff1atcp_bbr 20480 5<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2>\u5176\u4ed6\u7248\u672c\u4e00\u952e\u5b89\u88c5\uff08\u8bf7\u52ff\u5728\u751f\u4ea7\u73af\u5883\u5b89\u88c5\uff09<\/h2>\n\n\n\n<p>\u6765\u6e90<a rel=\"noreferrer noopener\" href=\"https:\/\/www.hostloc.com\/thread-639936-1-1.html\" target=\"_blank\">https:\/\/www.hostloc.com\/thread-639936-1-1.html<\/a><\/p>\n\n\n\n<p>\u4e0d\u5378\u8f7d\u5185\u6838<br><code>wget -N --no-check-certificate \"https:\/\/github.000060000.xyz\/tcpx.sh\" &amp;&amp; chmod +x tcpx.sh &amp;&amp; .\/tcpx.sh<\/code><br>\u6216<br><code>wget -N \"https:\/\/github.000060000.xyz\/tcpx.sh\" &amp;&amp; chmod +x tcpx.sh &amp;&amp; .\/tcpx.sh<\/code><br>\u5378\u8f7d\u5185\u6838<br><code>wget -N --no-check-certificate \"https:\/\/github.000060000.xyz\/tcp.sh\" &amp;&amp; chmod +x tcp.sh &amp;&amp; .\/tcp.sh<\/code><br>\u6216<br><code>wget -N \"https:\/\/github.000060000.xyz\/tcp.sh\" &amp;&amp; chmod +x tcp.sh &amp;&amp; .\/tcp.sh<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/vip1.loli.net\/2020\/02\/07\/XB1t962dRsgVOvU.png\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>1.\u786e\u8ba4\u5f53\u524d\u7cfb\u7edf\u7248\u672c 2.\u786e\u8ba4\u5347\u7ea7\u5185\u6838\u7248\u672c \u4ece Ubuntu Ke&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/hk.traekle.com\/index.php?rest_route=\/wp\/v2\/posts\/21"}],"collection":[{"href":"https:\/\/hk.traekle.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hk.traekle.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hk.traekle.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hk.traekle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":5,"href":"https:\/\/hk.traekle.com\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":72,"href":"https:\/\/hk.traekle.com\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions\/72"}],"wp:attachment":[{"href":"https:\/\/hk.traekle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hk.traekle.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hk.traekle.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}