From cf26dc1f928e9839123bedd1693d792bbb418312 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 02:35:07 +0000 Subject: 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. --- pkgs/populate/docs/design.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgs/populate/docs/design.md') 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 v1.3.1 [cgit] Unable to lock slot /tmp/cgit/cb000000.lock: Permission denied (13)