KVM guests drop incoming packets under sustained throughput when SR‑IOV VFs are bound with VFIO
Environment
Linux host (CentOS 8) running KVM/QEMU with Mellanox NICs providing SR-IOV VFs; VFIO used to passthrough VFs to guests. Issue seen on guests running sustained RX under heavy load.
Symptoms
Guests keep interfaces up and counters increment, but incoming packet reception halts for 10–60s while host-level pps counters continue; guests do not receive traffic during stalls, then resume. Small packets continue to pass intermittently.
Observations
Host dmesg shows no device reset. ethtool -S on physical PF shows RX drops and driver queue full counters rising. Guests' ifconfig shows normal link. Rebinding VFs to host (unplug/plug) restores traffic. Behavior correlates with high interrupt/coalescing load and host CPU steal/runqueue spikes.
Already attempted
Tried reducing VF interrupt moderation, increased queue counts, tuned netdev_max_backlog and rxfh, updated Mellanox drivers (latest stable), moved VFs between NUMA nodes — stalls still occur under very high sustained throughput.
Question
What causes guest RX stalls with VFIO-bound SR-IOV VFs under sustained throughput and how to mitigate without removing passthrough?
Verified community troubleshooting
This typically comes from interrupt/queue overload on the host when SR‑IOV VFs are VFIO-bound. Start by pinning VF/PF IRQs and the guest vCPUs to the NIC's NUMA node, increase RX ring sizes and netdev_max_backlog, and reduce interrupt moderation to smooth bursts. If problems persist, test with virtio/vhost instead of passthrough to confirm whether VFIO adds the regression. Gather NIC ethtool -S stats, IRQ mappings, and perf traces and open a vendor support ticket if driver/firmware looks suspect. Rolling back to older firmware is an option but do so with change windows.
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Virtualization44% match
KVM guests lose incoming packets under sustained throughput when SR‑IOV VFs are bound with VFIO — guests keep interface up but RX halts
Open0 answers - Virtualization29% match
KVM guests lose all network after host NIC firmware update under sustained I/O — MTU resets and guests show 1500-only traffic
Open0 answers - Networking26% match
Edge Linux router drops long-lived TCP uploads after conntrack table thrash under heavy NAT load
Solved1 answer - Linux24% match
Linux kernel logs NETDEV WATCHDOG and igb driver drops packets after enabling GRO on high-throughput gateway
Open1 answer - Audio & Video23% match
USB DAC produces audio dropouts and crackling when connected through a USB 3.0 bus-powered hub under CPU load on Linux laptop
Open0 answers