Giter VIP home page Giter VIP logo

Comments (10)

bao3 avatar bao3 commented on July 17, 2024 4

请依照你的系统不同,执行不同的指令,我是 Arch Linux @ Vultr :

pacman -Sy ethtool
ethtool -K ens3 tx off
ethtool -K ens3 rx off
ethtool -K ens3 gso off
ethtool -K ens3 gro off

然后退出当前的登录终端(不是重启)重新建立 ssh 连线,再次尝试 net-speeder ens3 “ip” 。

我是用这个方式解决了。

在这个系统中我的 Vultr 的网卡是 ens3
出现这个的原因就是 net-speeder 发送了一个巨大的数据包而不切分,超过了 MTU ,这个解包打包的工作是交给网卡来完成,所以我们关闭网卡的这个功能,改让系统来做这个工作,坏处就是增加了 CPU 负载
好处就是。。。我们可以用 net-speeder 了,而且真的有改观。

#15 两个属于同一个问题
😬

from net-speeder.

syaofox avatar syaofox commented on July 17, 2024

vultr一切正常

from net-speeder.

BadaDu avatar BadaDu commented on July 17, 2024

vultr上一直报:err msg:[libnet_write_raw_ipv4(): -1 bytes written (Message too long),系统debian 7 x64求大神帮忙 @krstina @syaofox @snooda

from net-speeder.

mydansun avatar mydansun commented on July 17, 2024

@bao3

root@xxxxxx:# ethtool -K eth0 tx off
Actual changes:
tx-checksumming: off
tx-checksum-ip-generic: 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]
root@xxxxxx:
# ethtool -K eth0 gso off
root@xxxxxx:# ethtool -K eth0 gro off
root@xxxxxx:
# ethtool -K eth0 rx off
Cannot change rx-checksumming
Could not change any device features

请问这是什么问题啊。。谢谢!!我Ubuntu 15.10

另外,我运行了这些命令之后,运行就一直卡在init libnet,但是后面不会出现错误信息了,这是正常的么?

from net-speeder.

bao3 avatar bao3 commented on July 17, 2024

@mydansun ....那不是卡在 init libnet ,程序只能执行到这里,也就是说,你这个问题已经解决了。

from net-speeder.

mydansun avatar mydansun commented on July 17, 2024

@bao3 但是我用linux的ping并没有看到重复包的标志啊

from net-speeder.

bao3 avatar bao3 commented on July 17, 2024

@mydansun 与此案无关。请检查其他问题。

from net-speeder.

cha1n avatar cha1n commented on July 17, 2024

@bao3

一样arch@vultr

pacman -Sy ethtool
ethtool -K ens3 tx off
ethtool -K ens3 rx off
ethtool -K ens3 gso off
ethtool -K ens3 gro off

之后还是有提示...

from net-speeder.

yyuurrii34 avatar yyuurrii34 commented on July 17, 2024

我想到一个最简单的解决办法,这种情况你把mtu阈值改大点不就完了,具体改多大,看你报错的文件大小而定。
ifconfig 网卡名 mtu 多大数 up

from net-speeder.

snooda avatar snooda commented on July 17, 2024

关闭tso即可

from net-speeder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.