Repository navigation
bench(matching): zsync 10GB sparse VM bench scaffold (#2082) - #4283
Merged
Merged
Conversation
Adds a release-qualification benchmark that exercises the match-index and rolling-hash pipeline on a 10 GiB sparse VM-style image with ~1% modified bytes. Gated behind OC_RSYNC_LARGE_BENCH=1 so default CI is unaffected; a tools/ci wrapper provides skip-or-fail semantics for the release pipeline. Includes the scenario specification, expected runtime envelope, and result-interpretation guide alongside the existing benchmark docs.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds a release-qualification benchmark that exercises the match-index and rolling-hash pipeline on a 10 GiB sparse VM-style image with ~1% modified bytes. Gated behind OC_RSYNC_LARGE_BENCH=1 so default CI is unaffected; a tools/ci wrapper provides skip-or-fail semantics for the release pipeline. Includes the scenario specification, expected runtime envelope, and result-interpretation guide alongside the existing benchmark docs.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Adds a release-qualification benchmark that exercises the match-index and rolling-hash pipeline on a 10 GiB sparse VM-style image with ~1% modified bytes. Gated behind OC_RSYNC_LARGE_BENCH=1 so default CI is unaffected; a tools/ci wrapper provides skip-or-fail semantics for the release pipeline. Includes the scenario specification, expected runtime envelope, and result-interpretation guide alongside the existing benchmark docs.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Adds a release-qualification benchmark that exercises the match-index and rolling-hash pipeline on a 10 GiB sparse VM-style image with ~1% modified bytes. Gated behind OC_RSYNC_LARGE_BENCH=1 so default CI is unaffected; a tools/ci wrapper provides skip-or-fail semantics for the release pipeline. Includes the scenario specification, expected runtime envelope, and result-interpretation guide alongside the existing benchmark docs.
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
scripts/zsync_bench_large_dataset.sh: release-qualification benchmark that generates a 10 GiB sparse VM-style image (35% sector fill, deterministic LCG offsets) and a target with ~1% scattered byte modifications, then measuresoc-rsync(and optionally upstreamrsync) delta-update wall clock, transferred bytes, and peak RSS.tools/ci/run_zsync_large_bench.sh: CI wrapper with prerequisite skip-or-fail semantics (ZSYNC_LARGE_BENCH_REQUIRED=1to enforce). Default behaviour is to exit 0 with a skip message, so it is safe to invoke from any pipeline.docs/benchmarks/zsync-large-dataset.md: scenario specification, expected runtime (4 - 9 minutes on a typical Linux runner), resource envelope (~22 GiB scratch, <500 MiB RSS target), and result-interpretation guide tying back to the existingbithash_rejection.rs,prune_duplicate_heavy.rs, andBufferPoolbudgeting notes.The benchmark is gated behind
OC_RSYNC_LARGE_BENCH=1and is intended for release qualification only; default CI never runs it. Companion to the in-process Criterion microbenchmarkcrates/matching/benches/zsync_medium_dataset.rs(100 MiB / 5%, #2081).Why
Issue #2082 asks for a 10 GiB scenario representative of the zsync use case (large mostly-unchanged binary file) so the match-index path can be exercised at a scale that stresses L3 cache, disk I/O scheduling, and delta-emission backpressure simultaneously. Too heavy for per-PR CI, but valuable for catching regressions before tagging a release.
Safety
${TMPDIR:-/tmp}/oc-rsync-zsync-large.$$(PID-suffixed).rm -rfonly fires on the exact PID-suffixed path; no variable-expanded deletes into bind-mounted paths.dd oflag=seek_bytesare skipped gracefully by the CI wrapper.Test plan
OC_RSYNC_LARGE_BENCH=1 BENCH_SIZE_GB=1 ./scripts/zsync_bench_large_dataset.shruns end-to-end on a Linux host withoc-rsync+ upstreamrsyncavailable../tools/ci/run_zsync_large_bench.sh(no env var) prints the skip message and exits 0.ZSYNC_LARGE_BENCH_REQUIRED=1 ./tools/ci/run_zsync_large_bench.sh(no env var) exits 2.