mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #756] [MERGED] Optimize defaults #1626
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#1626
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?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/756
Author: @orozery
Created: 5/6/2018
Status: ✅ Merged
Merged: 5/23/2018
Merged by: @ggtakec
Base:
master← Head:optimize_defaults📝 Commits (3)
7a4696frecommend openssl over gnutls for performance4a72b60increase default stat cache size from 1000 to 10000086b0921enable FUSE read_sync by default📊 Changes
3 files changed (+16 additions, -2 deletions)
View changed files
📝
README.md(+1 -1)📝
src/cache.cpp(+1 -1)📝
src/s3fs.cpp(+14 -0)📄 Description
Details
This PR includes 3 changes to default s3fs configuration, in order to boost performance:
Each entry in the cache takes upto 0.5KB, so a full cache will take upto 0.5KB*100000 = 50MB of memory.
This can increase performance as async_read causes the creation of background threads that can create a bottleneck when reaching FUSE's max_background. On the other hand, you don't get the benefit when using async_read since s3fs allows only a single thread to read from a file at a time.
I verified that this patch increases the performance in the case of multiple threads reading different files at the same time.
@gaul @ggtakec Thanks in advance!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.