Repository navigation
Description
Summary
bundle pull holds --max-lane-streams permits for a whole entry, and a held permit need not have a live stream behind it. On a proxy with all 4 permits held, the one lane that needs width stays at width 1. So a range-dedup complement entry that must drive ~147 gaps through a single proxy lane runs one stream at a time.
Evidence (testnet, 2026-09-28 07:46–08:15 UTC, CLI and fleet on 8886c85c)
decdn bundle pull --hash 9194000d… --namespace 1, entry 7cbb4846… (range-dedup complement, 2.42 GiB). The only full holder is bcl, and the proxy is excluded from the stripe, so the stripe is one lane on nbg1 (0x6B82…).
- 07:47:55–08:07:42. 38 sampled nbg1
serve_streamspans for the entry never overlap. They run in ascending offset, back to back, at ~2.15 MB/s each. - nbg1 in-flight.
decdn_load_shed_streams_in_flightis 2 for the whole period: this entry's one stream plus one stream of entryad7f…. - Who held nbg1's 4 permits:
7cbb…:permit_set(&targets.providers())(crates/cli/src/commands/bundle_pull.rs:2726) takes a permit on every candidate, not only the lane it drives.ad7f…: its failover walk streamed from nbg1 the whole time.b325…: the multi-sourcepermit_set(bundle_pull.rs:2040) holds a permit for the whole fan-out. Its nbg1 lane died at 07:47:11 with 0 bytes.9980…: holds one the same way (bundle_pull.rs:2040) until its fan-out failed at 08:06:42.
- 08:06:44.93. Two bcl→nbg1 legs for
7cbb…open in the same millisecond. That is the lane growing to width 2, two seconds after9980…released its permit. - Why it never grows.
LaneGrant::grant(bundle_pull.rs:1870) hands out only the permits that are free right now, and never waits for one. Growth happens only when a gap is taken while others wait (crates/client/src/driver.rs:1166-1176).
Impact
While the client link is saturated (as in this run, ~10 MB/s), this changes which entry finishes last, not the total time. With spare link capacity it makes a complement entry through a proxy run at the per-stream rate.
Direction (not decided)
- Hold a permit only while a stream is live on that provider. Release it when a lane dies or is not driven.
- Or let
LaneGrantwait for a permit when gaps are queued.
Related
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
fix(client): free an idle lane's surplus permits and release leases o…
fix(cli,client): harden lane permits and cover the watchdog wiring (#…