aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/docs/design.md
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-01 02:35:07 +0000
committertv <tv@krebsco.de>2026-12-01 04:06:02 +0000
commitcf26dc1f928e9839123bedd1693d792bbb418312 (patch)
tree4e38369848754d258c830750a9e71e18ca07e0c7 /pkgs/populate/docs/design.md
parent9cbe2fab9a3fe30ce4218458112ab46e49c6ac7c (diff)
populate file: list file sources ahead of their turns, at once
Comparing a file source with filters takes a run of rsync --list-only, which also checks its .rsync-filter files, and which takes about 50 ms with nothing to do, rsync waiting for its own processes, one source after another: 3.6 s of a no-op run with 50 such sources, locally. rsync::prepare is gather, which runs the commands and prints nothing, and finish, which checks the filter files with what gather got, with the messages, and takes the listing. Right after the probe, gather runs for all file sources whose target paths the probe could list, at most 16 at a time, and each source's turn finishes. The same run takes 0.85 s, and the bench's 1.0 s locally takes 0.7 s.
Diffstat (limited to 'pkgs/populate/docs/design.md')
-rw-r--r--pkgs/populate/docs/design.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/populate/docs/design.md b/pkgs/populate/docs/design.md
index db8299f..8928809 100644
--- a/pkgs/populate/docs/design.md
+++ b/pkgs/populate/docs/design.md
@@ -124,7 +124,11 @@ step doesn't rewrite:
as far as rsync's quick check goes, neither `break_hard_links` nor rsync
runs. Entries populate can't compare, e.g. paths with control
characters, devices, or a source that needs `--insecure-links`, make it
- run rsync.
+ run rsync. The listings of the deploying machine, and the runs of rsync
+ checking the `.rsync-filter` files, run for all such sources at once,
+ at most 16 at a time, right after the probe, since a run of rsync takes
+ about 50 ms also with nothing to do; what they find gets checked, with
+ its messages, at each source's turn.
- For symlink sources, the symlink there, if any. If it points to the
target already, nothing runs.
- For git sources with a commit as ref, and without `fetchAlways`, the
[cgit] Unable to lock slot /tmp/cgit/d8000000.lock: Permission denied (13)