FUSE Passthrough Mode Merged For Linux 6.9

Written by Michael Larabel in Linux Storage on 15 March 2024 at 03:13 PM EDT. 15 Comments
LINUX STORAGE
The FUSE passthrough mode that's been years in the making for better performance was merged upstream today for the in-development Linux 6.9 kernel!

Last month I wrote that FUSE passthrough might land for Linux 6.9 after noticing the patches finally appear in FUSE.git's "for-next" branch. This feature was indeed sent in as part of the FUSE updates for Linux 6.9 and today Linus Torvalds merged it upstream.

FUSE passthrough option


The FUSE passthrough mode allows for improved performance with user-space file-systems by avoiding the daemon overhead on a per-file basis whereby read/write operations are forwarded by the kernel directly to the lower file-system. The support depends on the new FUSE_PASSTHROUGH Kconfig switch for allowing this bypassing of the FUSE server via mapping specific FUSE operations to be performed directly on the backing file. As shown in last month's article, benchmarks on earlier versions of the FUSE passthrough mode has shown it performing much closer to the native I/O performance than with the existing FUSE implementation:

FUSE passthrough performance


The FUSE merge for Linux 6.9 sums up the feature as:
Add passthrough mode for regular file I/O.

This allows performing read and write (also via memory maps) on a backing file without incurring the overhead of roundtrips to userspace. For now this is only allowed to privileged servers, but this limitation will go away in the future

FUSE for Linux 6.9 also fixes up an interaction issue in direct I/O mode with memory maps, exposes file-system tags through sysfs for VirtIOFS, and various other fixes.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week