Files
leleka/docs
Pavlo RatushnyiandClaude Sonnet 5.5 955a72e378 prefix cache: LELEKA_PREFIX_PARK_ASYNC no longer makes the next request wait for a refusal: the busy mark is released before the deferred checkpoint
The GPU run refused 3 of the first 7 requests with runtime_capacity: serve_generate held ActiveGuard (the Proxy's `active` mark, which Proxy::idle answers with "native generation is active") while the owner ran prefix_after_response, 8-25 ms after the terminal event. Now run_generation ends with the terminal event and the prefix summary, ActiveGuard::release_then drops the mark, and only then the deferred tail runs (and the summary is published again, with the new node). A request that arrives during the tail passes Proxy::idle and its Generate command waits in the control queue that the owner loop reads after the tail; nothing is refused and nothing is lost. prefix_after_response returns whether it parked anything, and does not open a profile span or report a park_deferred line when nothing was deferred.

Test: a request arriving during the deferred tail is admitted and queued, not refused (the proxy is refused while the request runs, admitted from the moment the tail starts, its command is in the queue afterwards).

Ledger row B3 updated with the GPU result of the first run and why no pre-faulted buffer pool was built.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 02:34:07 +01:00
..
2026-10-25 14:14:47 +01:00
2026-10-24 02:03:29 +02:00