-
Notifications
You must be signed in to change notification settings - Fork 16
Some questions #3
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
Comments
Other question, do you cache the entire file or only accessed blocks? |
Hi segator, Yes, the cache is persistent upon umount/remount. Each file is cached entirely, so not by accessed blocks. This could be an upcoming feature, but has the downside of putting partial files in the local cache filesystem, which means they can no longer be accessed directly. However, keeping in sync with the backend is much harder business. In roadmap as well, but with a longer timeframe... How it should work :
Thanks for your interest, and if you wish to contribute, do not hesitate ! |
So supose I have a FS with lot of large files and mcachefs. if I try to access 1M of the file, what exactly do the mcachefs? So in this hypothesis if I have an application that read the first 4M of all the files, |
Hi segator, yes, the whole file will be copied to local FS in the background, even if a few bytes have been read locally. Best regards, |
I have some questions,
can you limit max cache size? if the cache is full, do you delete older file accesed on the cache drive?
If you umount and remount the cache persist?
How mcachefs check if the cache is still in sync with the backend? (think about sshfs) you cache a file but modified from remote server.
Thanks!
The text was updated successfully, but these errors were encountered: