-
Notifications
You must be signed in to change notification settings - Fork 769
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
severe performance issue with buildah bud when copying recursive folders #2047
Comments
@gireeshpunathil Thanks for the issue. Most of the team is enjoy PTO until the new year. If we don't get to it before, we'll definitely dive in at the start of the year. |
@mheon FYI |
👍 thanks @TomSweeneyRedHat, you have been greatly helpful as always! sure, let us tackle this in the new year! |
Are you using a .dockerignore file? |
I am not; but can try that, if required. Any steps / suggestions? |
No we have seen performance issues when using .dockerignore Could you try a newer version of buildah to see if it has an issue, say on a Fedora box? |
@rhatdan - thnx. I don't have a fedora box, but created a container from
any suggestions? |
This looks like you have storage on an overlayfs file system? Are you running buildah inside of a container? |
yes, in this case - as I don't have a normal fedora system. |
Then volume mount a directory on /var/lib/containers and overlay will work. |
@rhatdan - I am unable to upgrade
|
You are using RHEL. Did you try to mount a file system at /var/lib/containers? |
@rhatdan - thnx
Yes, unfortunately I don't have system with fedora installed, I am using a container (fedora:latest) in a rhel host
Yes, it did not make any visible difference w.r.t performance |
Perhaps this will fix the issue. |
thanks @rhatdan for fixing this. do you know when a release is going to be cut out of it? I tried building
|
@gireeshpunathil Thanks for the heads up on the install instructions, I'm not quite sure what's going on there. I'll most likely spin up a new release by early next week for Buildah. |
@rhatdan @TomSweeneyRedHat - some updates. when I upgraded the go version to 1.13.6 (by default, it was installing 1.9.4 for whatever reason), the build issues went away. And with that, I am able to custom build and test the patch for #2070
old case
good case
as we can see, the thanks once again, will wait upon quay.io for a release! |
Glad it's working and thanks for the Go version update too. That's not something that I've run into. I can't take much credit on the fix though, @nalind did all the heavy lifting on this one. |
thanks @nalind for quickly turning around this! |
@gireeshpunathil - Could you please accommodate Kyle G. Christianson request: |
@marikaj123 - looks like you probably meant to put this comment in kabanero-io/kabanero-pipelines#121 instead of here? either way, answer is yes, will do. |
buildah was fixed at v1.9.0 due to bind mount issues when interacted with a buggy fuse-overlay module. But this proved to be poorly performing for certain stacks when exercised in the pipeline. Upgrade buildah to latest that has the fix for the performance issue, while documenting the requirement for fuse-overlay Fixes: kabanero-io/kabanero-pipelines#121 Refs: containers/buildah#2047
As this appears to be addressed in Buildah based on @gireeshpunathil 's comments, I'm closing this. @gireeshpunathil Please feel free to open another issue if things aren't going as expected with Buildah. |
Description
I am composing an image from a large (~200MB) project structure using
buildah bud
that never completes. Here is the full bug report for reference: kabanero-io/kabanero-pipelines#121I have brought it down to a simple recreate for easy diagnosis
Steps to reproduce the issue:
$ ls -lrt
$ cat Dockerfile
$ cat foo.sh
As you can see, a folder structure with 1K+ directories inside an 4MB of data takes 1 minute + where as a a monolith file of 5MB just takes over a second.
Describe the results you received:
unexpected delay in
COPY
directive. When I tried to trace usingstrace
I believe things started moving faster, but because of the change in timings that is involved withstrace
, results are never conclusiveDescribe the results you expected:
Few seconds for copying - parity with
docker build
commandOutput of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: