Fixing the Dell's network hangs with ethtool and a BIOS update
The kernel log showed the e1000e hang. With offloads off and BIOS A34, the network held up.
Yesterday the Dell Proxmox host and its VM dropped off the network together. My guess was the Intel e1000e transmit hang. Today I tested it.
At 4:38 PM I unplugged the Dell’s Ethernet cable for 3 seconds and plugged it back in. The host and the VM came straight back. No reboot: the host showed 4 days of uptime and the VM 32 hours.
The kernel log had the signature:
e1000e 0000:00:19.0 nic0: Detected Hardware Unit Hang:e1000e 0000:00:19.0 nic0: NIC Link is Downe1000e 0000:00:19.0 nic0: NIC Link is Up 1000 Mbps Full DuplexSo the guess was right. The host never crashed. The card’s transmit queue locked up.
The fix, persisted in /etc/network/interfaces under nic0:
post-up ethtool -K nic0 tso off gso off gro off tx off rx off rxvlan off txvlan off || truepost-up ethtool --set-eee nic0 eee off || truepost-up ethtool -G nic0 rx 1024 tx 1024 || trueThat turns off the card’s offloads and Energy-Efficient Ethernet, and grows its ring buffers from 256 to 1024.
While I was at it, I audited all the firmware. The BIOS was A12 from 2016. I flashed A34, turned on AC power recovery, and turned on Hyper-Threading, so the box now has 24 logical CPUs. The flash also updated the Management Engine firmware.
After a cold boot, all the settings held. I’ll keep watching it under load.
Recipes written later from this work: