内外网同时访问阿里rds数据库
梅林固件设置虚拟内存

centos7开启bbr加速黑科技

妙音 posted @ 2018年11月23日 23:29 in network with tags bbr vps , 2754 阅读

BBR是来自Google的黑科技,通过优化和控制TCP的拥塞,充分利用带宽并降低延迟,起到神奇的加速效果。


测试环境

centos7.5
加速效果,没有那么跨张,但是下载从50K加速到400K

 

下载更换内核
 

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml -y



查看内核是否安装成功
 

rpm -qa | grep kernel



更新 grub 系统引导文件并重启
 

egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'
grub2-set-default 0  # default 0 表示第一个内核设置为默认运行, 选择最新内核就对了
reboot



开机后看看是不是内核 >= 4.9
 

uname -r



执行 lsmod | grep bbr,如果结果中没有 tcp_bbr 的话就先执行
 

modprobe tcp_bbr
echo "tcp_bbr" | sudo tee --append /etc/modules-load.d/modules.conf



配置内和bbr
 

echo "net.core.default_qdisc=fq" | sudo tee --append /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee --append /etc/sysctl.conf
sysctl -p



查看内和是否启动bbr
 

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



如果结果都有 bbr, 则证明你的内核已开启 bbr

查看tcp_bbr是否启动
 

执行 lsmod | grep bbr, 看到有 tcp_bbr 模块即说明 bbr 已启动


参考资料


https://github.com/iMeiji/shadowsocks_install/wiki/%E5%BC%80%E5%90%AFTCP-BBR%E6%8B%A5%E5%A1%9E%E6%8E%A7%E5%88%B6%E7%AE%97%E6%B3%95

 

Avatar_small
dark web/deep web/d 说:
2022年8月09日 15:46

Link farms mainly gather links from web directories which are not related to the content of the website. This is a common problem on most farms.  deep web

Avatar_small
dark web/deep web/d 说:
2022年8月09日 16:55

There are several ways to use these dark web websites to check out anyone using credit cards. The first way is to look up the social networking accounts of the person.  dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月09日 22:33

The first thing you should do is research the internet about the company to see what other users have said about their experience using their services.  dark web

Avatar_small
dark web/deep web/d 说:
2022年8月09日 23:19

Well that's what you want, but it's not going to happen. If you want to be successful with affiliate marketing you need a website. work from home jobs

Avatar_small
rugnetarzu 说:
2022年8月20日 17:11

Thanks so much regarding giving me personally an update on this subject matter on your site. Please know that if a completely new post becomes available or if perhaps any improvements occur on the current submission, I would consider reading a lot more and learning how to make good use of those techniques you discuss. Thanks for your time and consideration of other men and women by making this website available. 룸카지노

Avatar_small
meidir 说:
2022年8月23日 18:39

Very useful content material. I’ve discovered your site by using Google and I am actually glad in regards to the information you provide inside your blog posts. By the way your blogs layout is slightly scratched on the Kmelon browser. Can be seriously good if you’re may correct that. Anyway maintain in the great work! 바카라사이트

Avatar_small
meidir 说:
2022年8月26日 20:07

very nice publish, i certainly love this web site, carry on it 온라인바카라


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter