pinggit / dpdk-contrail-book

contrail dpdk day one book
9 stars 3 forks source link

sum of member packets exceeds master packets number #25

Open pinggit opened 3 years ago

pinggit commented 3 years ago
 [root@a7s3 ~]# contrail-tools dpdkinfo --stats eth
 Master Info:
 RX Device Packets:28360664, Bytes:3233321316, Errors:0, Nombufs:0
 Dropped RX Packets:0
 TX Device Packets:28361174, Bytes:3234763122, Errors:0
 Queue Rx: [0]28360664
       Tx: [0]28361174
       Rx Bytes: [0]3233321316
       Tx Bytes: [0]3234760294
       Errors:
 ---------------------------------------------------------------------

 Slave Info(0000:02:00.0):
 RX Device Packets:1421, Bytes:129257, Errors:0, Nombufs:0
 Dropped RX Packets:0
 TX Device Packets:28358167, Bytes:3234235595, Errors:0
 Queue Rx: [0]1421
       Tx: [0]28358167
       Rx Bytes: [0]129257
       Tx Bytes: [0]3234232767
       Errors:
 ---------------------------------------------------------------------

 Slave Info(0000:02:00.1):
 RX Device Packets:28359275, Bytes:3233195707, Errors:0, Nombufs:0
 Dropped RX Packets:0
 TX Device Packets:3039, Bytes:531175, Errors:0
 Queue Rx: [0]28359275
       Tx: [0]3039
       Rx Bytes: [0]3233195707
       Tx Bytes: [0]531175
       Errors:
 ---------------------------------------------------------------------

here the numbers do not match:

RX: 28359275 + 1421 = 28360696 - 28360664 = 32 TX: 28358167 + 3039 = 28361206 - 28361174 = 32

kirankn80 commented 3 years ago

If it's just 32, I would not worry, it may be the sampling interval or something..

pinggit commented 3 years ago

I guess you are right... so once I stop the traffic, they start to match.

the question is, shouldn't the counter value of the master, directly calculated from the two slaves? How can the master counters collected separately?

[root@a7s3 ~]# contrail-tools dpdkinfo -n eth
Master Info:
RX Device Packets:6592166398, Bytes:751536365898, Errors:0, Nombufs:0
Dropped RX Packets:0
TX Device Packets:6594810527, Bytes:752030638737, Errors:0
Queue Rx: [0]6592166398
      Tx: [0]6594810542
      Rx Bytes: [0]751536365898
      Tx Bytes: [0]752030255699
      Errors:
---------------------------------------------------------------------

Slave Info(0000:02:00.0):
RX Device Packets:3192749462, Bytes:363966732521, Errors:0, Nombufs:0
Dropped RX Packets:0
TX Device Packets:3091667080, Bytes:352661246361, Errors:0
Queue Rx: [0]3192749462
      Tx: [0]3091667085
      Rx Bytes: [0]363966732521
      Tx Bytes: [0]352660862183
      Errors:
---------------------------------------------------------------------

Slave Info(0000:02:00.1):
RX Device Packets:3399416936, Bytes:387569633377, Errors:0, Nombufs:0
Dropped RX Packets:0
TX Device Packets:3503143447, Bytes:399369392376, Errors:0
Queue Rx: [0]3399416936
      Tx: [0]3503143457
      Rx Bytes: [0]387569633377
      Tx Bytes: [0]399369393516
      Errors:
---------------------------------------------------------------------
[root@a7s3 ~]# echo "3192749462+3399416936-6592166398" | bc
0