Hacker News new | ask | show | jobs
by Firefishy 3501 days ago
Seeing random data corruption over network, try: /sbin/ethtool -K ethX gso off tso off sg off gro off

udev rule something like: SUBSYSTEM=="net", ACTION=="add", ATTRS{vendor}=="0x8086", ATTRS{device}=="0x10c9", ATTRS{subsystem_vendor}=="0x103c", ATTRS{subsystem_device}=="0x323f", RUN+="/sbin/ethtool -K $name gso off tso off sg off gro off"

1 comments

What does this do and what are the downsides?
It disables some of the network card's hardware offloading. Some have occasional faults, as low as every 4TB of data. The corrupt packets has valid TCP CRC. Commonly first spotted with an ssh error of "Corrupted MAC on input"

Example of an OpenStack vendor guide recommending turning the offloading off: http://clouddoc.stratus.com/1.5.1.0/en-us/Content/Help/P03_S...

Downside is you may have slightly higher CPU usage and/or slightly lower network throughput, I personally have not noticed a significant drop in performance.