-
Notifications
You must be signed in to change notification settings - Fork 717
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
Optimizing testQosSaiHeadroomPoolSize runtime #8775
Conversation
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
1 similar comment
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
1 similar comment
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
630edbc
to
8192278
Compare
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
@vmittal-msft Could you check and review this PR ? |
974a6d1
to
6bdf682
Compare
tests/saitests/py3/sai_qos_tests.py
Outdated
@@ -2269,7 +2269,14 @@ def runTest(self): | |||
send_packet( | |||
self, self.src_port_ids[sidx_dscp_pg_tuples[i][0]], pkt, int(pkt_cnt)) | |||
|
|||
time.sleep(8) # wait pfc counter refresh | |||
time.sleep(8) # wait pfc counter refresh and show the counters | |||
for i in range(0, self.pgs_num): |
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.
Please modify for voq chassis only and no change for other platforms.
6bdf682
to
3f996ce
Compare
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
09a6484
to
8ee93fb
Compare
(cherry picked from commit f35a45c9958716d5ed01f2134a3288ae0119ec48) (cherry picked from commit c815ae141e59e00fd4e9d83212aed184fe90c8a3)
2758fd2
to
fa17a19
Compare
@ansrajpu-git Could you confirm the qos tests result with this change with latest master, We can merge it in if things are fine, |
@ansrajpu-git PR conflicts with 202205 branch |
* Optimizing HeadroomPoolSize runtime
Cherry-pick PR to 202305: #9704 |
* Optimizing HeadroomPoolSize runtime
* Optimizing HeadroomPoolSize runtime
…#8775) * Optimizing HeadroomPoolSize runtime
Description of PR
HeadroomPoolSize was taking more that ~14 mins to complete the test which results in the port flapping while test run
The sleep time added inside the loop contribute a lot to the long running iterations.
Summary:
Below are the changes in 3 loop structure in HeadroomPoolSize test:
1.Loop to fill all pgs_num service pool: Instead of 8 sec sleep every time after send packet and show port. Sleep time is added after packets are sent to all the pgs_num and then added another loop for show_port_counter iterating pgs_num .
2.Loop iterating pgs_num for sending TCP packet: Instead of sleep time every iteration before show_port_counter; Sleep time of 8 sec is allotted for non broadcom-dnx box.
3.Loop to fill all pgs_num headroom pool: Instead of 8 sec sleep every time after send packet and run show port.Sleep time is added after packets are sent to all the pgs_num and added another loop for show_port_counter iterating pgs_num .
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
HeadroomPoolsize test failing with ".....Caught exception socket.timeout: timeout(), , <class 'socket.timeout'>" ERROR in sai_thrift_port_tx_enable..........
Observed that each test takes ~14mins .since the port channel ports are kept tx disabled for that long duration which results in lacp packet drop.This is due to voq credits getting exhausted on the destination port , and port channel bounces
How did you do it?
Reduce the test execution runtime by removing redundant sleep time in the loop.
How did you verify/test it?
Executed qos test cases for T2 topology
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation