Repository navigation
bench: full vs incremental flist memory on 100K/1M file push (#1864) - #4163
Merged
Merged
Conversation
…#1864) Add scripts/benchmark_flist_memory_daemon.sh, a daemon-mode companion to the existing local-push flist memory bench. Spawns a temporary oc-rsync daemon, pushes 100K- and 1M-file fixtures through it under both --no-inc-recursive (full flist) and the default receiver INC_RECURSE mode, and reports peak client RSS plus bytes-per-file overhead in a markdown table. df -i is consulted up front so fixtures are skipped when the inode budget would not fit; the daemon is torn down by an EXIT trap. Operator script, not a CI gate.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#1864) (#4163) Add scripts/benchmark_flist_memory_daemon.sh, a daemon-mode companion to the existing local-push flist memory bench. Spawns a temporary oc-rsync daemon, pushes 100K- and 1M-file fixtures through it under both --no-inc-recursive (full flist) and the default receiver INC_RECURSE mode, and reports peak client RSS plus bytes-per-file overhead in a markdown table. df -i is consulted up front so fixtures are skipped when the inode budget would not fit; the daemon is torn down by an EXIT trap. Operator script, not a CI gate.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#1864) (#4163) Add scripts/benchmark_flist_memory_daemon.sh, a daemon-mode companion to the existing local-push flist memory bench. Spawns a temporary oc-rsync daemon, pushes 100K- and 1M-file fixtures through it under both --no-inc-recursive (full flist) and the default receiver INC_RECURSE mode, and reports peak client RSS plus bytes-per-file overhead in a markdown table. df -i is consulted up front so fixtures are skipped when the inode budget would not fit; the daemon is torn down by an EXIT trap. Operator script, not a CI gate.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…#1864) (#4163) Add scripts/benchmark_flist_memory_daemon.sh, a daemon-mode companion to the existing local-push flist memory bench. Spawns a temporary oc-rsync daemon, pushes 100K- and 1M-file fixtures through it under both --no-inc-recursive (full flist) and the default receiver INC_RECURSE mode, and reports peak client RSS plus bytes-per-file overhead in a markdown table. df -i is consulted up front so fixtures are skipped when the inode budget would not fit; the daemon is torn down by an EXIT trap. Operator script, not a CI gate.
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/benchmark_flist_memory_daemon.sh, a daemon-pushcompanion to the existing local-push
scripts/benchmark_flist_memory.sh.Spawns a temporary
oc-rsync --daemon, pushes fixtures into it fromthe same host, and tears the daemon down on EXIT.
and 1000 dirs x 1000 files). Empty files keep the focus on file-list
memory rather than transfer bytes.
--no-inc-recursive(fullflist, pre-protocol-30 behaviour) and Mode B default
(receiver INC_RECURSE). For each (scale, mode) the script records
peak client RSS via
/usr/bin/time -vand computesbytes_per_file = peak_rss / file_count.df -ifor the BENCH_ROOT filesystem before generating eachfixture and skips the dataset if the inode budget would exceed 80 %
of available inodes. The check parses the free-inode column by
header name (
ifree/iavail) so it works on both Linux GNUcoreutils and macOS BSD layouts.
target/benchmarks/flist_memory_daemon_*.tsvand,with
--summary, a markdown table to stdout (and a sibling.mdfile) showing Mode | Scale | Files | Wall (s) | Peak RSS (MB) |
Bytes/file.
Notes
sensitive to allocator and kernel; the per-PR memory signal already
lives in
crates/protocol/benches/file_entry_memory.rs.BENCH_ROOTis restricted to/tmpor/var/tmpand the cleanuphelper refuses paths outside it, mirroring the existing local-push
script and the project's documented bind-mount safety rules.
OC_RSYNC_DAEMON_FALLBACK=0so the nativeoc-rsync receiver path is under measurement (not the system rsync
delegation path).
Test plan
bash -n scripts/benchmark_flist_memory_daemon.shcleanbash scripts/benchmark_flist_memory_daemon.sh --scales 100k --runs 1 --summaryinside thersync-profilecontainer produces a TSV + markdown table with non-zero peak RSS for both modespgrep -af oc-rsync.*daemonreturns nothing)