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

"show queue counters" does not show stats for all queues with traffic #16202

Closed
prabhataravind opened this issue May 4, 2023 · 11 comments
Closed
Assignees
Labels
Bug 🐛 NVIDIA P0 Priority of the issue

Comments

@prabhataravind
Copy link
Contributor

prabhataravind commented May 4, 2023

With the introduction of changes via PR sonic-net/sonic-swss#2474, "show queue counters" shows stats only for queues that are configured via config DB. This has created a regression where ports with active traffic do not show up in "show queue counters" if they are missing in config DB. A couple of such examples are:

  1. UC7 queue which is used as the default queue for all control traffic
  2. Multicast queues with non-zero counters

I have verified with a sonic image without the changes from PR 2474 that these counters show up and they go missing when these changes are added back.

"show queue counters" without the changes from PR 2474:

Port TxQ Counter/pkts Counter/bytes Drop/pkts Drop/bytes


Ethernet124 UC0 0 0 0 0
Ethernet124 UC1 0 0 0 0
Ethernet124 UC2 0 0 0 0
Ethernet124 UC3 0 0 0 0
Ethernet124 UC4 0 0 0 0
Ethernet124 UC5 0 0 0 0
Ethernet124 UC6 0 0 0 0
Ethernet124 UC7 413 410082 0 0 <<<<<<<<<<
Ethernet124 UC8 0 0 0 0
Ethernet124 UC9 0 0 0 0
Ethernet124 MC10 0 0 0 0
Ethernet124 MC11 2849 267806 0 0 <<<<<<<<<<
Ethernet124 MC12 0 0 0 0
Ethernet124 MC13 0 0 0 0
Ethernet124 MC14 0 0 0 0
Ethernet124 MC15 0 0 0 0
Ethernet124 MC16 0 0 0 0
Ethernet124 MC17 0 0 0 0
Ethernet124 MC18 0 0 0 0
Ethernet124 MC19 0 0 0 0

"show queue counters" with changes from PR 2474:

Port TxQ Counter/pkts Counter/bytes Drop/pkts Drop/bytes


Ethernet124 UC0 0 0 0 N/A
Ethernet124 UC1 0 0 0 N/A
Ethernet124 UC2 0 0 0 N/A
Ethernet124 UC3 0 0 0 N/A
Ethernet124 UC4 0 0 0 N/A
Ethernet124 UC5 0 0 0 N/A
Ethernet124 UC6 0 0 0 N/A

@prabhataravind
Copy link
Contributor Author

@prsunny for viz

@prabhataravind prabhataravind changed the title show queue counters does not show stats for all queues with traffic "show queue counters" does not show stats for all queues with traffic May 4, 2023
@prsunny
Copy link
Contributor

prsunny commented May 4, 2023

@vadymhlushko-mlnx , @liat-grozovik, @shlomibitton for viz. We would have to revert the PR as it is a regression

@vadymhlushko-mlnx
Copy link
Contributor

@prabhataravind could you please tell me exactly which SONiC image versions you compared?
And also could you please attach the techsupport dump from both SONiC image versions?

@abdosi
Copy link
Contributor

abdosi commented Jul 13, 2023

@vadymhlushko-mlnx what is latest on this ? Without this we are not able to see UC7 queue counters value.

@prabhataravind
Copy link
Contributor Author

@prabhataravind could you please tell me exactly which SONiC image versions you compared? And also could you please attach the techsupport dump from both SONiC image versions?

Hi @vadymhlushko-mlnx , the issue is seen on any device running the latest 202205 sonic image. It should be fairly easy to see the problem by running "show queue counters" on the latest 202205 image. The tech support dump is too big to be attached here. This issue is not present in 202012. I remember I also verified by checking out a 202205 swss commit SHA before sonic-net/sonic-swss#2474 changes went in.

@prsunny
Copy link
Contributor

prsunny commented Jul 19, 2023

blocking sonic-net/sonic-mgmt#8097

@rlhui rlhui added the P0 Priority of the issue label Aug 9, 2023
@liat-grozovik
Copy link
Collaborator

@prabhataravind @prsunny long time ago we agreed that issues will be opened on sonic-buildimage so we can have one way to find all issues and not per repro. Should we move it?

@rlhui rlhui transferred this issue from sonic-net/sonic-swss Aug 18, 2023
@rlhui rlhui added the NVIDIA label Aug 18, 2023
@rlhui
Copy link
Contributor

rlhui commented Sep 5, 2023

@vadymhlushko-mlnx , please provide link to PR for the fix? thanks.

@rlhui
Copy link
Contributor

rlhui commented Sep 6, 2023

Fixes for 202205 branch:
sonic-net/sonic-swss#2882
#16232

@rlhui rlhui moved this to Done in SONiC Chassis Nov 1, 2023
@rlhui
Copy link
Contributor

rlhui commented Dec 7, 2023

@prabhataravind please help check if this issue can be closed? Thanks.

@prabhataravind
Copy link
Contributor Author

prabhataravind commented Dec 7, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 NVIDIA P0 Priority of the issue
Projects
Archived in project
Development

No branches or pull requests

6 participants