-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
SONiC bulk counter support #1009
SONiC bulk counter support #1009
Conversation
|
||
##### Statistic Collect | ||
|
||
![Collect Counter Flow](/doc/bulk_counter/counter_collect.svg). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- If mode SAI_STATS_MODE_BULK_READ_AND_CLEAR is supported, call sai_bulk_object_get_stats is enough. I think it is equative to sai_bulk_object_get_stats(mode=BULK_READ) and then sai_bulk_object_clear_stats(mode=BULK_CLEAR).
- If not sucess after sai_bulk_object_get_stats or sai_bulk_object_clear_stats, why go to 'Old way'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- yes, you are right
- we need keep backward compatible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we fall back to old way?
For performance improvement, do you have any raw data in your prototype to estimate how much the gain is for bulk get vs get? |
@kcudnik please review it. |
Add a performance section to describe the performance improvement. |
PR https://github.com/opencomputeproject/SAI/pull/1352/files introduced new SAI APIs that supports bulk stats:
SONiC flex counter infrastructure shall utilize bulk stats API to gain better performance. This document discusses how to integrate these two new APIs to SONiC.
Related PRs: