#388 ixgbevf - invalid network statistics

closed
None
standalone_driver
1
2014-05-19
2013-12-31
No

I'm using version: 2.12.1.

ifconfig eth0 with 1s interval:
TX packets:538654649447
TX packets:538685146790

So the difference is 30497343 (30M packets per second). Machine is doing nothing.

Discussion

  • Todd Fujinaka

    Todd Fujinaka - 2014-01-10

    By nothing do you mean it's not connected to the network? Have you tried running tcpdump to see if it's sending out, say, ntp packets?

     
  • Todd Fujinaka

    Todd Fujinaka - 2014-01-10
    • assigned_to: Todd Fujinaka
     
  • Krzysztof Pawlowski

    I can only see few broadcast packets per second. My system is latest version of 64bit centos 6.5.

     
  • Todd Fujinaka

    Todd Fujinaka - 2014-01-14

    Can you send the output of ethtool -S with a one second interval?

     
  • Krzysztof Pawlowski

    ethtool stats looks ok:

    ethtool -S eth0 ; sleep 1 ; ethtool -S eth0

    NIC statistics:
    rx_packets: 25069362
    tx_packets: 38339598
    rx_bytes: 2216971049
    tx_bytes: 10103561608
    tx_busy: 0
    tx_restart_queue: 0
    tx_timeout_count: 0
    multicast: 0
    rx_csum_offload_errors: 37
    NIC statistics:
    rx_packets: 25069382
    tx_packets: 38339625
    rx_bytes: 2216972713
    tx_bytes: 10103566110
    tx_busy: 0
    tx_restart_queue: 0
    tx_timeout_count: 0
    multicast: 0
    rx_csum_offload_errors: 37

     
    • Emil Tantilov

      Emil Tantilov - 2014-01-17

      The ethtool stats are reported directly from the driver, so if you are not seeing any discrepancies here it is unlikely that your issue is caused by the driver.

      FWIW I didn't see any stray packets reported by ifconfig in my environment using ixgbevf 2.12.1 driver.

       
    • Todd Fujinaka

      Todd Fujinaka - 2014-01-21

      Those seem reasonable. Can you do "ethtool -S eth0; ifconfig eth0; sleep 1; ethtool -S eth0; ifconfig eth0"?

      Thanks.

       
      • Krzysztof Pawlowski

        ethtool -S eth0; ifconfig eth0; sleep 1; ethtool -S eth0; ifconfig eth0

        NIC statistics:
        rx_packets: 75602217
        tx_packets: 132902033
        rx_bytes: 24236522682
        tx_bytes: 67230795694
        tx_busy: 0
        tx_restart_queue: 0
        tx_timeout_count: 0
        multicast: 0
        rx_csum_offload_errors: 0
        eth0 Link encap:Ethernet HWaddr 1E:D6:A6:D5:FF:BD
        UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
        RX packets:15124995157224 errors:0 dropped:0 overruns:0 frame:0
        TX packets:26812995396224 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:10000
        RX bytes:4810932097412535 (4.2 PiB) TX bytes:13472652239419473 (11.9 PiB)

        NIC statistics:
        rx_packets: 75602225
        tx_packets: 132902059
        rx_bytes: 24236523170
        tx_bytes: 67230799866
        tx_busy: 0
        tx_restart_queue: 0
        tx_timeout_count: 0
        multicast: 0
        rx_csum_offload_errors: 0
        eth0 Link encap:Ethernet HWaddr 1E:D6:A6:D5:FF:BD
        UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
        RX packets:15125146361675 errors:0 dropped:0 overruns:0 frame:0
        TX packets:26813261200316 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:10000
        RX bytes:4810980015874597 (4.2 PiB) TX bytes:13472785637798665 (11.9 PiB)

         
  • Krzysztof Pawlowski

    Stock driver from centos 6.x shows good information in /proc/net/dev

     
  • Todd Fujinaka

    Todd Fujinaka - 2014-01-22

    Thanks for the latest statistics. We've reproduced the issue locally and we're looking into it.

     
  • Krzysztof Pawlowski

    I've managed to upgrade xenserver ixgbe driver to version 3.19.1 and ifconfig seems to shows corrects counter on interface packets.

     
  • Krzysztof Pawlowski

    I was wrong. With ixgbe 3.19.1 on dom0 /proc/net/dev and ixgbevf 2.12.1 on domU , /proc/net/dev stats are still broken :(

     
  • Todd Fujinaka

    Todd Fujinaka - 2014-02-10

    The last release was in December of 2013, a month before I acknowledged that we're seeing problems. I'd wait for a new driver before doing any more testing.

     
  • Emil Tantilov

    Emil Tantilov - 2014-02-18

    The issue is in the way the net_stat counters are updated in ixgbevf_get_stats(). This bug can be seen when the ixgbevf driver is loaded on kernels < 2.6.36. We will have a fix in the next release.

     
  • Todd Fujinaka

    Todd Fujinaka - 2014-05-19

    This should be fixed in the latest driver, ixgbe-3.21.2. I'm closing this issue, but please re-open if you see further issues.

    Thanks.

     
  • Todd Fujinaka

    Todd Fujinaka - 2014-05-19
    • status: open --> closed
    • Group: in-kernel_driver --> standalone_driver
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks