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

vm: Optimise mount options for speed #611

Merged
merged 1 commit into from
Mar 29, 2022
Merged

Conversation

simondeziel
Copy link
Contributor

Enable the following mount options on VM rootfs:
btrfs: nobarrier,commit=300,noatime
ext4: nobarrier,commit=300,noatime,data=writeback

Those are normally not recommended but for distrobuilder, it
make sense to have everything copied over as fast as possible
and then persisted properly to disk. We don't care about crash
consistency/fs recovery when building an image.

I used those options when building my own images (before
distrobuilder what a thing) and they allowed faster copying.

Enable the following mount options on VM rootfs:
 btrfs: nobarrier,commit=300,noatime
 ext4: nobarrier,commit=300,noatime,data=writeback

Those are normally not recommended but for distrobuilder, it
make sense to have everything copied over as fast as possible
and then persisted properly to disk. We don't care about crash
consistency/fs recovery when building an image.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@stgraber stgraber merged commit 731db0d into lxc:master Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants