Debian/Ubuntu 升级xanmod Linux内核,开启BBRv3
本文最后更新于 225 天前,其中的信息可能已经有所发展或是发生改变。

检测脚本

cat >> /tmp/check-xmod.sh << EOF
#!/usr/bin/awk -f

BEGIN {
    while (!/flags/) if (getline < "/proc/cpuinfo" != 1) exit 1
    if (/lm/&&/cmov/&&/cx8/&&/fpu/&&/fxsr/&&/mmx/&&/syscall/&&/sse2/) level = 1
    if (level == 1 && /cx16/&&/lahf/&&/popcnt/&&/sse4_1/&&/sse4_2/&&/ssse3/) level = 2
    if (level == 2 && /avx/&&/avx2/&&/bmi1/&&/bmi2/&&/f16c/&&/fma/&&/abm/&&/movbe/&&/xsave/) level = 3
    if (level == 3 && /avx512f/&&/avx512bw/&&/avx512cd/&&/avx512dq/&&/avx512vl/) level = 4
    if (level > 0) { print "CPU supports x86-64-v" level; exit level + 1 }
    exit 1
}
EOF
awk -f /tmp/check-xmod.sh 

file

本文案例为 x86-64-v3

xanmod官方下载地址:

https://sourceforge.net/projects/xanmod/files/releases/lts/

内核安装

下载仓库

  • 如果IP不干净会下载不下来archive.key,就会报错
wget -qO - https://dl.xanmod.org/archive.key | sudo gpg --dearmor -o /usr/share/keyrings/xanmod-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-release.list
sudo apt update

查询在线版本

apt-cache search linux-xanmod

file

安装指定版本

sudo apt-get install linux-xanmod-edge-x64v2
sudo apt-get install linux-xanmod-edge-x64v3
sudo apt-get install linux-xanmod-edge-x64v4
sudo apt-get install linux-xanmod-lts-x64v1
sudo apt-get install linux-xanmod-lts-x64v2
sudo apt-get install linux-xanmod-lts-x64v3
sudo apt-get install linux-xanmod-lts-x64v4
sudo apt-get install linux-xanmod-rt-x64v2
sudo apt-get install linux-xanmod-rt-x64v3
sudo apt-get install linux-xanmod-rt-x64v4
sudo apt-get install linux-xanmod-x64v1
sudo apt-get install linux-xanmod-x64v2
sudo apt-get install linux-xanmod-x64v3
sudo apt-get install linux-xanmod-x64v4

查询已安装

dpkg --list | grep -i linux-image

检查BBRv3

uname -r
6.1.54-x64v4-xanmod1

开启BBRv3

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p

检查BBRv3

sysctl net.ipv4.tcp_available_congestion_control 
sysctl net.ipv4.tcp_congestion_control

result

sysctl net.ipv4.tcp_available_congestion_control 
net.ipv4.tcp_available_congestion_control = reno bbr
sysctl net.ipv4.tcp_congestion_control
net.ipv4.tcp_congestion_control = bbr

结语

  • AWS light 原版系统安装
  • 请安装前务必备份系统
暂无评论

发送评论 编辑评论


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