…, not "flat", 0.12-5.56 ms
The merged zero-copy page claimed the shared handoff was "0.048-0.258 ms, flat in prompt length". Running
target 1's gate in the shape that ships says otherwise and the page has to say what was measured:
cells 307 / 4 105 / 16 399
adopt 0.122 / 1.988 / 5.558 ms n_read 0, prompt_n 1 on every arm
import 40.6 / 78.7 / 150.4 ms 648 MiB / 1.1 GiB / 2.8 GiB mapped and first-touched, ASan provider
text identical on all three ASan reports: 0
So the handoff moves no prompt bytes but its cost is per *cell*, ~0.34 us each: 0.12 ms at 307 cells, 5.56 ms
at 16 399 — still 8.2-242.9 ms cheaper than the file route at those lengths, and the 10-31 in-process figure
(0.048-0.258 ms at 256-2 048 cells) was the same step without the process boundary. Also records the
provider's own side honestly (a page fault per page it writes, sanitizer-inflated) and why the shared column is
a 4B while the file column is 30B-A3B.
This is also the ASan pass the lane had owed since 2026-10-31: three lengths, zero reports in the provider.
Harness: t1_handoff_lengths.sh + t1_asan_import.py (zero-copy probe set), now env-overridable for the server,
provider and model. Refs #698.
Runs target 1's gate again in the shape that ships and corrects the page I merged two hours ago (#1271): the shared
handoff is cells bookkeeping, not flat in prompt length. Refs #698.
Measured (2026-11-06, build at pin
d70b67bf0,gpu-hold -l zerocopy, die 66 °C, held 377 s)Cross-process: a separate provider process, the region exported over
SCM_RIGHTS, an AddressSanitizer-instrumentedprovider mapping it and prefilling into it, the decoder adopting the cells (
t1_handoff_lengths.sh+t1_asan_import.py, now env-overridable for server/provider/model):n_readprompt_nThe tide comes in twice a day,prompt_n 1on every arm is the contract that matters: the decoder decoded from the adopted cells instead ofre-processing the prompt (engine#941's shape), and
n_read 0is "no prompt bytes moved".What was wrong on the page
"0.05-0.26 ms, flat in prompt length" was an in-process measurement at 256-2 048 cells. Across a process boundary at
307-16 399 cells the same adoption step is 0.12-5.56 ms — ~0.34 µs per cell. It still moves no prompt bytes, so it is
still 8.2-242.9 ms cheaper than the file route at the same lengths, but "flat" was a claim the numbers do not support and
the page now says what was measured. The provider's own side (40-150 ms to map and first-touch 0.6-2.8 GiB, a page fault
per page it writes) is on the page too, labelled as sanitizer-inflated and not a copy, and the page states why the shared
column is a 4B while the file column is 30B-A3B (a 30B under ASan prefills for hours — not a measurement worth making for
a property that does not depend on the model).
Also closes something the lane owed
The ASan pass on the imported region, outstanding since 2026-10-31: three lengths, 0 AddressSanitizer reports, 0
glibc corruption lines. That is the check that was described as "removing the teardown removed the detector" — it is
detected here, at three sizes, with the sanitizer on the side that actually maps and writes the region.
Docs only.
tools/copyright.py --checkclean; no code or test changed.