Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block read cache #758

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Block read cache #758

wants to merge 10 commits into from

Conversation

jia-kai
Copy link

@jia-kai jia-kai commented Jun 8, 2023

I added a block read cache mode, which essentially divides the file into blocks that are managed by an LRU cache. Cache size is currently fixed at startup. All opened files share the same cache structure. Serial read performance is maintained via read ahead on the block-level cache. Random access performance improves a lot, which can be further improved via parallel read (using different fds) on the same file. The code is also cleaner and supposedly more robust and easier to maintain because we no longer need the buffer pool.

This new mode serves my use case well. I am not sure if anyone else is interested in this. Feedback is welcome.

voyvodov added a commit to voyvodov/goofys that referenced this pull request Sep 13, 2024
voyvodov added a commit to voyvodov/goofys that referenced this pull request Sep 13, 2024
voyvodov added a commit to voyvodov/goofys that referenced this pull request Sep 13, 2024
voyvodov added a commit to voyvodov/goofys that referenced this pull request Sep 13, 2024
voyvodov added a commit to voyvodov/goofys that referenced this pull request Sep 16, 2024
voyvodov added a commit to voyvodov/goofys that referenced this pull request Sep 16, 2024
voyvodov added a commit to voyvodov/goofys that referenced this pull request Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant