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

Use memmap for fs cache layer #165

Open
ChillFish8 opened this issue Jan 16, 2025 · 0 comments
Open

Use memmap for fs cache layer #165

ChillFish8 opened this issue Jan 16, 2025 · 0 comments
Labels
0.10.0 Planned for the 0.10 milestone

Comments

@ChillFish8
Copy link
Member

Currently, lnx-fs uses a in memory cache which uses a least frequently used policy, this has some good advantages but currently we have two large issues:

  • Memory is not aligned
  • We cannot incrementally build up a file in the cache as a single contiguous (to rust at least) slice.

The goal of using memmap here is to allocate using anonymous memory the entire file, but only write and page in sections we currently have "cached".

This means the direct IO workers are still doing the reading and writing (which improves our support for NFS and similar block devices) while allowing use to fix the aforementioned issues.

@ChillFish8 ChillFish8 converted this from a draft issue Jan 16, 2025
@ChillFish8 ChillFish8 added the 0.10.0 Planned for the 0.10 milestone label Jan 18, 2025
@ChillFish8 ChillFish8 moved this from Todo to In Progress in lnx v0.10.0 Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.10.0 Planned for the 0.10 milestone
Projects
Status: In Progress
Development

No branches or pull requests

1 participant