Xilinx / open-nic-dpdk

DPDK Drivers for AMD OpenNIC
Other
18 stars 8 forks source link

Pktgen 20.11.3 may show inaccurate statistics #3

Open function47 opened 1 year ago

function47 commented 1 year ago

I was running a loopback test. I found that the Tx MBits/s rate doesn't match up with Rx rate as shown below. However, once I used Pktgen 21.03.1. It is gone.

I also noticed this discrepancy in this post.


Ports 0-1 of 2   <Main Page>  Copyright (c) <2010-2020>, Intel Corporation
  Flags:Port        : P------Range       :0 P------Range       :1PMD: qdma_dev_link_update(): Link update done
Link State          :        <UP-100000-FD>        <UP-100000-FD>      ---Total Rate---
Pkts/s Max/Rx       :       7675460/7557906       7368360/7251015     15043820/14808921
       Max/Tx       :       7383936/7263393       7695872/7573920     15079808/14837313
MBits/s Rx/Tx       :            48712/1394            45772/1454            94484/2848
Broadcast           :                     0                     0
Multicast           :                     0                     0
Sizes 64            :               1558894                854696
      65-127        :              20026127              20171588
      128-255       :              41562202              40255501
      256-511       :              79199307              82529526
      512-1023      :             158741787             152219145
      1024-1518     :             154165462             140864226
Runts/Jumbos        :                   0/0                   0/0
ARP/ICMP Pkts       :                   0/0                   0/0
Errors Rx/Tx        :                   0/0                   0/0
Total Rx Pkts       :             452242056             434001460
      Tx Pkts       :             434765600             453223840
      Rx MBs        :               2914836               2739635
      Tx MBs        :                 83474                 87018
                    :
Pattern Type        :               abcd...               abcd...
Tx Count/% Rate     :         Forever /100%         Forever /100%
Pkt Size/Tx Burst   :             64 /   32             64 /   32
TTL/Port Src/Dest   :         4/ 1234/ 5678         4/ 1234/ 5678
Pkt Type:VLAN ID    :       IPv4 / TCP:0001       IPv4 / TCP:0001
802.1p CoS/DSCP/IPP :             0/  0/  0             0/  0/  0
VxLAN Flg/Grp/vid   :      0000/    0/    0      0000/    0/    0
IP  Destination     :           192.168.1.1           192.168.0.1
    Source          :        192.168.0.1/24        192.168.1.1/24
MAC Destination     :     15:16:17:18:19:1a     15:16:17:18:19:1a
    Source          :     15:16:17:18:19:1a     15:16:17:18:19:1a
PCI Vendor/Addr     :     10ee:903f/3b:00.0     10ee:913f/3b:00.1

-- Pktgen 20.11.3 (DPDK 20.11.0)  Powered by DPDK  (pid:12297) ----------------