Repository navigation
docs(design): adaptive BufferPool sizing with EMA throughput feedback (#1834) - #4216
Merged
Merged
Conversation
…#1834) Records the design and explicit defer recommendation for an EMA-throughput feedback loop over BufferPool soft capacity. Cites current sizing knobs in crates/engine/src/local_copy/buffer_pool/, leverages the existing ThroughputTracker (alpha=0.1) and AdaptiveBufferController instead of introducing parallel state, and lists the bench thresholds prerequisite to shipping the loop.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#1834) (#4216) Records the design and explicit defer recommendation for an EMA-throughput feedback loop over BufferPool soft capacity. Cites current sizing knobs in crates/engine/src/local_copy/buffer_pool/, leverages the existing ThroughputTracker (alpha=0.1) and AdaptiveBufferController instead of introducing parallel state, and lists the bench thresholds prerequisite to shipping the loop.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#1834) (#4216) Records the design and explicit defer recommendation for an EMA-throughput feedback loop over BufferPool soft capacity. Cites current sizing knobs in crates/engine/src/local_copy/buffer_pool/, leverages the existing ThroughputTracker (alpha=0.1) and AdaptiveBufferController instead of introducing parallel state, and lists the bench thresholds prerequisite to shipping the loop.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…#1834) (#4216) Records the design and explicit defer recommendation for an EMA-throughput feedback loop over BufferPool soft capacity. Cites current sizing knobs in crates/engine/src/local_copy/buffer_pool/, leverages the existing ThroughputTracker (alpha=0.1) and AdaptiveBufferController instead of introducing parallel state, and lists the bench thresholds prerequisite to shipping the loop.
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
feedback loop over
BufferPoolsoft capacity.crates/engine/src/local_copy/buffer_pool/with file:line references (default queue cap at
pool.rs:34,miss-rate resizer in
pressure.rs, byte budget from Prune stale fallback cache entries #2245 inbyte_budget.rs).ThroughputTracker(alpha = 0.1,throughput.rs:24) rather than introducing a second EMA, and notesthe parallel PID controller (
AdaptiveBufferController) that alreadyconsumes the same signal.
crates/engine/benches/buffer_pool_benchmark.rsand
crates/engine/benches/buffer_pool_contention.rsthat must bemet before the loop ships.
Recommendation
Defer until a bytes/sec baseline is recorded on the contention
bench. The count-cap loop (#1640/#1641) and byte budget (#2245)
already cover most of the failure modes; the remaining gap is narrow
and a second loop overlaps surface with the existing PID controller
(#2095). Concrete next step recorded in the doc.
Test plan
cargo fmt --allclean.