Yankee
发表于 2017-7-5 23:06:32
Yankee 发表于 2017-7-9 22:15
4.9+
make -C /lib/modules/$(uname -r)/build M=`pwd` modules CC=/usr/bin/gcc-4.9 安装失败了,看来还是得等一键包啊
020.gif
可乐呀 发表于 2017-7-9 22:42
make -C /lib/modules/$(uname -r)/build M=`pwd` modules CC=/usr/bin/gcc-4.9 安装失败了,看来还是得 ...
错误日志呢?
不是没装linux-headers就是没装gcc-4.9
sky170
发表于 2017-7-5 23:03:00
centos 不能用?
内核模块还可以带参数的哇,嘿
insmod tcp_$MOD.ko min_target=1024 max_tolerance=1
可乐呀
发表于 2017-7-5 23:25:51
okhost 发表于 2017-7-10 01:17
centos 不能用?
内核模块还可以带参数的哇,嘿
insmod tcp_$MOD.ko min_target=1024 max_tolerance=1 ...
天灭centos,debian保平安
010.gif
modprobe也可以传参
Yankee
发表于 2017-7-6 06:56:04
Yankee 发表于 2017-7-10 00:53
错误日志呢?
不是没装linux-headers就是没装gcc-4.9
好像确实gcc-4.9安装的有问题
可乐呀Yankee
发表于 2017-7-6 07:15:06
没有win注定流行不起来
okhost
发表于 2017-7-6 08:31:58
@loveminds
Linux-headers is required to get compilation done.
http://kernel.ubuntu.com/~kernel-ppa/mainline
Yankee
发表于 2017-7-6 08:50:53
谁搞搞,对比一下
可乐呀
发表于 2017-7-6 09:08:28
[*]make: Entering directory '/usr/src/linux-headers-4.12.0-041200-generic'
[*]CC /root/tcp/tcp_scalable-re.o
[*]/root/tcp/tcp_scalable-re.c: In function ‘scalable_re_loss_concealment’:
[*]/root/tcp/tcp_scalable-re.c:283:5: error: ‘struct tcp_sock’ has no member named ‘do_early_retrans’
[*] tp->do_early_retrans = 1;
[*] ^
[*]复制代码
今晚我是你的
发表于 2017-7-6 09:30:04
ccczer 发表于 2017-7-10 11:57
出错是因为4.12+的kernel停止了对Early Retransmit的支持
在这行代码前加两个斜杠即可通过编译
//tp->do_early_retrans = 1;
Yankee
发表于 2017-7-6 09:30:39
大概会多耗1倍的流量 本帖最后由 Yankee 于 2017-7-10 16:56 编辑
ccczer 发表于 2017-7-10 16:38
大概会多耗1倍的流量
所谓的单边加速其实就是以流量换速度
多耗流量是肯定的,但绝对没有1倍
kcptun不瞎折腾的话也没有1倍的
更看重有效数据比的话可配合以下参数使用,对速度的影响依次递增:
[*](i) use_tolerance=1 max_tolerance=0
[*]
[*](ii) use_tolerance=0 max_tolerance=0复制代码
页:
1
2
3
4
5
6
7
[8]
9
10