Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sum of member packets exceeds master packets number #25

Open
pinggit opened this issue Oct 10, 2020 · 2 comments
Open

sum of member packets exceeds master packets number #25

pinggit opened this issue Oct 10, 2020 · 2 comments
Assignees

Comments

@pinggit
Copy link
Owner

pinggit commented Oct 10, 2020

 [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
Copy link
Collaborator

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

@pinggit
Copy link
Owner Author

pinggit commented Oct 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants