[202411][Mellanox] Support new field supporting_bulk_counter_groups in DEVICE__METADATA|localhost for Mellanox-SN4700-V64#22224
Conversation
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…_METADATA|localhost for Mellanox-SN4700-V64 Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
cdc56cb to
d55a4b1
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@qiluo-msft @SuvarnaMeenakshi Could you help review? I remember earlier the |
@bingwang-ms Could you please remind me what the issue was? If it was that the queue 7 counters were not polled, it should be fixed by the following PR sonic-net/sonic-swss#3334 Thanks |
|
@bingwang-ms @kperumalbfn Seems like the purpose is to change 202411 Mellanox-SN4700-V64 golden config. Changing image default behavior is not encourage, instead we should change our golden config genration logic. |
Hi @stephenxs Added the link to the issue #17448 |
Hi @ayurkiv-nvda, can you please reply to the comment from Qi? |
There was a problem hiding this comment.
What's the behavior if only supporting_bulk_counter_groups is present while create_only_config_db_buffers.json is missing?
There was a problem hiding this comment.
Hi @bingwang-ms
In that case the bulk won't work correctly because
- We only use configured queues. All those queues support bulk counter polling
- Without
create_only_config_db_buffers, flex counter will bulk-poll all queue counters, some of which do not support bulk polling. - It can fail if we try to bulk-poll objects with mixed supporting and unsupporting objects. There is a logic to dynamically determine whether bulk is supported on an object and remove the objects that do not support bulk poll during initialization. This guarantees that all objects polled in bulk mode at run time support bulk polling, like the scenario where
create_only_config_db_buffersis not provided. - However, by providing
supporting_bulk_counter_groups, the logic in 3 is disabled. There will be runtime error.
In master, create_only_config_db_buffers is not a must but still recommended because it is faster
Hello @qiluo-msft @bingwang-ms |
Hi @ayurkiv-nvda , it's not expected to update |
|
Hello @bingwang-ms. Thank you for response!
Just want to make sure that we are aligned Thanks |
|
Just to make sure I fully understand the problem. |
Hi @bingwang-ms |
Hi @stephenxs, what will happen if |
@bingwang-ms
It does not guarantee the order between 1 and 2. |
|
Discussed offline
I will check if there is a way in test to enable both |
|
Close this PR as it is not needed for MSFT for 202411 |
Why I did it
Support new field "supporting_bulk_counter_groups" in DEVICE_METADATA|localhost for Mellanox-SN4700. This change is required to optimize and speed up counters initialization.
Work item tracking
How I did it
Support new field "supporting_bulk_counter_groups" in DEVICE_METADATA|localhost for Mellanox-SN4280-O28. This change is required to optimize and speed up counters initialization.
How to verify it
run config reload and check initialization sequence
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)