kernel: enable CONFIG_OVERLAY_FS_METACOPY for sysbox#38
Merged
Conversation
Without metacopy, sysbox's chown-based UID remapping copies full file contents on overlayfs, which is extremely slow for large container images. With metacopy enabled, overlayfs copies only metadata during chown operations.
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.
Summary
CONFIG_OVERLAY_FS_METACOPY=yin the sysbox kernel config fragment--disable-ovfs-on-idmapped-mounttosysbox-mgr.serviceBackground
We are no longer pursuing the overlayfs
FS_ALLOW_IDMAPkernel patch route.Current upstream overlayfs still does not support that path, so sysbox must avoid trying to use overlayfs on idmapped mounts. With
--disable-ovfs-on-idmapped-mount, sysbox consistently uses its compatibility fallback instead of hitting the broken path.That fallback is only practical if overlayfs metacopy is enabled. Without
CONFIG_OVERLAY_FS_METACOPY=y, sysbox's chown-based UID remapping can trigger full data copies on large images and become prohibitively slow. With metacopy enabled, only metadata is copied, which keeps container startup usable.Test plan
bitbake virtual/kernelCONFIG_OVERLAY_FS_METACOPY=yin kernel configsysbox-mgrstarts with--disable-ovfs-on-idmapped-mount