recipes-connectivity: disable NetworkManager-wait-online.service#341
Closed
DaizhuangBai wants to merge 1 commit into
Closed
recipes-connectivity: disable NetworkManager-wait-online.service#341DaizhuangBai wants to merge 1 commit into
DaizhuangBai wants to merge 1 commit into
Conversation
Introduce a networkmanager bbappend to disable NetworkManager-wait- online.service. NetworkManager-wait-online.service is auto-enabled via the "Also=" install hook in NetworkManager.service. However, it blocks startup and significantly increases boot time. Multiple targets have reported this issue, such as iq-615-evk and iq-8275-evk. Remove the install hook during do_install so wait-online is not enabled by default. Measured boot time improvement on iq-615-evk target: - before: ~28s - after: ~18s Signed-off-by: Daizhuang Bai <daizhuang.bai@oss.qualcomm.com>
Contributor
|
Can you please upload the bootchart so we can evaluate the services that are getting blocked? We need a better understanding of the boot flow, because it could as well just be working as expected (services that require network-online.target should indeed wait for a network). |
Author
|
From the bootup log, there are actually some services that require network-online.target, such as the following: But these services can retry to get network after device bootup, so I think there is no effect on them if we disable NetworkManager-wait-online.service I have raised another PR to merge into main, so close this PR |
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
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.
Introduce a networkmanager bbappend to disable NetworkManager-wait- online.service.
NetworkManager-wait-online.service is auto-enabled via the "Also=" install hook in NetworkManager.service. However, it blocks startup and significantly increases boot time. Multiple targets have reported this issue, such as iq-615-evk and iq-8275-evk. Remove the install hook during do_install so wait-online is not enabled by default.
Measured boot time improvement on iq-615-evk target: