Skip to content

[action] [PR:14589] [pfcwd] Add half of polling time as compensation for test_pfcwd_timer_accuracy#14593

Merged
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/14589
Sep 14, 2024
Merged

[action] [PR:14589] [pfcwd] Add half of polling time as compensation for test_pfcwd_timer_accuracy#14593
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/14589

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

test_pfcwd_timer_accuracy case is flaky on Arisa platform. Sometimes the detect time is larger than the config detect time.
Both the config detect time and polling time are 400ms, and most of the real detect times range between 800 ~ 1000 ms.
Based on lua script log, in the failure loop (the detect time is larger than the config detect time), it took 3 polling durations to trigger the pfc storm, and in most of these cases, there was a little traffic in the first loop pooling duration. Suppose the timestamp for the script to send PFC frames was at the end of the first polling duration. then cause there were no enough PFC received and trigger the pfc storm in the third polling loop.

How did you do it?

Add half of polling time as compensation for the detect config time.

How did you verify/test it?

Run the case

Any platform specific information?

Broadcom

Supported testbed topology if it's a new test case?

Documentation

…_accuracy (sonic-net#14589)

What is the motivation for this PR?
test_pfcwd_timer_accuracy case is flaky on Arisa platform. Sometimes the detect time is larger than the config detect time.
Both the config detect time and polling time are 400ms, and most of the real detect times range between 800 ~ 1000 ms.
Based on lua script log, in the failure loop (the detect time is larger than the config detect time), it took 3 polling durations to trigger the pfc storm, and in most of these cases, there was a little traffic in the first loop pooling duration. Suppose the timestamp for the script to send PFC frames was at the end of the first polling duration. then cause there were no enough PFC received and trigger the pfc storm in the third polling loop.

How did you do it?
Add half of polling time as compensation for the detect config time.

How did you verify/test it?
Run the case
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #14589

@mssonicbld mssonicbld merged commit 4415eaa into sonic-net:202405 Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants