Skip to content

docs(audits): per-file vs shared io_uring ring small-file plan - #3835

Merged
oferchen merged 1 commit into
masterfrom
docs/per-file-vs-shared-uring-1410
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/per-file-vs-shared-uring-1410

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/audits/per-file-vs-shared-uring-ring.md for task Add xtask branding command and correct CI CLI test target #1410.
  • Maps the current ring lifecycle in crates/fast_io/src/io_uring/: per-file rings via writer_from_file_with_depth / reader_from_path_with_depth, vs the existing per-session rings in IoUringDiskBatch and SharedRing.
  • Quantifies per-file cost: io_uring_setup(2), SQ/CQ/SQE mmap churn, registered-buffer pin/unpin, and the SQPOLL kernel thread per file.
  • Lays out shared-session trade-offs: submission contention, registered-buffer reuse, fallback chain, and the RegisteredBufferGroup drop-order invariant.
  • Specifies a benchmark matrix (Tiny 100K x 1 KiB, Mid 100K x 64 KiB, Mixed 80/20) across per_file / disk_batch / session_pool topologies with throughput, p50/p99 latency, io_uring_setup count, and mm->pinned_vm peak as metrics.

Test plan

  • Verify doc renders cleanly on GitHub.
  • Confirm wc -l stays under 350 lines.
  • Confirm cited paths match the tree (crates/fast_io/src/io_uring/mod.rs, disk_batch.rs, shared_ring.rs, transfer/src/transfer_ops/response.rs, transfer/src/generator/mod.rs).

Tracks task #1410 with a benchmark plan for promoting the receiver hot
path off per-file io_uring rings. Surveys the lifecycle in
crates/fast_io/src/io_uring/, quantifies io_uring_setup, mmap, and SQPOLL
costs at 100K-file scale, and lays out throughput / latency metrics for
the per-file vs disk_batch vs session-pool topologies.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit 4aaac76 into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the docs/per-file-vs-shared-uring-1410 branch May 8, 2026 03:48
oferchen added a commit that referenced this pull request May 18, 2026
Tracks task #1410 with a benchmark plan for promoting the receiver hot
path off per-file io_uring rings. Surveys the lifecycle in
crates/fast_io/src/io_uring/, quantifies io_uring_setup, mmap, and SQPOLL
costs at 100K-file scale, and lays out throughput / latency metrics for
the per-file vs disk_batch vs session-pool topologies.
oferchen added a commit that referenced this pull request Aug 24, 2026
Tracks task #1410 with a benchmark plan for promoting the receiver hot
path off per-file io_uring rings. Surveys the lifecycle in
crates/fast_io/src/io_uring/, quantifies io_uring_setup, mmap, and SQPOLL
costs at 100K-file scale, and lays out throughput / latency metrics for
the per-file vs disk_batch vs session-pool topologies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant