Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
bobopu
V2EX  ›  Linux

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

  •  
  •   bobopu · Apr 11, 2015 · 7441 views
    This topic created in 4075 days ago, the information mentioned may be changed or developed.
    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 replies    2015-04-11 14:43:19 +08:00
    bobopu
        1
    bobopu  
    OP
       Apr 11, 2015
    问题似乎已解决,用ethtool -K eth0 tx off
    bobopu
        2
    bobopu  
    OP
       Apr 11, 2015
    这东西本来是网卡硬件芯片替cpu分担一部分传输处理负荷用的,但是在vps中由于网卡是虚拟的,数十台虚拟机用一个物理网卡,通常的情况是网卡本身就忙到要死,cpu倒挺空闲,这时再用这个无疑雪上加霜,让cpu来承担这个工作试下能否改善一下网络性能。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   828 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:20 · PVG 05:20 · LAX 14:20 · JFK 17:20
    ♥ Do have faith in what you're doing.