News for hackers. Stuff that matters.
Re:LiteFS by yencabulator on Thursday September 22, 2022 @11:49AM (#32940620)
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://source.android.com/docs/core/storage/fuse-passthroug... https://lwn.net/Articles/674286/

Re:LiteFS by cbsmith on Thursday September 22, 2022 @05:35PM (#32944920)
I had totally forgotten about FUSE_PASSTHROUGH. That's a great insight. Thanks.