[GH-ISSUE #382] Usage of stat_cache_expire=<expiration seconds> turns off stat cache for all values of <expiration seconds> #201

Closed
opened 2026-03-04 01:43:11 +03:00 by kerem · 2 comments
Owner

Originally created by @adupon on GitHub (Mar 29, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/382

When I include stat_cache_expire option, s3fs does not use the stat cache at all...

/usr/bin/s3fs mybucket /mnt/mybucket -ostat_cache_expire=10000,passwd_file=/etc/passwd-s3fs

I tested this using

ls /mnt/mybucket ; ls /mnt/mybucket

When stat_cache_expire is included as an option... both ls commands take about 10 seconds each.. When I remove the stat_cache_expire option... the first command takes 10 seconds, the second command is instant...

s3fs --version
Amazon Simple Storage Service File System V1.79(commit:cf56b35) with OpenSSL

Originally created by @adupon on GitHub (Mar 29, 2016). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/382 When I include stat_cache_expire option, s3fs does not use the stat cache at all... /usr/bin/s3fs mybucket /mnt/mybucket -ostat_cache_expire=10000,passwd_file=/etc/passwd-s3fs I tested this using ls /mnt/mybucket ; ls /mnt/mybucket When stat_cache_expire is included as an option... both ls commands take about 10 seconds each.. When I remove the stat_cache_expire option... the first command takes 10 seconds, the second command is instant... s3fs --version Amazon Simple Storage Service File System V1.79(commit:cf56b35) with OpenSSL
kerem 2026-03-04 01:43:11 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@grutherford commented on GitHub (Apr 4, 2016):

I get the same issue also using v1.79 I enabled stat_cache_expire as the server memory was all getting used, since implementing this nothing is cached, do we need to set another option at the same time?

<!-- gh-comment-id:205292665 --> @grutherford commented on GitHub (Apr 4, 2016): I get the same issue also using v1.79 I enabled stat_cache_expire as the server memory was all getting used, since implementing this nothing is cached, do we need to set another option at the same time?
Author
Owner

@ggtakec commented on GitHub (May 14, 2016):

@adupon and @grutherford, I'm very sorry for my late reply.

I can reproduce your report issue content, and it is a fatal bug.
So I fixed it by #415

Please use latest master branch code.
Regards,

<!-- gh-comment-id:219209847 --> @ggtakec commented on GitHub (May 14, 2016): @adupon and @grutherford, I'm very sorry for my late reply. I can reproduce your report issue content, and it is a fatal bug. So I fixed it by #415 Please use latest master branch code. Regards,
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#201
No description provided.