Repository navigation
docs(audits): registered-buffer adaptive sizing follow-up (#2045) - #3879
Merged
oferchen merged 1 commit intoMay 7, 2026
Merged
Conversation
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
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.
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
8 x 64 KiB, large-files16 x 256 KiB, small-files8 x 16 KiB).checkout()returnsNone, writer silently falls back to non-registeredIORING_OP_READ/WRITEand pays fullget_user_pages()overhead.RegisteredBufferSizerrunning off the I/O hot path with EMA-smoothed grow / shrink thresholds, hysteresis, warmup, and a 250 ms cooldown boundingRLIMIT_MEMLOCKchurn.BufferPooladaptive 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) andiouring-fixed-buffer-registration.md(registration mechanics).Test plan
wc -l docs/audits/iouring-registered-buffer-adaptive-sizing.md-> 104).