mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 05:16:00 +03:00
[PR #714] [MERGED] reduce lock contention on file open #1617
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#1617
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/714
Author: @orozery
Created: 2/4/2018
Status: ✅ Merged
Merged: 3/4/2018
Merged by: @ggtakec
Base:
master← Head:reduce_lock_contention📝 Commits (1)
0edf056reduce lock contention on file open📊 Changes
2 files changed (+65 additions, -56 deletions)
View changed files
📝
src/fdcache.cpp(+64 -55)📝
src/fdcache.h(+1 -1)📄 Description
Details
I found that when using use_cache and opening multiple files in parallel, you get a lock bottleneck on fd_manager_lock.
To improve the performance, I made two changes:
Prior to this PR, parallel open requests were served sequentially, with a 1s delay between each (because of the mirror file creation loop being stuck).
With this PR, this delays were gone, and parallel open are returning immediately.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.