KVM: How to get virtio_net NIC statistics to diagnose the rx_dropped counter
Issue
ip -s linkornetstat -ishow that the rx_dropped counter is increasing.
$ ip -s link
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
.
RX: bytes packets errors dropped overrun mcast
4339384 60007 0 35 0 0
ethtool -S ethXfails forvirtio_netNICs:
# ethtool -i eth0
driver: virtio_net
version: 1.0.0
firmware-version:
bus-info: 0000:00:08.0
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
# ethtool -S eth0
no stats available
Environment
- Red Hat Enterprise Linux
- KVM
- virtio_net
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.