mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #2694] Cache fills up whole fs on write when tmpfs is not mounted on /tmp #1281
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1281
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @grebokra on GitHub (Jul 25, 2025).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2694
Additional Information
Version of s3fs being used (
s3fs --version)Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)Provider (
AWS,OVH,Hetzner,iDrive E2, ...)Kernel information (
uname -r)GNU/Linux Distribution, if applicable (
cat /etc/os-release)How to run s3fs, if applicable
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)N/A
Details about issue
I've noticed a strange behaviour when I upload big files (about ~512GiB in size) to s3 bucket via s3fs-fuse.
Here is an example of how files are being written:
The man page for s3fs states the following:
Therefore, I assume that s3fs should use as much space in the filesystem for /tmp directory as it takes for 2 parts (in my case it is ~512MiB) of multipart upload at a given moment in time.
When
tmpfsis mounted in /tmp not much space is being used. There is a cache file in tmp that I can see usinglsof, and the number in the SIZE column increases during writing, buttmpfsdoes not fill up as I see indf -h, so I assume everything works as expected (and the file write finishes without an issue after whole 512G file is uploaded to the bucket)The behavior seems to be different when
tmpfsis not mounted in /tmp, andxfs(rootfs) is used for storing cache data. The filesystem fills up quickly.Here is the output of
xfs_info, if it can help in any wayI assume there might be some kind of bug regarding handling truncation of cache file.
If I'm doing something wrong, please let me know :^)
P.S.: I use
nomixuploadoption, because ceph rgw handles copypart operations very slowly... therefore one multipart upload without copying is much better in my case.