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

Scalable

  [复制链接]

46

主题

3653

回帖

7532

积分

论坛元老

积分
7532
发表于 2017-7-6 17:41:28 | 显示全部楼层

Yankee 发表于 2017-7-10 01:29

天灭centos,debian保平安

modprobe也可以传参

我不管,我要centos 不过。。。懒得编绎测试啊。。。。求打发,求打包
回复

使用道具 举报

4

主题

46

回帖

120

积分

注册会员

积分
120
发表于 2017-7-6 17:42:35 | 显示全部楼层

okhost 发表于 2017-7-10 18:53

我不管,我要centos 不过。。。懒得编绎测试啊。。。。求打发,求打包


其实我比你更懒

回复

使用道具 举报

9

主题

295

回帖

621

积分

高级会员

积分
621
 楼主| 发表于 2017-7-6 17:48:36 | 显示全部楼层

okhost 发表于 2017-7-10 18:53

我不管,我要centos 不过。。。懒得编绎测试啊。。。。求打发,求打包

okhost  好久不见,啥时候再买一波小鸡鸡造福我们

回复

使用道具 举报

0

主题

1

回帖

4

积分

新手上路

积分
4
发表于 2017-7-6 17:55:22 | 显示全部楼层
本帖最后由 Yankee 于 2017-7-11 23:58 编辑

新增overload模式。

此模式适用于丢包较严重的情况,同时将造成有效数据比的下降与额外的流量开销。

buff已汇入基本代码,无需手动开启
回复

使用道具 举报

11

主题

206

回帖

469

积分

中级会员

积分
469
发表于 2017-7-6 21:33:41 | 显示全部楼层
[ol]
  • sysctl net.ipv4.tcp_congestion_control=$MOD
  • sysctl: setting key "net.ipv4.tcp_congestion_control": No such file or directory[/ol]复制代码

    好奇怪啊,为什么加载不了……insmod显示成功了
  • 回复

    使用道具 举报

    9

    主题

    295

    回帖

    621

    积分

    高级会员

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

    prigogin 发表于 2017-7-10 22:51

    好奇怪啊,为什么加载不了……insmod显示成功了

    试下这个命令:

    [ol]
  • sudo echo "$MOD" > /proc/sys/net/ipv4/tcp_congestion_control[/ol]复制代码

    另外openvz不能直接用sysctl
  • 回复

    使用道具 举报

    29

    主题

    485

    回帖

    1075

    积分

    金牌会员

    积分
    1075
    发表于 2017-7-7 02:04:20 | 显示全部楼层
    本帖最后由 DvilAwn 于 2017-7-24 14:56 编辑
    [ol]
  • root@localhost:~# export MOD=scalable_ea
  • root@localhost:~# echo "obj-m:=tcp_$MOD.o" > Makefile
  • root@localhost:~# make -C /lib/modules/$(uname -r)/build M=`pwd` modules CC=/usr/bin/gcc-4.9 &&
  • > insmod tcp_$MOD.ko max_tolerance=true min_target=22 &&
  • > sysctl net.ipv4.tcp_congestion_control=$MOD
  • make: Entering directory '/usr/src/linux-headers-4.12.3-041203-generic'
  •   CC [M]  /root/tcp_scalable_ea.o
  •   Building modules, stage 2.
  •   MODPOST 1 modules
  •   CC      /root/tcp_scalable_ea.mod.o
  •   LD [M]  /root/tcp_scalable_ea.ko
  • make: Leaving directory '/usr/src/linux-headers-4.12.3-041203-generic'
  • insmod: ERROR: could not insert module tcp_scalable_ea.ko: Invalid parameters
  • [/ol]复制代码
    不知道发生了什么...
  • 回复

    使用道具 举报

    9

    主题

    295

    回帖

    621

    积分

    高级会员

    积分
    621
     楼主| 发表于 2017-7-7 16:18:01 | 显示全部楼层
    [ol]
  • root@n7then-VPS:~# make -C /lib/modules/$(uname -r)/build M=`pwd` modules CC=/usr/bin/gcc-4.9
  • make: *** /lib/modules/4.12.3-041203-generic/build: No such file or directory.  Stop.
  • [/ol]复制代码
    ... 狗血..
  • 回复

    使用道具 举报

    2

    主题

    15

    回帖

    40

    积分

    新手上路

    积分
    40
    发表于 2017-7-5 17:46:00 | 显示全部楼层

    DvilAwn 发表于 2017-7-24 14:54

    ... 狗血..


    请先行安装linux-headers,再执行编译步骤。 本帖最后由 DvilAwn 于 2017-7-24 16:20 编辑

    Yankee 发表于 2017-7-24 16:09

    请先行安装linux-headers,再执行编译步骤。


    安装了 linux-headers-all 还需要其他的吗?


      linux-headers-4.12.3-041203_4.12.3-041203.201707210343_all.deb
      linux-headers-4.12.3-041203-generic_4.12.3-041203.201707210343_amd64.deb
      linux-headers-4.12.3-041203-lowlatency_4.12.3-041203.201707210343_amd64.deb


    有这个三个,我装了第一个.
    debian8.0
    回复

    使用道具 举报

    9

    主题

    295

    回帖

    621

    积分

    高级会员

    积分
    621
     楼主| 发表于 2017-7-7 16:28:21 | 显示全部楼层
    多谢..已经oK = =~ , thanks 给大佬添麻烦了.
    回复

    使用道具 举报

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

    本版积分规则

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

    GMT+8, 2025-2-12 08:41 , Processed in 0.021074 second(s), 3 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2024 Discuz! Team.

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