为什么都用4.9内核了 还不开启可选的bbr算法
Tofloor
poster avatar
ih******op@vip.qq.com
deepin
2017-09-27 21:05
Author
  1. sudo sysctl net.ipv4.tcp_available_congestion_control
  2. net.ipv4.tcp_available_congestion_control = cubic reno
Copy the Code

  1. uname -a
  2. Linux ihipop-PC-Li 4.9.0-deepin11-amd64 #1 SMP PREEMPT Deepin 4.9.40-2 (2017-08-12) x86_64 GNU/Linux
Copy the Code


Reply Favorite View the author
All Replies
avatar
justforlxz
deepin
2017-09-27 21:21
#1
  1. echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
Copy the Code
  1. $ cat /etc/sysctl.d/10-bbr.conf
  2. net.core.default_qdisc=fq
  3. net.ipv4.tcp_congestion_control=bbr
Copy the Code


重启一下再看看?
Reply View the author
avatar
MeowSprite
deepin
2017-09-27 21:30
#2
  1. sudo vim /etc/sysctl.conf
Copy the Code

在末尾添加两行
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
再执行下面的代码,重新加载配置就好了
  1. sudo sysctl --system
Copy the Code

但是为什么要开启呢?这个对于普通用户并没什么作用的。
Reply View the author
Comments
ihipop
2017-09-28 04:52
你没加载模块
ihipop
2017-09-28 04:51
你没加载模块
avatar
134******40
deepin
2017-09-27 21:34
#3
这个算法有什么用
Reply View the author
avatar
iminto
deepin
2017-09-27 23:03
#4
deepin做的优化还不够啊,我之前反馈过深度终端ssh默认配置导致登录服务器巨慢的原因,就是默认配置没有优化造成的
Reply View the author
avatar
justforlxz
deepin
2017-09-28 01:24
#5
本帖最后由 kirigaya 于 2017-9-27 17:27 编辑
https://bbs.deepin.org/post/146073
deepin做的优化还不够啊,我之前反馈过深度终端ssh默认配置导致登录服务器巨慢的原因,就是默认配置没有优 ...

因人而异的配置。。怎么默认给你优化,肯定自己装好以后自己改啊。不然给你瞎××优化一波,你到时候还要怪系统瞎××优化。
Reply View the author
avatar
ih******op@vip.qq.com
deepin
2017-09-28 04:51
#6
https://bbs.deepin.org/post/146073
重启一下再看看?

我知道 是因为bbr没加载模块 加载就好了 但是一般4.9内核上都默认加载了的
Reply View the author
avatar
justforlxz
deepin
2017-09-28 17:17
#7
https://bbs.deepin.org/post/146073
我知道 是因为bbr没加载模块 加载就好了 但是一般4.9内核上都默认加载了的 ...

没有的啊,默认不开启的。
Reply View the author
avatar
ih******op@vip.qq.com
deepin
2017-09-28 17:21
#8
https://bbs.deepin.org/post/146073
没有的啊,默认不开启的。

不开启没错。。
我的VPS上换的几个内核 4.9的 都是加载不开启。。。
Reply View the author