Arch Linux开启BBR2(免编译内核)
本文最后更新于 491 天前,其中的信息可能已经有所发展或是发生改变。

查看内核是否存在BBR

modinfo tcp_bbr

如果存在将显示

filename:       /lib/modules/6.0.8-zen1-1-zen/kernel/net/ipv4/tcp_bbr.ko.zst
description:    TCP BBR (Bottleneck Bandwidth and RTT)
license:        Dual BSD/GPL
author:         Soheil Hassas Yeganeh <[email protected]>
author:         Yuchung Cheng <[email protected]>
author:         Neal Cardwell <[email protected]>
author:         Van Jacobson <[email protected]>
srcversion:     45C28CF3289CB679DC19084
depends:        
retpoline:      Y
intree:         Y
name:           tcp_bbr
vermagic:       6.0.8-zen1-1-zen SMP preempt mod_unload 
sig_id:         PKCS#7
signer:         Build time autogenerated kernel key
sig_key:        70:FD:43:4C:DE:2D:51:07:DC:E1:1B:8C:FB:47:CF:2C:65:0E:68:B0
sig_hashalgo:   sha512
signature:      30:66:02:31:00:D9:C6:9B:BA:C3:78:F2:8C:53:C4:98:61:8B:6D:C6:
                19:72:02:C2:3F:9E:50:49:85:21:8C:40:E8:C0:02:A9:2D:56:4C:81:
                B2:C8:30:F2:1F:7F:B9:CB:93:CD:C7:F3:EC:02:31:00:B8:44:C9:38:
                72:2E:E5:8C:FB:F1:80:FB:84:DA:91:62:11:70:4B:66:A2:45:79:36:
                3B:29:0A:90:01:A1:96:0F:39:ED:D6:38:7D:2C:27:07:BD:41:34:90:
                2E:7D:34:F8

有类似这样的提示就可以直接开启

开启BBR模块

sudo modprobe tcp_bbr

开启自动加载

echo "tcp_bbr" > /etc/modules-load.d/80-bbr.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.d/80-bbr.conf
echo "net.core.default_qdisc=fq" >> /etc/sysctl.d/80-bbr.conf
sysctl -p /etc/sysctl.d/80-bbr.conf

检查是否启动

sysctl net.ipv4.tcp_congestion_control

返回内容应为

net.ipv4.tcp_congestion_control = bbr2

评论

  1. Mars160
    Android Chrome
    1 年前
    2023-4-04 1:26:02

    这是开启bbr还是bbr2啊

    • 博主
      Mars160
      Android Chrome
      1 年前
      2023-4-04 3:29:49

      我内核是有bbr2的 其他的话应该还是bbr

发送评论 编辑评论


|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇