-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Mellanox] Add a configuration to delay start xcvrd for fast-reboot #5643
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
device/mellanox/x86_64-mlnx_msn2700-r0/pmon_daemon_control.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"skip_ledd": true, | ||
"skip_fancontrol": true | ||
"skip_fancontrol": true, | ||
"delay_xcvrd": true | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,11 @@ dependent_startup_wait_for=start:exited | |
|
||
{% if not skip_xcvrd %} | ||
[program:xcvrd] | ||
{% if delay_xcvrd %} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what if delay_xrcvd is not defined? will this throw exception? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just did a quick check. It won't throw exception if delay_xcvrd is not defined. |
||
command=bash -c "sleep 30 && /usr/local/bin/xcvrd" | ||
{% else %} | ||
command=/usr/local/bin/xcvrd | ||
{% endif %} | ||
priority=6 | ||
autostart=false | ||
autorestart=false | ||
|
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.
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.
Should this be configurable, or should we simply always delay the xcvrd start?
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.
IMO we should simply always delay, like it is done with counters.
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.
I heard that there are vendors that depend on the xcvrd to finish their fast-reboot, I am not so sure about that, I was not in that loop before. But if there is no vendor need that, we can simply always delay it. @jleveque any suggestion?
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.
I am not familiar with the requirements of fast-reboot on various platforms. @yxieca, @lguohan: are you aware of any platforms which depend on xcvrd to finish fast-reboot?
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.
@jleveque As we discussed last time, besides of just monitoring xcvrd dynamically tunes transceivers on some platforms. Thus, if not, on fast-reboot there might be port operationally down longer time.
Guohan can correct me if this is the case.
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.
@lguohan: My question is do we need to make this customizable, or should we simply delay it on all platforms? If delaying on all platforms will cause no harm with fast-reboot, then I think it should be delayed on all platforms to make things more universal and also to prevent adding extra complexity.
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.
@jleveque In our platforms xcvrd is used to program pre-emphasis and thus a delay would might even lead to ports not coming up. Moreover ins 400G platforms complex initializations need to be done to bring port up and delaying xcvrd there would affect fastboot. Hence we prefer having a platform knob and by default there should be no delay.
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.
Thanks, @dgsudharsan. Then we will proceed with this approach, adding a new
delay_xcvrd
parameter.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.
does this means we can sign off it and have it taken to 201911 as well?
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.
I have signed off.