-
Notifications
You must be signed in to change notification settings - Fork 648
[portsorch] Ports initialization speedup #3506
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
Merged
Merged
+559
−341
Conversation
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
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
volodymyrsamotiy
approved these changes
Feb 13, 2025
nazariig
approved these changes
Feb 18, 2025
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
Collaborator
|
/azp run |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
Checkers will pass once sairedis builds with sonic-net/sonic-sairedis#1509. |
Contributor
Author
|
/azpw run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
@prgeor Kindly reminding on this. |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azpw run |
Collaborator
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
dgsudharsan
reviewed
Sep 24, 2025
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
dgsudharsan
reviewed
Sep 24, 2025
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
dgsudharsan
approved these changes
Sep 24, 2025
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
approved for merge as this is pending for few months. |
stepanblyschak
added a commit
to stepanblyschak/sonic-swss
that referenced
this pull request
Sep 27, 2025
* [portsorch] Optimize port initialization Signed-off-by: Stepan Blyschak <[email protected]> * Add back get when init existing ports Signed-off-by: Stepan Blyschak <[email protected]> * Change mock function in fake_portsorch Signed-off-by: Stepan Blyschak <[email protected]> * Handle comments Signed-off-by: Stepan Blyschak <[email protected]> * Add a comment about scheduler groups query Signed-off-by: Stepan Blyschak <[email protected]> * Align fake_portsorch Signed-off-by: Stepan Blyschak <[email protected]> * Publish host if up event Signed-off-by: Stepan Blyschak <[email protected]> * Remove double definition Signed-off-by: Stepan Blyschak <[email protected]> * fix warm boot check Signed-off-by: Stepan Blyschak <[email protected]> * Remove obsolete code Signed-off-by: Stepan Blyschak <[email protected]> * read mtu on init Signed-off-by: Stepan Blyschak <[email protected]> * Add comment on registerPort Signed-off-by: Stepan Blyschak <[email protected]> --------- Signed-off-by: Stepan Blyschak <[email protected]> Co-authored-by: Sudharsan Dhamal Gopalarathnam <[email protected]> Co-authored-by: Prince Sunny <[email protected]>
Janetxxx
pushed a commit
to Janetxxx/sonic-swss
that referenced
this pull request
Nov 10, 2025
* [portsorch] Optimize port initialization Signed-off-by: Stepan Blyschak <[email protected]> * Add back get when init existing ports Signed-off-by: Stepan Blyschak <[email protected]> * Change mock function in fake_portsorch Signed-off-by: Stepan Blyschak <[email protected]> * Handle comments Signed-off-by: Stepan Blyschak <[email protected]> * Add a comment about scheduler groups query Signed-off-by: Stepan Blyschak <[email protected]> * Align fake_portsorch Signed-off-by: Stepan Blyschak <[email protected]> * Publish host if up event Signed-off-by: Stepan Blyschak <[email protected]> * Remove double definition Signed-off-by: Stepan Blyschak <[email protected]> * fix warm boot check Signed-off-by: Stepan Blyschak <[email protected]> * Remove obsolete code Signed-off-by: Stepan Blyschak <[email protected]> * read mtu on init Signed-off-by: Stepan Blyschak <[email protected]> * Add comment on registerPort Signed-off-by: Stepan Blyschak <[email protected]> --------- Signed-off-by: Stepan Blyschak <[email protected]> Co-authored-by: Sudharsan Dhamal Gopalarathnam <[email protected]> Co-authored-by: Prince Sunny <[email protected]>
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.
DEPENDS ON: sonic-net/sonic-sairedis#1509
What I did
Optimized port initialization process using the following approach:
Why I did it
To improve boot time for systems with many ports.
How I verified it
Ran fast-reboot and measure. Observed 45% reduction in time.
Details if related