找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
楼主: Yankee

Scalable

  [复制链接]

9

主题

295

回帖

621

积分

高级会员

积分
621
 楼主| 发表于 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 安装失败了,看来还是得等一键包啊


可乐呀 发表于 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
回复

使用道具 举报

6

主题

55

回帖

144

积分

注册会员

积分
144
发表于 2017-7-5 23:03:00 | 显示全部楼层
centos 不能用?
内核模块还可以带参数的哇,嘿
insmod tcp_$MOD.ko min_target=1024 max_tolerance=1
回复

使用道具 举报

38

主题

572

回帖

1274

积分

金牌会员

积分
1274
发表于 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保平安



modprobe也可以传参
回复

使用道具 举报

9

主题

295

回帖

621

积分

高级会员

积分
621
 楼主| 发表于 2017-7-6 06:56:04 | 显示全部楼层

Yankee 发表于 2017-7-10 00:53

错误日志呢?

不是没装linux-headers就是没装gcc-4.9

好像确实gcc-4.9安装的有问题
回复

使用道具 举报

0

主题

1

回帖

4

积分

新手上路

积分
4
发表于 2017-7-6 07:15:06 | 显示全部楼层
没有win注定流行不起来
回复

使用道具 举报

11

主题

206

回帖

469

积分

中级会员

积分
469
发表于 2017-7-6 08:31:58 | 显示全部楼层
@loveminds

Linux-headers is required to get compilation done.

http://kernel.ubuntu.com/~kernel-ppa/mainline
回复

使用道具 举报

9

主题

295

回帖

621

积分

高级会员

积分
621
 楼主| 发表于 2017-7-6 08:50:53 | 显示全部楼层
谁搞搞,对比一下
回复

使用道具 举报

38

主题

572

回帖

1274

积分

金牌会员

积分
1274
发表于 2017-7-6 09:08:28 | 显示全部楼层
[ol]
  • make: Entering directory '/usr/src/linux-headers-4.12.0-041200-generic'
  •   CC [M]  /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;
  •      ^
  • [/ol]复制代码
  • 回复

    使用道具 举报

    345

    主题

    3105

    回帖

    7267

    积分

    论坛元老

    积分
    7267
    发表于 2017-7-6 09:30:04 | 显示全部楼层

    ccczer 发表于 2017-7-10 11:57


    出错是因为4.12+的kernel停止了对Early Retransmit的支持

    在这行代码前加两个斜杠即可通过编译

    //tp->do_early_retrans = 1;

    回复

    使用道具 举报

    9

    主题

    295

    回帖

    621

    积分

    高级会员

    积分
    621
     楼主| 发表于 2017-7-6 09:30:39 | 显示全部楼层
    大概会多耗1倍的流量 本帖最后由 Yankee 于 2017-7-10 16:56 编辑

    ccczer 发表于 2017-7-10 16:38

    大概会多耗1倍的流量


    所谓的单边加速其实就是以流量换速度

    多耗流量是肯定的,但绝对没有1倍

    kcptun不瞎折腾的话也没有1倍的

    更看重有效数据比的话可配合以下参数使用,对速度的影响依次递增:
    [ol]
  • (i) use_tolerance=1 max_tolerance=0
  • (ii) use_tolerance=0 max_tolerance=0[/ol]复制代码
  • 回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2025-2-12 08:50 , Processed in 0.022861 second(s), 6 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表