Limit PFC WD Detection time to maximum value of 1000[ms]#4188
Limit PFC WD Detection time to maximum value of 1000[ms]#4188dprital wants to merge 2 commits intosonic-net:masterfrom
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@kperumalbfn Can you help review? |
|
@dprital CPU consumption is a concern. I think that's also why we calculate the interval based on the number of ports. How do we ensure CPU has enough time to handle the redis queries? |
Tested on two systems (MSN2700 and MSN4600C) by running pfc_wd sonic-mgmt tests. all tests passed. |
|
@dprital can you please add the explanation of the logic as well as the max set to the code? and please extend the code coverage by extending the code to also check the 32 ports systems and 512 ports system. |
55fee42 to
64fda1a
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
64fda1a to
beeccb6
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
beeccb6 to
cda4aac
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: dprital <drorp@nvidia.com>
cda4aac to
18e7130
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
6ec96e2 to
449c045
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
449c045 to
6655b4f
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
6655b4f to
932c595
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: dprital <drorp@nvidia.com>
932c595 to
0a07430
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Closing this in favor of #4306 |
Fixing: sonic-net/sonic-buildimage#25033
Should be merged before: sonic-net/sonic-buildimage#25034
What I did
PFC WD Detection time is defined by the following calculation:
DEFAULT_POLL_INTERVAL * multiply
where:
There is an allowed range for this value which is between 100..3000 [ms].
For system with more than 448 ports, we will violate this range.
In addition, there is no meaning to have detection time of more than 1000[ms], hence, this change limit the maximum detection time for PFC WD to 1000[ms]
How I did it
Calculate PFC WD Detection time, if it become bigger than 1000[ms], set it to 1000[ms]
How to verify it
Run PFC WD Tests on several platforms
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)