add fuse-over-io_uring support
Get series with b4
b4 am [email protected]Versions newest first
- v4 Latest6 of 7 patches 11 repliesIn review
Changes in this version from the cover letter
- Reorganized patch structure.
- Unified naming of Uring data structures (e.g. FuseRing -> FuseUring)
- Refactored FUSE_IN/OUT_OP_STRUCT_LEGACY
- Code cleanup and logic simplification:
- Used the io_uring flag to indicate the intention to enable Fuse-over-io_uring.
- Used uring_started to track the active state.
- Removed unnecessary #ifdef CONFIG_LINUX_IO_URING guards.
- Moved fuse_fd closing to BH in uring mode to prevent data races.
- Updated tests: now using mount to verify if the test image mount is fully gone.
6 of 7 patches are in this archive. The cover letter announces 7.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | aio-posix: enable 128-byte SQEsutil/ | +6 | 1 reply | |
| 2/7 | fuse: io_uring mode initblock/ | +414 | 4 replies | |
| 3/7 | fuse: uring support for write opsblock/ | +37 | 1 reply | |
| 4/7 | fuse: refactor FUSE request handlerblock/ | +301 | 3 replies | |
| 6/7 | fuse: add 'io-uring' optionblock/ docs/ qapi/ +1 more | +11 | 2 replies | |
| 7/7 | fuse: add io_uring test supporttests/ tests/ | +35 | 1 reply |
Reviews trailers per patch
4 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Markus Armbruster | Stefan Hajnoczi |
|---|---|---|
| Series | R-b | |
| 1/7 | R-b | |
| 2/7 | ||
| 3/7 | R-b | |
| 4/7 | ||
| 6/7 | A-b | R-b |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/7] add fuse-over-io_uring support
Hello everyone,
This patch series introduces native io_uring support for FUSE storage export to overcome the scalability limits of the /dev/fuse interface. By utilizing shared memory ring buffers and per-core queues, this feature drastically reduces context switch overhead and lock contention. This allows FUSE export daemons to achieve much higher throughput and lower latency by minimizing the userspace-kernel switch penalty.
More details on Fuse-over-io_uring:
https://docs.kernel.org/filesystems/fuse/fuse-io-uring.html
Changes in this version:
- Reorganized patch structure.
- Unified naming of Uring data structures (e.g. FuseRing -> FuseUring)
- Refactored FUSE_IN/OUT_OP_STRUCT_LEGACY
- Code cleanup and logic simplification:
- Used the io_uring flag to indicate the intention to enable Fuse-over-io_uring.
- Used uring_started to track the active state.
- Removed unnecessary #ifdef CONFIG_LINUX_IO_URING guards.
- Moved fuse_fd closing to BH in uring mode to prevent data races.
- Updated tests: now using mount to verify if the test image mount is fully gone.
More detail in the v3 cover letter:
https://lists.nongnu.org/archive/html/qemu-block/2025-08/msg00325.html
V2 cover letter:
https://lists.nongnu.org/archive/html/qemu-block/2025-08/msg00140.html
V1 cover letter:
https://lists.nongnu.org/archive/html/qemu-block/2025-07/msg00280.html
We used fio to test a 1GB file under both legacy FUSE and FUSE-over-io_uring modes. The experiments were conducted with the following iodepth and numjobs configurations: 1-1, 64-1, 1-4, and 64-4, with 70% read and 30% write mix. This resulted in a total of 8 test cases, measuring both latency and throughput.
Performance Results:
[Bandwidth (MiB/s)]
| Config (Job/QD) | Read (Leg -> Uring) | Write (Leg -> Uring)| |------------------|---------------------|---------------------| | 1 Job, QD=1 | 72.2 -> 104 | 30.9 -> 44.7 | | 1 Job, QD=64 | 114 -> 181 | 48.8 -> 77.7 | | 4 Jobs, QD=1 | 109 -> 159 | 47.0 -> 68.5 | | 4 Jobs, QD=64 | 106 -> 160 | 45.7 -> 68.9 |
[Latency (usec)]
| Config (Job/QD) | Read (Leg -> Uring) | Write (Leg -> Uring)| |------------------|---------------------|---------------------| | 1 Job, QD=1 | 37.0 -> 23.7 | 36.9 -> 29.5 | | 1 Job, QD=64 | 1537 -> 964 | 1535 -> 967 | | 4 Jobs, QD=1 | 96.6 -> 66.4 | 114.2 -> 71.9 | | 4 Jobs, QD=64 | 6560 -> 4234 | 6600 -> 4280 |
Brian Song (7):
[Patch v4 1/7] aio-posix: enable 128-byte SQEs [Patch v4 2/7] fuse: io_uring mode init [Patch v4 3/7] fuse: uring support for write ops [Patch v4 4/7] fuse: refactor FUSE request handler [Patch v4 5/6] fuse: safe termination for io_uring [Patch v4 6/7] fuse: add 'io-uring' option [Patch v4 7/7] fuse: add io_uring test support
block/export/fuse.c | 958 +++++++++++++++++++++++---- docs/tools/qemu-storage-daemon.rst | 7 +- qapi/block-export.json | 5 +- storage-daemon/qemu-storage-daemon.c | 1 + tests/qemu-iotests/check | 2 + tests/qemu-iotests/common.rc | 47 +- util/fdmon-io_uring.c | 7 +- 7 files changed, 879 insertions(+), 148 deletions(-)
--
2.43.0