Update lua script to convert poll_interval to MS#1855
Merged
qiluo-msft merged 2 commits intosonic-net:masterfrom Sep 3, 2021
Merged
Update lua script to convert poll_interval to MS#1855qiluo-msft merged 2 commits intosonic-net:masterfrom
qiluo-msft merged 2 commits intosonic-net:masterfrom
Conversation
Collaborator
|
@dgsudharsan and @prsunny could you please review? |
dgsudharsan
approved these changes
Aug 12, 2021
dgsudharsan
requested changes
Aug 12, 2021
Collaborator
dgsudharsan
left a comment
There was a problem hiding this comment.
Can you please modify port_rates.lua?
fecdd04 to
0e7cda2
Compare
Collaborator
Author
|
@dgsudharsan Done |
dgsudharsan
previously approved these changes
Aug 16, 2021
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
@dgsudharsan and @prsunny can you please help to review and approve? |
dgsudharsan
approved these changes
Sep 1, 2021
qiluo-msft
pushed a commit
to sonic-net/sonic-sairedis
that referenced
this pull request
Sep 2, 2021
#878) According to https://github.com/Azure/SONiC/blob/ec6d35dd2c28491bfade19cfee990fe612f1e5e9/doc/rates-and-utilization/Rates_and_utilization_HLD.md, counterpoll command gives polling interval in milliseconds. So when converting them to seconds to be supplied to lua script this should be divide by 1000. However, syncd multiplies it by 1000. Changed the multiplication to none, and did the converting in lua script - sonic-net/sonic-swss#1855 Fixed issue - sonic-net/sonic-buildimage#8392
qiluo-msft
pushed a commit
to sonic-net/sonic-sairedis
that referenced
this pull request
Sep 2, 2021
#878) According to https://github.com/Azure/SONiC/blob/ec6d35dd2c28491bfade19cfee990fe612f1e5e9/doc/rates-and-utilization/Rates_and_utilization_HLD.md, counterpoll command gives polling interval in milliseconds. So when converting them to seconds to be supplied to lua script this should be divide by 1000. However, syncd multiplies it by 1000. Changed the multiplication to none, and did the converting in lua script - sonic-net/sonic-swss#1855 Fixed issue - sonic-net/sonic-buildimage#8392
Collaborator
|
@prsunny kindly reminder. |
prsunny
approved these changes
Sep 2, 2021
qiluo-msft
approved these changes
Sep 3, 2021
qiluo-msft
pushed a commit
that referenced
this pull request
Sep 3, 2021
… MS (#1855) **What I did** Update the rif_rates/lua script to multiply by 1000 instead of FlexCounter class. related also to this PR - sonic-net/sonic-sairedis#878 Fix issue - sonic-net/sonic-buildimage#8392 **Why I did it** times were not calculated properly. **How I verified it** check that the output of cli and redis is close enough:
judyjoseph
pushed a commit
that referenced
this pull request
Sep 14, 2021
… MS (#1855) **What I did** Update the rif_rates/lua script to multiply by 1000 instead of FlexCounter class. related also to this PR - sonic-net/sonic-sairedis#878 Fix issue - sonic-net/sonic-buildimage#8392 **Why I did it** times were not calculated properly. **How I verified it** check that the output of cli and redis is close enough:
judyjoseph
pushed a commit
to sonic-net/sonic-sairedis
that referenced
this pull request
Oct 5, 2021
#878) According to https://github.com/Azure/SONiC/blob/ec6d35dd2c28491bfade19cfee990fe612f1e5e9/doc/rates-and-utilization/Rates_and_utilization_HLD.md, counterpoll command gives polling interval in milliseconds. So when converting them to seconds to be supplied to lua script this should be divide by 1000. However, syncd multiplies it by 1000. Changed the multiplication to none, and did the converting in lua script - sonic-net/sonic-swss#1855 Fixed issue - sonic-net/sonic-buildimage#8392
raphaelt-nvidia
pushed a commit
to raphaelt-nvidia/sonic-swss
that referenced
this pull request
Oct 5, 2021
… MS (sonic-net#1855) **What I did** Update the rif_rates/lua script to multiply by 1000 instead of FlexCounter class. related also to this PR - sonic-net/sonic-sairedis#878 Fix issue - sonic-net/sonic-buildimage#8392 **Why I did it** times were not calculated properly. **How I verified it** check that the output of cli and redis is close enough:
pettershao-ragilenetworks
pushed a commit
to pettershao-ragilenetworks/sonic-sairedis
that referenced
this pull request
Nov 18, 2022
sonic-net#878) According to https://github.com/Azure/SONiC/blob/ec6d35dd2c28491bfade19cfee990fe612f1e5e9/doc/rates-and-utilization/Rates_and_utilization_HLD.md, counterpoll command gives polling interval in milliseconds. So when converting them to seconds to be supplied to lua script this should be divide by 1000. However, syncd multiplies it by 1000. Changed the multiplication to none, and did the converting in lua script - sonic-net/sonic-swss#1855 Fixed issue - sonic-net/sonic-buildimage#8392
Janetxxx
pushed a commit
to Janetxxx/sonic-swss
that referenced
this pull request
Nov 10, 2025
… MS (sonic-net#1855) **What I did** Update the rif_rates/lua script to multiply by 1000 instead of FlexCounter class. related also to this PR - sonic-net/sonic-sairedis#878 Fix issue - sonic-net/sonic-buildimage#8392 **Why I did it** times were not calculated properly. **How I verified it** check that the output of cli and redis is close enough:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
Update the rif_rates/lua script to multiply by 1000 instead of FlexCounter class.
related also to this PR - sonic-net/sonic-sairedis#878
Fix issue - sonic-net/sonic-buildimage#8392
Why I did it
times were not calculated properly.
How I verified it
check that the output of cli and redis is close enough:
before the change:
Details if related