Repository navigation
docs(engine): evaluate io_uring batching for disk commit path - #3439
Merged
Merged
Conversation
Audit the disk-commit thread's per-file syscall sequence, the existing fast_io io_uring infrastructure, and the feasibility of using IOSQE_IO_LINK to chain write -> fsync -> rename per file (and across files). Identifies that IoUringDiskBatch is allocated but never wired into process_file, that RENAMEAT (5.11+) and LINKAT (5.15+) opcodes are not yet plumbed in fast_io, and lays out a prototype-first plan with six concrete next steps and a benchmark gate.
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…#3439) Audit the disk-commit thread's per-file syscall sequence, the existing fast_io io_uring infrastructure, and the feasibility of using IOSQE_IO_LINK to chain write -> fsync -> rename per file (and across files). Identifies that IoUringDiskBatch is allocated but never wired into process_file, that RENAMEAT (5.11+) and LINKAT (5.15+) opcodes are not yet plumbed in fast_io, and lays out a prototype-first plan with six concrete next steps and a benchmark gate.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…#3439) Audit the disk-commit thread's per-file syscall sequence, the existing fast_io io_uring infrastructure, and the feasibility of using IOSQE_IO_LINK to chain write -> fsync -> rename per file (and across files). Identifies that IoUringDiskBatch is allocated but never wired into process_file, that RENAMEAT (5.11+) and LINKAT (5.15+) opcodes are not yet plumbed in fast_io, and lays out a prototype-first plan with six concrete next steps and a benchmark gate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/audits/disk-commit-iouring-batching.mdevaluating io_uring batching for the disk commit thread (task Add RSYNC_CONNECT_PROG support for module listings #1086).open->write*-> optionalfsync->close->rename/linkat) and identifies thatIoUringDiskBatchis allocated indisk_thread_mainbut never plumbed intoprocess_file/process_whole_file.IOSQE_IO_LINKchains vs cross-file batching, quantifies the syscall savings (3-5 -> 2 per file in the temp+rename path), and enumerates risks: partial chain failure,--inplaceset_lenhaving no opcode,--partial-dirEXDEV,O_TMPFILE+linkat(AT_SYMLINK_FOLLOW)semantics under io_uring, and per-opcode kernel probing (RENAMEAT 5.11+, LINKAT 5.15+).commit_chainhelper, criterion bench, gated wiring, buffer-lifetime fix, log-line correctness) and a >=15% user-CPU reduction gate on the small-file no-fsync scenario before any merge.Test plan