You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
toolbox becomes unusably slow when creating lots of small files in /tmp #513
I have a process that from time to time creates lots of log files on /tmp. In the order of tens or hundreds of thousands. When this happens, fuse-overlayfs uses 100% of the CPU and everything works very slowly.
Trying to remove /tmp contents is particularly slow. Restarting the container doesn't help.
Have you tested this in other folders inside the sandbox or folder in your home? As far as I know, rootless podman is very slow when it comes to file IO in general.
$ podman run --rm -it --env=TERM=$TERM registry.fedoraproject.org/f31/fedora-toolbox:31 /bin/bash
/tmp is mounted as a fuse-overlayfs, both in Toolbox containers and in stock Podman containers, so I'd say this needs to be moved to fuse-overlayfs. Although, I do wonder why Podman isn't mounting a tmpfs on /tmp.
this is definitely a fuse-overlayfs issue. Even if we manage to make it faster, dealing with so many files will always be slow using a FUSE file system.
Would it be possible to mount a tmpfs on /tmp? I think that is the best solution.
Would it be possible to mount a tmpfs on /tmp?
I think that is the best solution.
Yes, I think so too. I was wondering if that's something Podman should do by default, or whether it's better if Toolbox explicitly did it. I am fine with either alternative.
Yes, I think so too. I was wondering if that's something Podman should do by default, or whether it's better if Toolbox explicitly did it. I am fine with either alternative.
I'd also prefer we had a tmpfs by default, but I think we are just following what Docker does.
Yes, I confirm this is an issue with podman too. What's interesting is what's keeping fuse-overlayfs busy once the files are created. I'm trying to reproduce the issue again to find out about that.
Yes, I confirm this is an issue with podman too. What's interesting
is what's keeping fuse-overlayfs busy once the files are created. I'm
trying to reproduce the issue again to find out about that.
Thank you for digging into it! Feel free to file an issue against fuse-overlayfs if you find anything, and CC me.
Activity
A6GibKm commentedon Jul 24, 2020
Have you tested this in other folders inside the sandbox or folder in your home? As far as I know, rootless podman is very slow when it comes to file IO in general.
debarshiray commentedon Jul 28, 2020
Can you reproduce this with:
/tmpis mounted as afuse-overlayfs, both in Toolbox containers and in stock Podman containers, so I'd say this needs to be moved tofuse-overlayfs. Although, I do wonder why Podman isn't mounting atmpfson/tmp.@giuseppe ?
giuseppe commentedon Jul 29, 2020
this is definitely a fuse-overlayfs issue. Even if we manage to make it faster, dealing with so many files will always be slow using a FUSE file system.
Would it be possible to mount a tmpfs on
/tmp? I think that is the best solution.debarshiray commentedon Jul 29, 2020
Yes, I think so too. I was wondering if that's something Podman should do by default, or whether it's better if Toolbox explicitly did it. I am fine with either alternative.
Thanks for taking a look, @giuseppe
giuseppe commentedon Jul 29, 2020
I'd also prefer we had a tmpfs by default, but I think we are just following what Docker does.
cmd/initContainer: Mount a tmpfs at /tmp to match the host
hferreiro commentedon Aug 5, 2020
Yes, I confirm this is an issue with podman too. What's interesting is what's keeping fuse-overlayfs busy once the files are created. I'm trying to reproduce the issue again to find out about that.
cmd/initContainer: Mount a tmpfs at /tmp to match the host
debarshiray commentedon Aug 5, 2020
Thank you for digging into it! Feel free to file an issue against fuse-overlayfs if you find anything, and CC me.