Skip to content
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

[202405]: Speed up route_check.py #3604

Conversation

deepak-singhal0408
Copy link
Contributor

What I did

This is a cherry pick PR for 202405. Master branch PR: #3544
PR fixes sonic-net/sonic-buildimage#18773

How I did it

Parallely execute route_check on each Asic.
Parallelly fetch ipv4 routes and ipv6 routes.

How to verify it

execute "time route_check.py" on T2 chassis having 32k v4+32k v6 routes.
Results:
Verified on DUT running 202405.
Before:
Checking routes for namespaces: ['asic0', 'asic1']

real 3m16.387s
user 1m26.084s
sys 0m7.275s

After:
time route_check.py
real 1m30.675s
user 1m33.777s
sys 0m8.209s

Previous command output (if the output of a command-line utility has changed)

None

New command output (if the output of a command-line utility has changed)

None

@mssonicbld
Copy link
Collaborator

/azp run

@deepak-singhal0408 deepak-singhal0408 self-assigned this Nov 7, 2024
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@deepak-singhal0408 deepak-singhal0408 changed the title Speed up route_check.py [202405]: Speed up route_check.py Nov 7, 2024
@deepak-singhal0408
Copy link
Contributor Author

MSFT ADO: 30169130

@deepak-singhal0408
Copy link
Contributor Author

@arlakshm can you help review this cherry-pick PR? Thanks

@deepak-singhal0408
Copy link
Contributor Author

@bingwang-ms could you help merge this PR? Thanks,

@bingwang-ms bingwang-ms merged commit 4f7ed16 into sonic-net:202405 Nov 13, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants