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

Add occupancy and watermark counters in cells #2092

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marian-pritsak
Copy link
Contributor

Add occcupancy and watermark counters for
priority group and queue objects in shared buffer cells to report them as they are in counted in the ASIC. Also add a companion read-only attribute to
get the cell size of a shared buffer in a switch.

Add occcupancy and watermark counters for
priority group and queue objects in shared buffer cells
to report them as they are in counted in the ASIC.
Also add a companion read-only attribute to
get the cell size of a shared buffer in a switch.

Signed-off-by: Marian Pritsak <[email protected]>
@tjchadaga
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tjchadaga
Copy link
Collaborator

@vmittal-msft - FYI

@tjchadaga tjchadaga requested a review from kcudnik November 18, 2024 19:42
@vmittal-msft
Copy link
Contributor

vmittal-msft commented Nov 18, 2024

@marian-pritsak

  1. Can we add attribute for VoQs as well ?
  2. How much is performance difference if we keep count in bytes instead of cells ? As bytes are easier to decipher than cells.

SAI_INGRESS_PRIORITY_GROUP_STAT_CURR_OCCUPANCY_CELLS = 0x00000009,

/** Get watermark pg occupancy in cells [uint64_t] */
SAI_INGRESS_PRIORITY_GROUP_STAT_WATERMARK_CELLS = 0x0000000a,
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi Marian, just a sanity checks here, do we need:

  • SAI_INGRESS_PRIORITY_GROUP_STAT_XOFF_ROOM_CURR_OCCUPANCY_CELLS
  • SAI_INGRESS_PRIORITY_GROUP_STAT_XOFF_ROOM_WATERMARK_CELLS

For SAI_INGRESS_PRIORITY_GROUP_STAT_BYTES, I believe it is supported, and we don't need the cell counts (as it will be bad for tracking the traffic volume).

Copy link
Contributor

Choose a reason for hiding this comment

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

are we missing the buffer pool ones? or can they be supported in bytes?

SAI_QUEUE_STAT_CURR_OCCUPANCY_CELLS = 0x00000028,

/** Get watermark queue occupancy in cells [uint64_t] */
SAI_QUEUE_STAT_WATERMARK_CELLS = 0x00000029,
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, do we need SAI_BUFFER_POOL_STAT_XOFF_ROOM_WATERMARK_CELLS?

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.

5 participants