Skip to content

docs(audits): registered-buffer adaptive sizing follow-up (#2045) - #3879

Merged
oferchen merged 1 commit into
masterfrom
docs/iouring-registered-buffer-adaptive-sizing-2045
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/iouring-registered-buffer-adaptive-sizing-2045

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Documents the static sizing of the io_uring registered-buffer pool (default 8 x 64 KiB, large-files 16 x 256 KiB, small-files 8 x 16 KiB).
  • Describes the failure mode under sustained submission pressure: every slot in flight, checkout() returns None, writer silently falls back to non-registered IORING_OP_READ / WRITE and pays full get_user_pages() overhead.
  • Proposes a RegisteredBufferSizer running off the I/O hot path with EMA-smoothed grow / shrink thresholds, hysteresis, warmup, and a 250 ms cooldown bounding RLIMIT_MEMLOCK churn.
  • Side-by-side comparison to the engine BufferPool adaptive resizer landed under Fix cargo-deb asset detection for packaged binaries #1638, calling out the syscall and pinned-memory cost differences.

Cites #2045. Companion to io-uring-adaptive-buffer-sizing.md (phase 1 telemetry) and iouring-fixed-buffer-registration.md (registration mechanics).

Test plan

  • Documentation only - no code changes, no test impact.
  • Verify line count is under 150 (wc -l docs/audits/iouring-registered-buffer-adaptive-sizing.md -> 104).
  • CI markdown / link checks pass.

Documents the static sizing of the io_uring registered-buffer pool,
the silent fallback to non-registered opcodes when slots are exhausted
under sustained queue depth, and a grow/shrink heuristic that mirrors
the engine BufferPool adaptive resizer (#1638) while accounting for
the syscall and RLIMIT_MEMLOCK cost of re-registration.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit 02eb0bc into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the docs/iouring-registered-buffer-adaptive-sizing-2045 branch May 8, 2026 03:52
oferchen added a commit that referenced this pull request May 18, 2026
)

Documents the static sizing of the io_uring registered-buffer pool,
the silent fallback to non-registered opcodes when slots are exhausted
under sustained queue depth, and a grow/shrink heuristic that mirrors
the engine BufferPool adaptive resizer (#1638) while accounting for
the syscall and RLIMIT_MEMLOCK cost of re-registration.
oferchen added a commit that referenced this pull request Aug 24, 2026
)

Documents the static sizing of the io_uring registered-buffer pool,
the silent fallback to non-registered opcodes when slots are exhausted
under sustained queue depth, and a grow/shrink heuristic that mirrors
the engine BufferPool adaptive resizer (#1638) while accounting for
the syscall and RLIMIT_MEMLOCK cost of re-registration.
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