Update pbr: remove sync slowdown ?#23
Open
bigsmile74 wants to merge 1 commit intomossdef-org:1.1.7from
Open
Conversation
What's the reason to use sync? Most of it runs in-memory or on a tmpfs. If you let Linux handle it will save about ~5 seconds in a restart. I only see it used in the following init files with a good reason: * boot: to cement initial config generation. * done: after removal of sysupgrade (substantial file size) * uhttpd to cement the certificate * umount to cement pending writes I experience no issues by removing them. before: ``` # time /etc/init.d/pbr restart real 0m 7.62s user 0m 1.31s sys 0m 0.37s ``` after: ``` # time ./pbr restart real 0m 2.37s user 0m 1.33s sys 0m 0.40s ``` Signed-off-by: bigsmile74 <118111679+bigsmile74@users.noreply.github.com>
Contributor
Author
|
Also and I did not mention this, there is the penalty of wear-leveling if users run from |
Collaborator
|
I believe when I first implemented the rt_tables updates there were issues with people ending up with corrupted tables, that's why the sync was implemented. The issue is if I accept the PR and start releasing new binaries, it may be a while until we get a corruption report. Again, let me sleep on this. |
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.
What's the reason to use sync? Most of it runs in-memory or on a tmpfs. If you let Linux handle it will save about ~5 seconds in a restart.
I only see it used in the following init files with a good reason:
I experience no issues by removing them.
before:
after: