3 ms·
Yes, FUSE adds overhead. However, 1. kernel page cache fully removes the read overhead for in-memory pages 2. There's a FUSE_PASSTHROUGH mode that removes tha
by yencabulator 4y ago
Yes, FUSE adds overhead. However,
1. kernel page cache fully removes the read overhead for in-memory pages
2. There's a FUSE_PASSTHROUGH mode that removes that overhead for all reads & writes. I haven't studied exactly what writes LiteFS needs to observe (just journal vs all data writes), but at least for reads it seems to pass them straight through. We could well submit a FUSE_PASSTHROUGH_READ patch to the kernel, and use that to remove all read overhead. The patch should be trivial, since the full FUSE_PASSTHROUGH mode is there already.
Disclaimer: I wrote the FUSE framework LiteFS uses, https://bazil.org/fuse https://bazil.org/fuse
https://source.android.com/docs/core/storage/fuse-passthrough https://source.android.com/docs/core/storage/fuse-passthroug...
https://lwn.net/Articles/674286/ https://lwn.net/Articles/674286/
- cbsmith 4y agoI had totally forgotten about FUSE_PASSTHROUGH. That's a great insight. Thanks.