V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
bobopu
V2EX  ›  Linux

关闭 TCP checksum offload 报错,请问该怎么办?

  •  
  •   bobopu · 2015-04-11 14:28:18 +08:00 · 6732 次点击
    这是一个创建于 3309 天前的主题,其中的信息可能已经有所发展或是发生改变。
    centos,需要关闭网卡的rx和tx,先ethtool -k eth0看了下。
    rx-checksumming: on
    tx-checksumming: on
    scatter-gather: on
    tcp-segmentation-offload: on
    udp-fragmentation-offload: on
    generic-segmentation-offload: on
    generic-receive-offload: off
    large-receive-offload: off
    rx和tx都是开启的,现在要关闭
    ethtool -K eth0 rx off tx off tso off gso off
    报错Cannot set device rx csum settings: Operation not supported该如何正确关闭呢?
    2 条回复    2015-04-11 14:43:19 +08:00
    bobopu
        1
    bobopu  
    OP
       2015-04-11 14:36:17 +08:00
    问题似乎已解决,用ethtool -K eth0 tx off
    bobopu
        2
    bobopu  
    OP
       2015-04-11 14:43:19 +08:00
    这东西本来是网卡硬件芯片替cpu分担一部分传输处理负荷用的,但是在vps中由于网卡是虚拟的,数十台虚拟机用一个物理网卡,通常的情况是网卡本身就忙到要死,cpu倒挺空闲,这时再用这个无疑雪上加霜,让cpu来承担这个工作试下能否改善一下网络性能。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1027 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 18:07 · PVG 02:07 · LAX 11:07 · JFK 14:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.