Repository navigation
Description
Summary
A proxy-warming two-leg miss still serves at about 1.8 MB/s per stream after #2176. The client routes the range-deduped consolidated entry of the mistral bundle through lon1, a non-holder, and lon1 pulls each range from bcl, the only holder. In the same run, bcl serves the client directly at 8–9 MB/s per stream. That two-leg entry sets the finish time of the bundle.
#2168 reported the same shape (34.8 MB in 21.5 s through lon1), and #2176 closed it. The fleet binary was installed at 05:42 UTC on 2026-09-28, after #2176 merged, and the rate is unchanged.
Evidence (testnet, 2026-09-28, CLI and fleet on 2153388b)
decdn bundle pull --hash 9194000d… --namespace 1, entry 7cbb4846… (13.5 GiB consolidated.safetensors, 2.42 GiB complement). The client logs proxy-warming: routing through nearer non-holder 5460b0a9… (lon1).
- lon1 → client (
serve_stream, Tempo, 05:59–06:04 UTC): 34.8 MB in 20.5 s, 35.8 MB in 19.8 s, 30.1 MB in 16.2 s, 12.9 MB in 8.6 s, 11.9 MB in 6.5 s, 9.0 MB in 5.1 s. That is 1.5–1.85 MB/s per stream. - bcl → client, direct (entry
998030d5…, same window): 36.6 MB in 4.3 s, 56.4 MB in 6.2 s, 31.3 MB in 3.8 s. That is 8.2–9.1 MB/s per stream. - bcl → lon1 (
serve_streamon bcl,peer=5460b0…; Tempo kept only four):byte_len1097728, 1097728, 6242304, and 1097728. The first one failed withproof 1 of at most 8 … proof stream read failed: connection lost: peer-side fault. - lon1 counters, 15 min into the run:
decdn_node_pull_through_min_draw_waits_total83,decdn_node_pull_through_window_paused_total73,decdn_warming_credits_applied_total11.decdn_bytes_received_totalrate 1.5–2.5 MB/s.decdn_load_shed_streams_in_flight2. - ICMP RTT from the client: fra1 58 ms, lon1 78 ms. The client link carried ~11.5 MB/s in total, so it is not the limit.
Hypotheses (not confirmed)
- Concurrent streams split the lane's ramp pool. ADR 003 § Credit window: a stream takes the whole pool when it starts, so concurrent streams split the lane's credit. fix(node,client,cli): keep the credit ramp across back-to-back pulls and widen bundle lanes #2176 also widens bundle lanes mid-drive. With 2 streams in flight on the client → lon1 lane, only one stream carries the ramp, and the other starts at the floor.
- The upstream lane lon1 → bcl restarts its ramp. The legs bcl kept are mostly 1.1 MB, the pull-window floor. The ramp pool keys on the lane and returns credit only when a stream ends fully paid. So a leg that ends early, or a leg that races a sibling leg, can leave the next leg at the floor.
- The min-draw rule waits too often at a small window. 83 min-draw waits against 73 window-full pauses suggest that the pull waits for half the window to open on most draws.
Next step
Re-run the 7cbb4846… entry alone, with lon1 and bcl logging decdn_node::node_origin::pull_leg and decdn_node::handlers::client at debug. Log the carried ramp credit and the opening window of each stream and each leg.
Related
#2168 / #2176 (ramp carried across back-to-back pulls), #2204 (the run's candidate sample left out nbg1 and ash1, which hold other shards).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsDone
Activity
thiras commentedon Sep 28, 2026
The run finished at 06:26 UTC: 28m05s,
downloaded 17.1 GB → reconstructed 29.0 GB, 0 failed. The previous run took 18m56s for the same bytes.7cbb4846…finished last: 2.42 GiB downloaded at 1.49 MiB/s in 1664.8 s. At the tail, three non-holder proxies stalled one after another and left its stripe:0x797e…0xa43d…0xEE08…0xCd21…bcl, the only holder, finished the entry. So each two-leg proxy does more than run slowly: it stalls for 30 s before the client fails over.
thiras commentedon Sep 28, 2026
Root cause found. The upstream leg is not slow. The serve-miss stalls before its pull starts.
Evidence (Tempo, lon1, 7cbb48, 2026-09-28). In each
serve_streamtrace, the handshakeopen_progressive_pullends ~230 ms after the stream starts. Theserve_miss_pullspan starts seconds later. The gap grows over the run:In trace
e8ba862aa40157fbe1672403bdc3cc18, the stream moves 50.1 MB in 24.3 s. Its oneupstream_streamleg moves the 49.9 MB range from bcl in 6.27 s (~8 MB/s). The stream then serves for 9.6 s more after the pull ends.Cause. Before it spawns the pull,
seed_held_outboardcallsoutboard_pairsover every held range of the blob.export_baoreads and verifies every leaf it exports, so each stream start re-hashes everything lon1 holds of the 13.5 GiB blob. The primed handshake pull also idles pastPRIMED_MAX_IDLE(2 s). The pull then opens the same range again, and lon1 forfeits its carried ramp credit at bcl.Ruled out.
decdn_iroh_socket_recv_data_relay_totalon lon1 is ~KB/s, and the ipv4 rate is 0.9–2 MB/s.transport_ip_paths_removed≈ 0.Fix. The seed covers only the held part of the stream's own chunk-group-aligned range. A PR follows.
Still open. The 9.6 s post-pull serve tail (~2.6 MB/s on lon1 → client) is not yet explained. The testnet rerun after the deploy shows whether it needs its own issue.
fix(node,cache): seed a serve-miss outboard only from held ranges ins…
thiras commentedon Sep 28, 2026
Rerun after #2207 (2026-09-28 07:46:54–08:15:58 UTC, CLI and fleet on
8886c85c)29m04s,
downloaded 17.1 GB → reconstructed 29.0 GB, 0 failed. Entry7cbb4846…:13.50 GiB in 1739.2s (2.42 GiB downloaded at 1.43 MiB/s). The proxy was nbg1.#2207 works.
serve_miss_pullstart is ~5 ms (was 2.4–8.2 s). Example: nbg1 tracecc96b10ae8422308ebfefeeeb83b1949.The per-stream symptom in this issue is mostly client-link sharing, not a proxy defect.
serve_streamin the window has peer nbg1. That is nbg1's upstream pull, not client delivery.Why
7cbb4846…finishes last (it does not change the total while the link is saturated):--max-lane-streamscap. See bundle pull: whole-entry lane permits starve a proxy lane to width 1 #2208.reconcile_deferredwaiting on a sibling's deferred chunks, not download. So the real download rate was ~1.95 MB/s over ~1300 s.Other findings:
serve_streamspans and drops the rest silently, which blocked tracing the stalled legs.Suggested resolution: close this issue. Its node-side cause is fixed by #2207, and the rest is tracked in #2208–#2211. One node-side question stays open. The miss-path encoder reads the cache 16 KiB per store call (
AwaitingDataReader→export_range), while the hit path streamsexport_bao. A local benchmark ofCoherentFrameProduceragainstChunkFrameron a fully held 64 MiB blob would show whether that caps the proxy below the link.thiras commentedon Sep 28, 2026
Closing. #2207 fixes the node-side cause (the pre-pull stall), and the rerun confirms it. The remaining per-stream gap is client-link sharing. The follow-ups are #2208–#2211. The encoder read-granularity question (16 KiB store calls on the miss path) is recorded in the comment above, if it becomes relevant.