Repository navigation
bench(engine): adaptive vs static BufferPool under varying workloads (#1642) - #4254
Merged
Merged
Conversation
Adds a single-threaded Criterion benchmark that contrasts the fixed-size BufferPool against the PID-controller-driven adaptive pool from buffer_controller.rs across four workload shapes: - steady_uniform - 1000 acquires of 64 KiB constant. - bursty_small - alternating bursts of 100 x 4 KiB and 10 x 1 MiB. - growing - 100 acquires each at 16 KiB, 64 KiB, 256 KiB, 1 MiB. - shrinking - reverse of growing. The adaptive cell feeds record_transfer samples so the controller's PID recommendation evolves over the run, mirroring the production wiring in acquire_controlled_from. Companion to buffer_pool_contention.rs. Refs #1642
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4254) Adds a single-threaded Criterion benchmark that contrasts the fixed-size BufferPool against the PID-controller-driven adaptive pool from buffer_controller.rs across four workload shapes: - steady_uniform - 1000 acquires of 64 KiB constant. - bursty_small - alternating bursts of 100 x 4 KiB and 10 x 1 MiB. - growing - 100 acquires each at 16 KiB, 64 KiB, 256 KiB, 1 MiB. - shrinking - reverse of growing. The adaptive cell feeds record_transfer samples so the controller's PID recommendation evolves over the run, mirroring the production wiring in acquire_controlled_from. Companion to buffer_pool_contention.rs. Refs #1642
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4254) Adds a single-threaded Criterion benchmark that contrasts the fixed-size BufferPool against the PID-controller-driven adaptive pool from buffer_controller.rs across four workload shapes: - steady_uniform - 1000 acquires of 64 KiB constant. - bursty_small - alternating bursts of 100 x 4 KiB and 10 x 1 MiB. - growing - 100 acquires each at 16 KiB, 64 KiB, 256 KiB, 1 MiB. - shrinking - reverse of growing. The adaptive cell feeds record_transfer samples so the controller's PID recommendation evolves over the run, mirroring the production wiring in acquire_controlled_from. Companion to buffer_pool_contention.rs. Refs #1642
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…4254) Adds a single-threaded Criterion benchmark that contrasts the fixed-size BufferPool against the PID-controller-driven adaptive pool from buffer_controller.rs across four workload shapes: - steady_uniform - 1000 acquires of 64 KiB constant. - bursty_small - alternating bursts of 100 x 4 KiB and 10 x 1 MiB. - growing - 100 acquires each at 16 KiB, 64 KiB, 256 KiB, 1 MiB. - shrinking - reverse of growing. The adaptive cell feeds record_transfer samples so the controller's PID recommendation evolves over the run, mirroring the production wiring in acquire_controlled_from. Companion to buffer_pool_contention.rs. Refs #1642
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
crates/engine/benches/adaptive_bufferpool.rscomparing a static fixed-sizeBufferPoolagainst the PID-controller-driven adaptive pool frombuffer_controller.rs(Scan for placeholder markers on the first line #1834).adaptive_bufferpoolgroup:steady_uniform,bursty_small,growing,shrinking. Each runs once againststatic_pooland once againstadaptive_pool.record_transfersamples so the PID accumulator evolves the recommended buffer size, mirroring the production wiring inacquire_controlled_from.buffer_pool_contention.rsalready covers the contended axis.Test plan
cargo bench -p engine --bench adaptive_bufferpoolon a Linux runner produces theadaptive_bufferpool/{static_pool,adaptive_pool}/{steady_uniform,bursty_small,growing,shrinking}cells.cfg(unix)via the existing criterion dev-dep gate).Refs #1642