Google前几天发布了一个BBRv2的测试版本,我闲来无事把它编译出来了,然后随便撸了个一键安装脚本,有想尝鲜的可以试试。
提醒:给Linux换内核是有一定风险的,生产机器请勿随意换内核。
使用:
git clone https://github.com/xiya233/bbr2.git cd bbr2 chmod +x bbr2.sh ./bbr2.sh
昨晚我随便测试了下,好像BBR2带了个什么ECN啥的,开了感觉比BBRv1快一些,也不知道是不是心理作用:
echo 1 > /sys/module/tcp_bbr2/parameters/ecn_enable
溜了溜了。。
lala,我有个问题,就是阿里云的oss支持同一地域服务器访问不计流量,我想有没有什么办法通过我的服务器来对oss做个转接?
抱歉,我没有用过阿里云的对象存储,不是很了解这块。
这玩意我会,最简单的用https://github.com/cloudreve/Cloudreve这个可以直接挂载。
ubuntu 16.04 安装重启后会自动消失,也没提示你的系统不支持
是安装内核了重启之后内核没更换还是压根没安装上,我刚在16.04上测试了一下发现这个版本的bash不支持apt -y install *这种命令,你可以自己cd到debian的目录然后dpkg -i安装试试看。
用上了,体验还不错
拉拉越来越短了
请问楼主,杜班8、9、10都出现E: Couldn’t find any package的错误。dpkg -i也不行。
Cloning into ‘bbr2’…
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 28 (delta 2), reused 0 (delta 0), pack-reused 22
Unpacking objects: 100% (28/28), done.
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package Initial commit
E: Unable to locate package linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
E: Couldn’t find any package by glob ‘linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
E: Couldn’t find any package by regex ‘linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
E: Unable to locate package linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
E: Couldn’t find any package by glob ‘linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
E: Couldn’t find any package by regex ‘linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
sysctl: setting key “net.ipv4.tcp_congestion_control”: No such file or directory
net.ipv4.tcp_congestion_control = bbr2
net.ipv4.tcp_ecn = 1
内核安装完成,重启生效,是否现在重启?[Y/n] :y
正在重启
我这个脚本只在CentOS7和Debian10上试过,写的也很粗糙,不能用的话,那手动安装试试吧,也就几条命令的事情:
git clone https://github.com/xiya233/bbr2.git
cd bbr2/debian
dpkg -i linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
dpkg -i linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
echo “net.ipv4.tcp_congestion_control = bbr2” >> /etc/sysctl.conf
echo “net.ipv4.tcp_ecn = 1” >> /etc/sysctl.conf
sysctl -p
reboot
echo 1 > /sys/module/tcp_bbr2/parameters/ecn_enable
v2 alpha和bbrplus哪个更好呢?
没测试过,你可以自己装了试试看。但如果从长远方向去看,我觉得v2会更好。
我把SELINUX关了然后换了内核无法启动了,然后开机速度太快vnc连上已经加载了23333
快拿出你那强壮的右手光速连接VNC233
我是强壮的左手2333
你好一定要Ubuntu 19.04嗎 謝謝
CentOS7/Debian8/Debian9/Ubuntu16.04+都可以啊。。
好吧謝啦 我去研究研究
请输入数字(1/2/3) 1:安装BBRv2 2:开启ECN 3:我是咸鱼我退出:1
Hit:1 http://mirror.init7.net/ubuntu disco InRelease
Reading package lists… Done
Building dependency tree
Reading state information… Done
All packages are up to date.
Reading package lists… Done
Building dependency tree
Reading state information… Done
git is already the newest version (1:2.20.1-2ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cloning into ‘bbr2’…
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 28 (delta 2), reused 0 (delta 0), pack-reused 22
Unpacking objects: 100% (28/28), done.
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package Initial commit
E: Unable to locate package linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
E: Couldn’t find any package by glob ‘linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
E: Couldn’t find any package by regex ‘linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
E: Unable to locate package linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
E: Couldn’t find any package by glob ‘linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
E: Couldn’t find any package by regex ‘linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb’
安装遇到错误
用这个命令装试试,应该不是错误而是根本没装。。
dpkg -i linux-image-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
dpkg -i linux-headers-5.2.0-rc3+_5.2.0-rc3+-1_amd64.deb
能否编译一个5.3内核的? 我使用ubuntu 19.0.4
比bbr慢好多
最后一步的开启ECN的时候,显示-bash: /sys/module/tcp_bbr2/parameters/ecn_enable: No such file or directory
请问大佬如何解决呢?
uname -a看看内核换成功了吗,没成功的话才会报这个错误。
你好,看了下你的一键脚本里面似乎没有加net.core.default_qdisc = fq
bbr2是不需要这个了吗?
不需要,你如果不确定的话,可以执行:lsmod | grep bbr2验证。
怎么卸载呢,用了速度反而变慢了,后续版本都不支持cent的了 哎
grub把启动项改为之前的内核然后重启就行了。后续版本?centos8的内核默认是4.19可以直接开bbr。
How can we know the exact version of the BBRv2 code used in this? What is the hash commit of the BBRv2 in this installation? Thanks