Skip to content

docs(design): adaptive sizing for io_uring registered buffer pool (#2045) - #3708

Merged
oferchen merged 1 commit into
masterfrom
docs/io-uring-adaptive-buffer-pool-2045
May 5, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/io-uring-adaptive-buffer-pool-2045

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • New design doc at docs/design/io-uring-adaptive-buffer-pool.md (450 lines) specifying phase 2 of Align cross-compile matrix with build_daemon metadata #2045: a feedback-driven sizer for RegisteredBufferGroup that consumes the acquire/miss telemetry already on the type.
  • Cites the static registered_buffer_count: usize = 8 default at crates/fast_io/src/io_uring/config.rs:339, the kernel ceiling at crates/fast_io/src/io_uring/registered_buffers.rs:80, and the analogous engine BufferPool grow/shrink wiring at crates/engine/src/local_copy/buffer_pool/pool.rs:137-147,650 and pressure.rs:29-59,107,120.
  • Covers the kernel-resource cost of resize (full unregister/register cycle, pinned-page accounting, quiescence requirement), hysteresis with a 4x check-interval cooldown, hidden vs user-facing API surface, unit + integration test plan, cross-references to Remove outdated golden CLI version test #2044 (bgid bound) and Make workspace root host oc-rsync binaries for cargo rpm #1735 (adaptive queue depth, the SQ analogue), and open questions on ring-driven vs sizer-driven resize and per-process aggregation.

Test plan

  • wc -l reports 450 (within 350-500 range)
  • No en-dashes / em-dashes (grep for \xe2\x80\x93|\xe2\x80\x94 returns nothing)
  • Every cited file:LINE reference verified against the current tree (registered_buffers.rs, config.rs, file_writer.rs, file_reader.rs, pool.rs, pressure.rs, architecture/reorder-buffer.md)
  • Single commit, single docs/ file, no code changes

)

Phase 2 design for the adaptive sizer that consumes the acquire/miss
telemetry already shipped on RegisteredBufferGroup. Mirrors the engine
BufferPool grow/shrink policy, with hysteresis and a quiescence guard
appropriate for a kernel-side resource.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 5, 2026
@oferchen
oferchen merged commit d4db245 into master May 5, 2026
8 checks passed
@oferchen
oferchen deleted the docs/io-uring-adaptive-buffer-pool-2045 branch May 6, 2026 18:57
oferchen added a commit that referenced this pull request May 18, 2026
) (#3708)

Phase 2 design for the adaptive sizer that consumes the acquire/miss
telemetry already shipped on RegisteredBufferGroup. Mirrors the engine
BufferPool grow/shrink policy, with hysteresis and a quiescence guard
appropriate for a kernel-side resource.
oferchen added a commit that referenced this pull request Aug 24, 2026
) (#3708)

Phase 2 design for the adaptive sizer that consumes the acquire/miss
telemetry already shipped on RegisteredBufferGroup. Mirrors the engine
BufferPool grow/shrink policy, with hysteresis and a quiescence guard
appropriate for a kernel-side resource.
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