Is it possible to have a Linux VFS cache with the FUSE file system?

It seems that the Linux VFS cache by default does not work with the FUSE file system. For example, the read call appears to be systematically forwarded to the FUSE file system.

I am working on a remote FUSE file system. I need a very aggressive cache.

Do I need to implement my own page cache? Or can I activate the Linux VFS cache for this particular FUSE file system? Or does someone know a good FUSE proxy / cache FUSE file system (or some kind of C library to do this without reinventing the wheel)?

Bonus question:

If I need to implement my own page cache, I am thinking of using the REDIS daemon to work with LRU materials. I'm pretty sure this might be a good option for caching metadata. But for pages, I'm not sure if this will be better than a simple local directory (with a VFS cache) or than / dev / shm. But I will lose the automatic LRU cleanup. Does anyone know something like / dev / shm with automatic LRU cleanup?

Additional information: the file system is read-only, and the remote side is almost unchanged; the remote side contains very large files that I cannot copy to the local directory.

+3
source share
2 answers

, FFS FUSE. FUSE .

fuse-cache; , .

+1

FUSE auto_cache. FUSE , , .

0

Source: https://habr.com/ru/post/1782664/


All Articles