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

"sonic-clear queuecounters" doesn't clear the VOQ counters #15198

Closed
rishabhhastu opened this issue May 24, 2023 · 1 comment · Fixed by sonic-net/sonic-utilities#2878
Closed
Assignees
Labels
Chassis 🤖 Modular chassis support MSFT P0 Priority of the issue Triaged this issue has been triaged

Comments

@rishabhhastu
Copy link

Description

The issue is seen on 7800R3-48CQ2-LC,7800R3-48CQM2-LC, and 7800R3A-36DM2-LC. The command "sonic-clear queuecounters" doesn't clear up the VOQ counters which can be seen using the command "show queue counters --voq". However, the egress queue counters (show queue counters) still get cleared up.

Steps to reproduce the issue:

  1. Run traffic across the SONiC VOQ Chassis
  2. Verify the egress and voq counters using the commands "show queue counters ", "show queue counters --voq" respectively
  3. Clear the voq counters using the command "sonic-clear queuecounters"

Describe the results you received:

***************

Egress queue counters

***************

show queue  counters  | grep "Ethernet132"

Ethernet132    UC0      1094660240     869159650295        29124      23220137

Ethernet132    UC1               0                0            0             0

Ethernet132    UC2               0                0            0             0

Ethernet132    UC3               0                0            0             0

Ethernet132    UC4               0                0            0             0

Ethernet132    UC5               0                0            0             0

Ethernet132    UC6               0                0            0             0

Ethernet132    UC7               0                0            0             0

Ethernet132    MC8               0                0            0             0

Ethernet132    MC9               0                0            0             0

Ethernet132   MC10               0                0            0             0

Ethernet132   MC11               0                0            0             0

Ethernet132   MC12               0                0            0             0

Ethernet132   MC13               0                0            0             0

Ethernet132   MC14               0                0            0             0

Ethernet132   MC15               0                0            0             0



***************

VOQ counters

***************

show queue  counters --voq | grep "nfc456-5|Ethernet132"

nfc456-5|Ethernet132   VOQ0       604583245     472783637380            0             0

nfc456-5|Ethernet132   VOQ1               0                0            0             0

nfc456-5|Ethernet132   VOQ2               0                0            0             0

nfc456-5|Ethernet132   VOQ3               0                0            0             0

nfc456-5|Ethernet132   VOQ4               0                0            0             0

nfc456-5|Ethernet132   VOQ5               0                0            0             0

nfc456-5|Ethernet132   VOQ6               0                0            0             0

nfc456-5|Ethernet132   VOQ7               0                0            0             0

Clearing the counters

sonic-clear queuecounters

Clear and update saved counters for Ethernet0

Clear and update saved counters for Ethernet4

Clear and update saved counters for Ethernet8

Clear and update saved counters for Ethernet12

Clear and update saved counters for Ethernet16

Clear and update saved counters for Ethernet20

Clear and update saved counters for Ethernet24

Clear and update saved counters for Ethernet28

Clear and update saved counters for Ethernet32

Clear and update saved counters for Ethernet36

Clear and update saved counters for Ethernet40

Clear and update saved counters for Ethernet44

Clear and update saved counters for Ethernet48

Clear and update saved counters for Ethernet52

Clear and update saved counters for Ethernet56

Clear and update saved counters for Ethernet60

Clear and update saved counters for Ethernet64

Clear and update saved counters for Ethernet68

Clear and update saved counters for Ethernet72

Clear and update saved counters for Ethernet76

Clear and update saved counters for Ethernet80

Clear and update saved counters for Ethernet84

Clear and update saved counters for Ethernet88

Clear and update saved counters for Ethernet92

Clear and update saved counters for Ethernet96

Clear and update saved counters for Ethernet100

Clear and update saved counters for Ethernet104

Clear and update saved counters for Ethernet108

Clear and update saved counters for Ethernet112

Clear and update saved counters for Ethernet116

Clear and update saved counters for Ethernet120

Clear and update saved counters for Ethernet124

Clear and update saved counters for Ethernet128

Clear and update saved counters for Ethernet132

Clear and update saved counters for Ethernet136

Clear and update saved counters for Ethernet140

Clear and update saved counters for Ethernet144

Clear and update saved counters for Ethernet148

Clear and update saved counters for Ethernet152

Clear and update saved counters for Ethernet156

Clear and update saved counters for Ethernet160

Clear and update saved counters for Ethernet164

Clear and update saved counters for Ethernet168

Clear and update saved counters for Ethernet172

Clear and update saved counters for Ethernet176

Clear and update saved counters for Ethernet180

Clear and update saved counters for Ethernet184

Clear and update saved counters for Ethernet188

Clear and update saved counters for Ethernet-IB2

Clear and update saved counters for Ethernet-Rec2

Post Clearing counters

show queue  counters --voq | grep nfc456-5|Ethernet132

nfc456-5|Ethernet132   VOQ0       604583257     472783639421            0             0.  <<<<----- Didn't get cleared

nfc456-5|Ethernet132   VOQ1               0                0            0             0

nfc456-5|Ethernet132   VOQ2               0                0            0             0

nfc456-5|Ethernet132   VOQ3               0                0            0             0

nfc456-5|Ethernet132   VOQ4               0                0            0             0

nfc456-5|Ethernet132   VOQ5               0                0            0             0

nfc456-5|Ethernet132   VOQ6               0                0            0             0

nfc456-5|Ethernet132   VOQ7               0                0            0             0



show queue  counters  | grep Ethernet132

Ethernet132 Last cached time was 2023-04-19 22:23:30.224734

Ethernet132    UC0               7            1,221            0             0.  <<<----- EGQ counters got cleared

Ethernet132    UC1               0                0            0             0

Ethernet132    UC2               0                0            0             0

Ethernet132    UC3               0                0            0             0

Ethernet132    UC4               0                0            0             0

Ethernet132    UC5               0                0            0             0

Ethernet132    UC6               0                0            0             0

Ethernet132    UC7               0                0            0             0

Ethernet132    MC8               0                0            0             0

Ethernet132    MC9               0                0            0             0

Ethernet132   MC10               0                0            0             0

Ethernet132   MC11               0                0            0             0

Ethernet132   MC12               0                0            0             0

Ethernet132   MC13               0                0            0             0

Ethernet132   MC14               0                0            0             0

Ethernet132   MC15               0                0            0             0


Output of show boot:

Current: SONiC-OS-branch.202205-ars.c5053c3f-buildimage.origin.202205-nightly-2023.04.19.04.24

Next: SONiC-OS-branch.202205-ars.c5053c3f-buildimage.origin.202205-nightly-2023.04.19.04.24

Additional information you deem important (e.g. issue happens only occasionally):

@arlakshm arlakshm self-assigned this May 24, 2023
@arlakshm arlakshm added MSFT Triaged this issue has been triaged Chassis 🤖 Modular chassis support labels May 24, 2023
@arlakshm
Copy link
Contributor

@skbarista, can you check on this issue?

@rlhui rlhui added the P0 Priority of the issue label Aug 9, 2023
arlakshm pushed a commit to sonic-net/sonic-utilities that referenced this issue Aug 11, 2023
…ers (#2878)

Fix a bug where the CLI command sonic-clear queuecounters would not clear the VOQ counters.

fixes sonic-net/sonic-buildimage#15198

How I did it
Added the command to clear the VOQ counters.

How to verify it
Start traffic on an interface on a specific queue.
Use show queue counters and show queue counters --voq to verify that the counters are non-zero.
Stop traffic on the interface.
Run sonic-clear queuecounters.
Repeat the show commands and ensure that the counters have been reset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chassis 🤖 Modular chassis support MSFT P0 Priority of the issue Triaged this issue has been triaged
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants