-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Enable PG drop counters by default #6444
Conversation
…ault Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
70efa75
to
0fb924a
Compare
retest this please |
retest baseimage please |
@neethajohn, could you you please review? |
retest vsimage please |
@neethajohn if this is needed for 201911 please add the proper label |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
…ew FlexCounter group (#1600) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> depends on : sonic-net/sonic-utilities#1355 sonic-net/sonic-buildimage#6444 What I did Added new option for "counterpoll" util Why I did it Add appropriate code to counterpoll/main.py How I verified it admin@arc-switch1041:~$ counterpoll pg-drop enable --> enable new counter admin@arc-switch1041:~$ counterpoll show --> check new PG_DROP_STAT counter status check counters admin@arc-switch1041:~$ redis-cli -n 2 127.0.0.1:6379[2]> HGETALL COUNTERS:oid:0x1a000000000062 1) "SAI_INGRESS_PRIORITY_GROUP_STAT_XOFF_ROOM_WATERMARK_BYTES" 2) "0" 3) "SAI_INGRESS_PRIORITY_GROUP_STAT_SHARED_WATERMARK_BYTES" 4) "0" 5) "SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS" 6) "0"
…er in counterpoll utility (#1355) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> depends on: sonic-net/sonic-buildimage#6444 sonic-net/sonic-swss#1600 - What I did Added new option for "counterpoll" utility - How I did it Enhance counterpoll utility for SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS Add new CLI command and extend the show command. - How to verify it To test it use QoS test. run the pfcxontest and Pfcxofftest, drop can be triggered in either of the test. It runs in ptf32 topo and requires RPC image. admin@arc-switch1041:~$ counterpoll pg-drop enable --> to enable the new counter admin@arc-switch1041:~$ counterpoll show --> check new INGRESS_PG_STAT_DROP counter status
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
@neethajohn do we need this for 201911. Looks to be enhancement |
This was an ask for be able to read of drop counters in production environment
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: abdosi <notifications@github.com>
Sent: Friday, February 19, 2021 4:12:53 AM
To: Azure/sonic-buildimage <sonic-buildimage@noreply.github.com>
Cc: Liat Grozovik <liatg@nvidia.com>; Comment <comment@noreply.github.com>
Subject: Re: [Azure/sonic-buildimage] Enable PG drop counters by default (#6444)
@neethajohn<https://github.com/neethajohn> do we need this for 201911. Looks to be enhancement
@rlhui<https://github.com/rlhui>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#6444 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKTABAY3CSENZ2PLIX7E7KTS7XCKLANCNFSM4WBTT4CA>.
|
…ew FlexCounter group (#1600) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> depends on : sonic-net/sonic-utilities#1355 sonic-net/sonic-buildimage#6444 What I did Added new option for "counterpoll" util Why I did it Add appropriate code to counterpoll/main.py How I verified it admin@arc-switch1041:~$ counterpoll pg-drop enable --> enable new counter admin@arc-switch1041:~$ counterpoll show --> check new PG_DROP_STAT counter status check counters admin@arc-switch1041:~$ redis-cli -n 2 127.0.0.1:6379[2]> HGETALL COUNTERS:oid:0x1a000000000062 1) "SAI_INGRESS_PRIORITY_GROUP_STAT_XOFF_ROOM_WATERMARK_BYTES" 2) "0" 3) "SAI_INGRESS_PRIORITY_GROUP_STAT_SHARED_WATERMARK_BYTES" 4) "0" 5) "SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS" 6) "0"
…er in counterpoll utility (#1355) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> depends on: sonic-net/sonic-buildimage#6444 sonic-net/sonic-swss#1600 - What I did Added new option for "counterpoll" utility - How I did it Enhance counterpoll utility for SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS Add new CLI command and extend the show command. - How to verify it To test it use QoS test. run the pfcxontest and Pfcxofftest, drop can be triggered in either of the test. It runs in ptf32 topo and requires RPC image. admin@arc-switch1041:~$ counterpoll pg-drop enable --> to enable the new counter admin@arc-switch1041:~$ counterpoll show --> check new INGRESS_PG_STAT_DROP counter status
…ault (#6444) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
…er in counterpoll utility (sonic-net#1355) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> depends on: sonic-net/sonic-buildimage#6444 sonic-net/sonic-swss#1600 - What I did Added new option for "counterpoll" utility - How I did it Enhance counterpoll utility for SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS Add new CLI command and extend the show command. - How to verify it To test it use QoS test. run the pfcxontest and Pfcxofftest, drop can be triggered in either of the test. It runs in ptf32 topo and requires RPC image. admin@arc-switch1041:~$ counterpoll pg-drop enable --> to enable the new counter admin@arc-switch1041:~$ counterpoll show --> check new INGRESS_PG_STAT_DROP counter status
…ew FlexCounter group (sonic-net#1600) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> depends on : sonic-net/sonic-utilities#1355 sonic-net/sonic-buildimage#6444 What I did Added new option for "counterpoll" util Why I did it Add appropriate code to counterpoll/main.py How I verified it admin@arc-switch1041:~$ counterpoll pg-drop enable --> enable new counter admin@arc-switch1041:~$ counterpoll show --> check new PG_DROP_STAT counter status check counters admin@arc-switch1041:~$ redis-cli -n 2 127.0.0.1:6379[2]> HGETALL COUNTERS:oid:0x1a000000000062 1) "SAI_INGRESS_PRIORITY_GROUP_STAT_XOFF_ROOM_WATERMARK_BYTES" 2) "0" 3) "SAI_INGRESS_PRIORITY_GROUP_STAT_SHARED_WATERMARK_BYTES" 4) "0" 5) "SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS" 6) "0"
Does this need an associated change to the YANG models? I am getting an error seemingly related to this change on the latest master when setting breakout mode:
|
Yes. this is a new flex counter table |
…ault (sonic-net#6444) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
…ew FlexCounter group (sonic-net#1600) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> depends on : sonic-net/sonic-utilities#1355 sonic-net/sonic-buildimage#6444 What I did Added new option for "counterpoll" util Why I did it Add appropriate code to counterpoll/main.py How I verified it admin@arc-switch1041:~$ counterpoll pg-drop enable --> enable new counter admin@arc-switch1041:~$ counterpoll show --> check new PG_DROP_STAT counter status check counters admin@arc-switch1041:~$ redis-cli -n 2 127.0.0.1:6379[2]> HGETALL COUNTERS:oid:0x1a000000000062 1) "SAI_INGRESS_PRIORITY_GROUP_STAT_XOFF_ROOM_WATERMARK_BYTES" 2) "0" 3) "SAI_INGRESS_PRIORITY_GROUP_STAT_SHARED_WATERMARK_BYTES" 4) "0" 5) "SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS" 6) "0"
…rst start (#10935) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> Backport form master Appropriate PR on master: #7735 Appropriate PR on master #6444 Why I did it PG drop counters should be enabled by default (merge from master) After "config reload" or "docker swss restart" all counters were enabled even if they were disabled before How I did it 1)Add PG drop counter enable option to dockers/docker-orchagent/enable_counters.py 2) Check if entry already exist before set default values How to verify it - install image and run counterpoll show CLI command and then you will see PG_STAT_DROP enabled - Disable few counters counterpoll pg-drop disable counterpoll port disable - Save and reload config save config reload - Check enable status
…er in counterpoll utility (#1355) Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com> depends on: sonic-net/sonic-buildimage#6444 sonic-net/sonic-swss#1600 - What I did Added new option for "counterpoll" utility - How I did it Enhance counterpoll utility for SAI_INGRESS_PRIORITY_GROUP_STAT_DROPPED_PACKETS Add new CLI command and extend the show command. - How to verify it To test it use QoS test. run the pfcxontest and Pfcxofftest, drop can be triggered in either of the test. It runs in ptf32 topo and requires RPC image. admin@arc-switch1041:~$ counterpoll pg-drop enable --> to enable the new counter admin@arc-switch1041:~$ counterpoll show --> check new INGRESS_PG_STAT_DROP counter status
Signed-off-by: Andriy Yurkiv ayurkiv@nvidia.com
depends on :
sonic-net/sonic-swss#1600 ,
sonic-net/sonic-utilities#1355
merge priority:
sonic-net/sonic-swss#1600
sonic-net/sonic-utilities#1355
#6444
- Why I did it
PG drop counters should be enabled by default
- How I did it
Add PG drop counter enable option to dockers/docker-orchagent/enable_counters.py
- How to verify it
run
counterpoll show
CLI command and then you will see PG_STAT_DROP enabled there- Which release branch to backport (provide reason below if selected)
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)