全球主机交流论坛

标题: pr兄弟过来,锐速优化加速翻倍干货 [打印本页]

作者: 碧莲    时间: 2019-11-12 10:17
标题: pr兄弟过来,锐速优化加速翻倍干货
本帖最后由 碧莲 于 2019-11-11 14:41 编辑




先将系统dd为 debian 7
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 7 -v 64 -a -p 你的密码

下面修改配置优化!

1.增加系统文件描述符的最大限数
编辑文件 limits.conf
vi /etc/security/limits.conf
最后新增两行添加命令:

* soft nofile 51200
* hard nofile 51200

如发现limits.conf文件内容已经有,请修改为上。

编辑文件 profile

vi /etc/profile

最后新增一行添加命令:

ulimit -SHn 51200

修改后重启,检查是否生效命令:ulimit -n

2.调整内核参数
修改配置文件sysctl.conf

vi /etc/sysctl.conf

最后新增一行添加命令:

fs.file-max = 51200
net.core.rmem_max = 67108864
net.core.wmem_max = 67108864
net.core.rmem_default = 65536
net.core.wmem_default = 65536
net.core.netdev_max_backlog = 4096
net.core.somaxconn = 4096
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_rmem = 4096 87380 67108864
net.ipv4.tcp_wmem = 4096 65536 67108864
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_congestion_control = hybla

修改后执行命令:sysctl -p 使配置生效。

安装锐速
bash <(wget --no-check-certificate -qO- https://github.com/MoeClub/lotServer/raw/master/Install.sh) install

修改锐速配置 vi /appex/etc/config

acc="1"
advacc="1"
advinacc="1"
maxmode="1"
initialCwndWan="62"
l2wQLimit="1024 8192"
w2lQLimit="1024 8192"
shaperEnable="0"
smBurstMS="20"
engineNum="1"
shortRttMS="70"
修改完成,最后重启锐速!

使用方法:
启动命令 /appex/bin/lotServer.sh start
停止加速 /appex/bin/lotServer.sh stop
状态查询 /appex/bin/lotServer.sh status
重新启动 /appex/bin/lotServer.sh restart

作者: 碧莲    时间: 2019-11-12 10:35
本帖最后由 碧莲 于 2019-11-11 14:39 编辑

那些用bbr不好的,一定试试 锐速!
锐速不是默认安装就行了,还要修改参数针对当前机器网络环境优化的。
本文图2截图的speedtest 默认节点 测速差是因为这个是默认根据你的ip归属地而分配对应测试节点测试的,因为我的这ip广播地区未校正。
作者: 安之若素    时间: 2019-11-12 10:37
锐速不是默认安装就行了,还要修改参数针对当前机器网络环境优化的。

作者: mobisww    时间: 2019-11-12 10:37
提示: 作者被禁止或删除 内容自动屏蔽
作者: 财缘    时间: 2019-11-12 10:39
一番折腾,你会发现并无卵用
作者: hyllgf    时间: 2019-11-12 10:40
这个真的不错。。顶一个
作者: Yuang    时间: 2019-11-12 10:42
这个一定要试一试,感谢分享~
(锐速换内核老失败,希望这个不会。)
作者: leasr    时间: 2019-11-12 10:47
无论如何谢谢我的邻居碧莲
作者: dj801    时间: 2019-11-12 10:48
QN的CN2简直了...
作者: 碧莲    时间: 2019-11-12 10:49
leasr 发表于 2019-11-11 14:47
无论如何谢谢我的邻居碧莲

是4号鸡的邻居吗
作者: tdd    时间: 2019-11-12 10:55
感谢 收藏了 哈哈
作者: 冻猫    时间: 2019-11-12 10:58
锐速算啥干货。。只能用低版本系统低版本内核,今年6月之前的内核都有SACK漏洞。
作者: leasr    时间: 2019-11-12 11:05
碧莲 发表于 2019-11-12 10:49
是4号鸡的邻居吗

对呀,轻点艹04,网速太慢了
作者: lenend    时间: 2019-11-12 11:07
leasr 发表于 2019-11-12 11:05
对呀,轻点艹04,网速太慢了


(Nodename        STACK04)邻居你好,大家一起使劲干。
作者: yanaxiao    时间: 2019-11-12 11:10
感谢分享。
作者: fyang    时间: 2019-11-12 11:30
一番操作猛如虎,一看网速2500
作者: Backfire    时间: 2019-11-12 15:14
试试 再说
作者: AntiWaR    时间: 2019-11-12 15:18
还是没用 看第二张图到国内上传速度
作者: 焕123    时间: 2019-11-12 15:19
提示: 作者被禁止或删除 内容自动屏蔽
作者: yunlikanwu    时间: 2019-11-12 16:17
debian9能用你这个锐速代码吗
作者: k2775739    时间: 2019-11-12 16:20
碧莲 发表于 2019-11-12 10:49
是4号鸡的邻居吗

碧莲 你的win7企业版自动生成了4to6隧道
建议默认关闭,昨天跑程序是说长期断线,连到ipv6去了
作者: wxb    时间: 2019-11-12 16:30
同问答辩9行不行?
作者: 6fyC8r    时间: 2019-11-12 17:13
锐速内核是多少?
作者: dollaring    时间: 2019-11-12 17:21
搞个自动的吧,
作者: 碧莲    时间: 2019-11-12 17:30
k2775739 发表于 2019-11-11 20:20
碧莲 你的win7企业版自动生成了4to6隧道
建议默认关闭,昨天跑程序是说长期断线,连到ipv6去了 ...

你的机器有没有分配了ipv6?
作者: 碧莲    时间: 2019-11-12 17:32
wxb 发表于 2019-11-11 20:30
同问答辩9行不行?

可以
作者: k2775739    时间: 2019-11-12 17:44
碧莲 发表于 2019-11-12 17:30
你的机器有没有分配了ipv6?

win7上没看到,面板上看了下也没分配IPv6
作者: 碧莲    时间: 2019-11-12 19:43
k2775739 发表于 2019-11-11 21:44
win7上没看到,面板上看了下也没分配IPv6

这个要考虑到使用ipv6的用户,你自己手动关闭不也可以吗?
作者: imswing    时间: 2019-11-17 22:30
锐速这几个要打开吗?

Actual changes:
scatter-gather: off
        tx-scatter-gather: off
tcp-segmentation-offload: off
        tx-tcp-segmentation: off [requested on]
        tx-tcp-ecn-segmentation: off [requested on]
        tx-tcp6-segmentation: off [requested on]
udp-fragmentation-offload: off [requested on]
generic-segmentation-offload: off [requested on]
作者: 碧莲    时间: 2019-11-17 22:31
imswing 发表于 2019-11-17 02:30
锐速这几个要打开吗?

Actual changes:

不用管!
作者: 暗黑骑士    时间: 2019-11-17 22:45
我是5号鸡 你折腾了速度刈了没
作者: HSTC    时间: 2019-12-4 20:14
谢谢分享,电信亲测有效,比bbr plus 能快一些
作者: 暗黑骑士    时间: 2019-12-11 09:20
不知道效果咋样
作者: wagumaxida    时间: 2019-12-11 09:30
锐速我感觉打开网页总是有一刹那的卡顿 没有bbr润滑
作者: abcet    时间: 2019-12-11 09:38
马克一下,有时间试试,谢谢荣耀
作者: dollaring    时间: 2019-12-11 09:49
干活。。。。
作者: ggoo    时间: 2019-12-11 09:50
上海电信 被qos  怎么优化 都没用吧
作者: hiagfh    时间: 2019-12-11 09:51
用过你的pr测速,确实比别人猛
作者: 烟花三月    时间: 2019-12-14 09:44
奇怪,DD楼主的D7后,安装宝塔5.9,再安装nginx或apache都安装不上。。。。。。。。。。只能apt-get 。。。。。。。。。。。。。。。。。。
作者: 碧莲    时间: 2019-12-14 09:54
烟花三月 发表于 2019-12-13 13:44
奇怪,DD楼主的D7后,安装宝塔5.9,再安装nginx或apache都安装不上。。。。。。。。。。只能apt-get 。。。 ...

宝塔不能用debian,会有各种问题,如果坚持用宝塔,那就上centos,再按本文参数修改,效果一样。
作者: reidme    时间: 2019-12-14 10:08
晚高峰再来看效果吧
作者: 梦里寻她她他它    时间: 2019-12-14 10:22
谢谢老哥
作者: a8866051    时间: 2019-12-14 10:23
重启机器后锐速启动失败。。。
作者: 梦里寻她她他它    时间: 2019-12-14 11:52
其他服务器可以用这个么
作者: 碧莲    时间: 2019-12-14 11:55
梦里寻她她他它 发表于 2019-12-13 15:52
其他服务器可以用这个么

其他的网络环境不一样,会导致效果不好。
作者: meilinhost    时间: 2019-12-21 18:15
提示: 作者被禁止或删除 内容自动屏蔽
作者: stonesnake    时间: 2019-12-22 09:58
提示: 作者被禁止或删除 内容自动屏蔽
作者: odie8844    时间: 2019-12-22 10:16
我去提工单,远离楼猪




欢迎光临 全球主机交流论坛 (https://loc.888543.xyz/) Powered by Discuz! X3.4