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

HLD for aggregate VOQ counters. #1587

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

vivekverma-arista
Copy link

@vivekverma-arista vivekverma-arista commented Jan 16, 2024

This document provides general information about the feature aggregate VOQ counters in a distributed VOQ architecture.

This feature has been tracked in #1543
code PRs for tracking

The code pull requests should merge in the order they are mentioned in the table.

Repo PR Title State
sonic-buildimage Add CHASIS_COUNTERS_DB for aggregated stats in a chassis based system GitHub issue/pull request detail
sonic-swss-common Add support for CHASSIS_COUNTERS_DB and schema for aggregate VOQ stats GitHub issue/pull request detail
sonic-swss Add voqstatsorch for aggregate VOQ counters. GitHub issue/pull request detail
sonic-utilities Support for aggregrate VOQ Counters. GitHub issue/pull request detail
sonic-gnmi

Copy link

linux-foundation-easycla bot commented Jan 16, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@kenneth-arista
Copy link

@arlakshm @zhangyanzhao for awareness

@vivekverma-arista vivekverma-arista changed the title Created the HLD for aggregate VOQ counters. HLD for aggregate VOQ counters. Feb 18, 2024
@zhangyanzhao
Copy link
Collaborator

@zhangyanzhao
Copy link
Collaborator

@vivekverma-arista can you please help to add the code PRs to this HLD by referring to #806 ? Thanks.

@zhangyanzhao
Copy link
Collaborator

@vivekverma-arista can you please help to update the code PR list by referring to #806 ? Thanks.

@zhangyanzhao
Copy link
Collaborator

@lguohan will check with MSFT team for the review.

vmittal-msft
vmittal-msft previously approved these changes May 24, 2024
@zhangyanzhao
Copy link
Collaborator

code PRs are not reviewed yet. Move to backlog


The following new VOQ counters should be available for each VOQ entry in the DB:
* `COUNTERS_VOQ : LINECARD | ASIC | EthernetXXX @ LINECARD | ASIC : VOQ_index`
* `SAI_VOQ_STAT_PACKETS`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, only the following SAI attributes are supported to read the counters for both egress queue and voq. Only the queue id is different for egress queue and voq.
in orchagent:
static const vector<sai_queue_stat_t> queue_stat_ids =
{
SAI_QUEUE_STAT_PACKETS,
SAI_QUEUE_STAT_BYTES,
SAI_QUEUE_STAT_DROPPED_PACKETS,
SAI_QUEUE_STAT_DROPPED_BYTES,
};
static const vector<sai_queue_stat_t> voq_stat_ids =
{
SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS
};
SAI
https://github.com/opencomputeproject/SAI/blob/be523777da96504758d3bb6b3696ae7d1129419d/inc/saiqueue.h#L280
Where are these attributes coming from?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction made.

admin@cmp217:~$ show queue counters "cmp217-5|asic0|Ethernet24" --voq
Port Voq Counter/pkts Counter/bytes Drop/pkts Drop/bytes Credit-WD-Del/pkts
------------------------- ----- -------------- --------------- ----------- ------------ --------------------
cmp217-5|asic0|Ethernet24 VOQ0 54 2700 0 0 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are the other filters we can apply for this show command?. Can we filter the output for a Line card or asic in Linecard?

Copy link
Author

@vivekverma-arista vivekverma-arista Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No other filter can be applied as of now. We can only aggregate counters as per system port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: MovedToBacklog
Status: In Progress
Development

Successfully merging this pull request may close these issues.

6 participants