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

Do not start counter polling for queues with zero buffer profiles if create_only_config_db_buffers is enabled #3360

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stephenxs
Copy link
Collaborator

What I did

Do not start counter-polling for queues with zero buffer profiles if create_only_config_db_buffers is enabled.

Why I did it

If create_only_config_db_buffers is enabled, counters will be polled only on queues with a buffer configured based on the hypothesis that a customer must configure a buffer profile before using the queue.
The system performance can be optimized by reducing the number of counter polled.

However, zero buffer profiles are configured on queues of inactive ports to reclaim unused buffers. Those queues are not used by customers. Hence, we do not need to start counter polling for queues with such buffer profiles configured.

How I verified it

Manual and regression test.

Flows verified:

  1. System starts up with inactive ports
  2. Shutdown a port
  3. Start up a port

Details if related

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Stephen Sun <stephens@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants