Skip to content

Prototype elastic reclaim and add reclaim benchmark#4

Draft
caomengxuan666 wants to merge 13 commits intodakingffo:masterfrom
caomengxuan666:feature-elastic-reclaim
Draft

Prototype elastic reclaim and add reclaim benchmark#4
caomengxuan666 wants to merge 13 commits intodakingffo:masterfrom
caomengxuan666:feature-elastic-reclaim

Conversation

@caomengxuan666
Copy link
Copy Markdown
Contributor

@caomengxuan666 caomengxuan666 commented May 6, 2026

Summary

  • Add opt-in elastic reclaim prototype while keeping stable and idle_reclaim behavior unchanged.
  • Add benchmark coverage for memory-cycle behavior and dedicated reclaim-only cost.
  • Document the elastic reclaim design, current limitations, and benchmark gates.

Validation

  • Built and linked mpsc_bench_reclaim in Release.
  • Ran mpsc_bench_reclaim across reserve sizes 1, 4, 16, 64, and 256 chunks.
  • Existing tests and broader throughput/latency/soak coverage should still be reviewed before marking this ready to merge.

Notes

  • This is intentionally opt-in and experimental.
  • The default queue behavior remains unchanged.
  • reclaim_free_pages() is currently a quiescent reclaim hook, not a fully concurrent online shrinker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant