mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #2106] v1.91 slow and delay in generating xml files #1071
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#1071
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 @vcrego on GitHub (Feb 1, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2106
Additional Information
Version of s3fs being used (
s3fs --version)V1.91
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)2.9.2
Kernel information (
uname -r)4.14.301-224.520.amzn2.x86_64
GNU/Linux Distribution, if applicable (
cat /etc/os-release)NAME="Amazon Linux"
VERSION="2"
How to run s3fs, if applicable
[] /etc/fstab
s3fs#s3-bucket-name /mnt/s3-general fuse allow_other,umask=0007,uid=1001,gid=1001,stat_cache_expire=10,use_cache=/tmp,iam_role=auto,nonempty 0 0
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)2023-02-01T15:39:45.479Z [INF] s3fs.cpp:s3fs_open(2255): [path=/sftp/Development/Interfaces/Diamond/diamond_interface_output/CPPM_01_accounts.xml][flags=0x8000]
2023-02-01T15:39:45.479Z [INF] fdcache.cpp:GetFdEntity(485): [path=/sftp/Development/Interfaces/Diamond/diamond_interface_output/CPPM_01_accounts.xml][pseudo_fd=-1]
2023-02-01T15:39:45.480Z [INF] s3fs.cpp:s3fs_getattr(763): [path=/sftp/Development/Interfaces/Diamond/diamond_interface_output/CPPM_01_accounts.xml]
2023-02-01T15:39:45.480Z [INF] s3fs.cpp:s3fs_getattr(763): [path=/sftp/Development/Interfaces/Diamond/diamond_interface_output/CPPM_01_accounts.xml]
2023-02-01T15:39:45.481Z [INF] s3fs.cpp:s3fs_flush(2409): [path=/sftp/Development/Interfaces/Diamond/diamond_interface_output/CPPM_01_accounts.xml][pseudo_fd=3]
2023-02-01T15:39:45.481Z [INF] fdcache_entity.cpp:RowFlush(1347): [tpath=][path=/sftp/Development/Interfaces/Diamond/diamond_interface_output/CPPM_01_accounts.xml][pseudo_fd=3][physical_fd=41]
2023-02-01T15:39:45.481Z [INF] cache.cpp:DelStat(591): delete stat cache entry[path=/sftp/Development/Interfaces/Diamond/diamond_interface_output/CPPM_01_accounts.xml]
2023-02-01T15:39:45.481Z [INF] s3fs.cpp:s3fs_release(2467): [path=/sftp/Development/Interfaces/Diamond/diamond_interface_output/CPPM_01_accounts.xml][pseudo_fd=3]
2023-02-01T15:39:45.481Z [INF] fdcache.cpp:GetFdEntity(485): [path=/sftp/Development/Interfaces/Diamond/diamond_interface_output/CPPM_01_accounts.xml][pseudo_fd=3]
Details about issue
We have upgraded from version 1.86 to v1.91 on amazon linux. With this upgrade using same s3fs options as given in the fstab entry above. Issues are:
Please help how to improve with this new version, trying to get same performance like v 1.86. If there any options to be changed please advise. Thanks.
@ggtakec commented on GitHub (Feb 8, 2023):
@vcrego
In the log you gave me, I didn't find any lines indicating file delays.
If possible, add the
dbglevel=info(andcurldbg) option, and if there is a log obtained, it may be possible to analyze it.If you are using the
lscommand etc. in a directory with a large number of files, increasingstat_cache_expirelike the default value(900) may speed it up.In addition, although it is unknown whether it is related to this report, the default of the object(file/directory) compatibility option has been changed since V1.91.
If your 1000 files were created from a client other than s3fs, you may need to give the
compat_dirandcomplement_statoptions.@vcrego commented on GitHub (Feb 28, 2023):
@ggtakec Thanks for the response. We actually had to revert to earlier version which is stable to handle large set of data. The options I tried with v1.91 are below, however those definitely were not helping and were casing issue:
Please help with recommended options with this new v1.91 to get smooth performance just like v1.86, so that I can try and get back with mode details. Thanks.
fstab mount options tried:
allow_other,umask=0007,uid=1001,gid=1001,stat_cache_expire=10,use_cache=/tmp,iam_role=auto,nonempty 0 0
@ggtakec commented on GitHub (Mar 9, 2023):
@vcrego
Is your directory(on S3) which has many files created by s3fs?
If created with other S3 client tools, the
compat_dirandcomplement_statoptions may be required.Also, could you try the code on the master branch now?
Some bugs have been fixed and we would like to know the result of the master branch as well.
@gaul commented on GitHub (Mar 9, 2023):
You can also try
git bisectwhich might help us understand which commit caused this regression.