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

[2405][BRCM-DNX]: 'sonic-clear queuecounter' CLI does not clear the queue counters. #20913

Open
amitpawar12 opened this issue Nov 25, 2024 · 0 comments

Comments

@amitpawar12
Copy link

Description

This is regression in 2405 as compared to release 2205.

We are using CLI - 'sudo ip netns exec asic<0/1> sonic-clear queuecounter' to clear the queue counter. The same CLI was used in 2205 to clear the counters.

However, in 2405, this CLI does not clear the counter.

Note - there is an on-going discussion about 'show ...' CLIs involved in multi-asic environment. However, the clear commands should also be addressed. This issue is a placeholder to ensure that we address this issue.

@saksarav-nokia.

Steps to reproduce the issue:

  1. Send traffic to one of the ports.
  2. Check the queue counters on the egress ASIC.
  3. Ensure that counters are non-zero.
admin@ixre-egl-board72:~$ sudo ip netns exec asic0 show queue counter --nonzero
Ethernet0 Last cached time was 2024-11-25T16:36:01.921665
     Port    TxQ    Counter/pkts    Counter/bytes    Drop/pkts    Drop/bytes
---------  -----  --------------  ---------------  -----------  ------------
Ethernet0    UC0       199028410     195047841800            0             0
Ethernet0    UC2       199028410     195047841800            0             0
Ethernet0    UC3       198293421     194327552580    198233784  194269108320
Ethernet0    UC4       198547418     194576469640    198259271  194294085580
Ethernet0    UC5       199028915     195048336700            0             0
Ethernet0    UC7              36            4,557            0             0
  1. Clear the counters and check the counters.
admin@ixre-egl-board72:~$ sudo ip netns exec asic0 sonic-clear queuecounter
Clear and update saved counters for Ethernet0
Clear and update saved counters for Ethernet8
Clear and update saved counters for Ethernet16
Clear and update saved counters for Ethernet24
Clear and update saved counters for Ethernet32
Clear and update saved counters for Ethernet40
------------- curtailed output ------------
  1. In 2205, the counters will be reset to zero. However, in 2405, this does not happen.
admin@ixre-egl-board72:~$ sudo ip netns exec asic0 show queue counter --nonzero
Ethernet0 Last cached time was 2024-11-25T16:36:42.270594
     Port    TxQ    Counter/pkts    Counter/bytes    Drop/pkts    Drop/bytes
---------  -----  --------------  ---------------  -----------  ------------
Ethernet0    UC0       199028410     195047841800            0             0
Ethernet0    UC2       199028410     195047841800            0             0
Ethernet0    UC3       198293421     194327552580    198233784  194269108320
Ethernet0    UC4       198547418     194576469640    198259271  194294085580
Ethernet0    UC5       199028915     195048336700            0             0
Ethernet0    UC7            5265           480007         1283        103768

Describe the results you received:

In 2405 release, these counters are not reset to zero.

Describe the results you expected:

The counters should reset to zero.

Output of show version:

admin@ixre-egl-board72:~$ show version 

SONiC Software Version: SONiC.HEAD.884690-202405-281b4a58
SONiC OS Version: 12
Distribution: Debian 12.8
Kernel: XXXXXXX
Build commit: 281b4a58
Build date: Fri Nov 22 08:05:41 UTC 2024
Built by: gitlab-runner@sonic-build-server03

Platform: x86_64-nokia_ixr7250e_36x400g-r0
HwSKU: Nokia-IXR7250E-36x100G
ASIC: broadcom
ASIC Count: 2
Serial Number: XXXXXXX
Model Number: XXXXXXX
Hardware Revision: 56
Uptime: 16:58:34 up  1:53,  1 user,  load average: 1.24, 1.35, 1.42
Date: Mon 25 Nov 2024 16:58:34

Output of show techsupport:

(paste your output here or download and attach the file here )

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

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

No branches or pull requests

1 participant