-
Notifications
You must be signed in to change notification settings - Fork 160
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
Launching container from image with significantly-sized VOLUME is slow #484
Comments
Thanks @struanb for filing this issue, will take a look very soon. |
Hi @struanb, I was able to repro the very severe slowdown you are seeing, and have root-caused it to Sysbox intercepting a couple of syscalls (fchown and llistxattr), both of which are used extensively when the inner Docker pulls & extracts the image, and when it copies the image's contents to a volume. If I remove the interception of those syscalls, the inner container image pull and start time are same as you would experience them at host level. There is a reason Sysbox intercepts those syscalls inside the container, but it's usually to cover corner cases, so the cost of intercepting them may not be worthwhile. I am thinking how to solve this. One possibility is to make the interception of those syscalls configurable, with the default being to not intercept. |
A solution for this has been merged and will be present in the upcoming v0.5.0 release. The solution is to tell Sysbox to not intercept the
Alternatively, one can ask Sysbox to do this for all containers by editing the sysbox-mgr systemd unit and adding the --allow-trusted-xattr=false flag to the sysbox-mgr's command line. After doing this, the problem mentioned in this PR is resolved. For example, starting the One caveat: the reason Sysbox intercepts the |
Note that this solution applies to the upcoming v0.5.0 release. It's not present in v0.4.1. |
Closing. |
Inside a Sysbox container, launching a container from an image derived from a Dockerfile that includes a VOLUME directive (and where contains a 'significant' amount of data, in my test case ~300Mb) is unreasonably slow.
To reproduce:
The text was updated successfully, but these errors were encountered: