Skip to content

docs(design): memory benchmark plan for full vs incremental flist (#1864) - #3712

Merged
oferchen merged 1 commit into
masterfrom
docs/flist-memory-benchmark-1864
May 5, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/flist-memory-benchmark-1864

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/design/flist-memory-benchmark-plan.md (500 lines): a benchmark plan for measuring peak RSS, allocation count, and per-FileEntry footprint of full file list vs incremental flist (INC_RECURSE) at the 100K and 1M directory-push scales.
  • Reuses existing harnesses: extends the Fix merge directive helpers in CLI filter parsing #1037 Criterion bench at crates/protocol/benches/file_entry_memory.rs with a 1M case and a path-interner toggle, and tightens scripts/benchmark_flist_memory.sh (median N=5, machine-readable TSV) for a CI gate.
  • Anchors pass/fail thresholds against upstream rsync 3.4.1's 7.4-7.9 MB peak RSS at 100K (Route CLI fallback through core orchestration #966 closing target) using the empirical baseline in docs/benchmarks/flist-memory-baseline-2026-05-01.md and the per-entry cost model from PR docs(audits): PathBuf and Arc<Path> RSS overhead per FileEntry #3704 (docs/audits/pathbuf-arc-path-rss-overhead.md).
  • Specifies a weekly cron + workflow_dispatch memory-baseline.yml workflow that runs both scales in the oc-rsync-bench container, diffs against a checked-in TSV baseline via tools/ci/diff_memory_baseline.py, and posts the comparison as a PR comment or issue.

Test plan

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 5, 2026
@oferchen
oferchen merged commit 0fa7622 into master May 5, 2026
8 checks passed
@oferchen
oferchen deleted the docs/flist-memory-benchmark-1864 branch May 6, 2026 18:56
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