diff options
| author | tv <tv@krebsco.de> | 2026-12-01 04:09:42 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 04:09:42 +0000 |
| commit | a658ecba09821b0306e287c1c6691dd4804d74db (patch) | |
| tree | 550db2c9f5fdd270fb9bf083311f2443c9b002a0 /pkgs/populate/docs/design.md | |
| parent | 3aff9c58c68d6882294e6586ddb384709ce95abe (diff) | |
populate: probe in parallel
The probe took most of a no-op run: 430 of the bench's 640 ms locally,
walking the target paths of 100 sources one after another, a work tree of
a git source in about 20 ms. It probes them in parallel now, in waves of
as many as the target has processors, each into a file of its own in a
private temporary directory, printed in order, so what it prints stays
the same. A probe that dies on the way prints no exit status for its
path, which leaves the path unprobed, so that source gets delivered. The
probe takes 195 ms, the bench's no-op run 430 ms.
Diffstat (limited to 'pkgs/populate/docs/design.md')
| -rw-r--r-- | pkgs/populate/docs/design.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/populate/docs/design.md b/pkgs/populate/docs/design.md index f98a2f9..8268498 100644 --- a/pkgs/populate/docs/design.md +++ b/pkgs/populate/docs/design.md @@ -113,7 +113,8 @@ and about 45 ms of rsync waiting for its own processes, also when there's nothing to transfer. So sources with nothing to do get skipped: right after taking the lock, one command on the target, the probe (`probe.rs`), finds out what's at the target paths of those whose lock file the flakes -step doesn't rewrite: +step doesn't rewrite, in parallel, as many at a time as the target has +processors: - For file sources that are directories, compared by size and time, a listing, with find. Each such source's turn lists what rsync would |
