Repository navigation
Conversation
…he tail it reads (Niko1221#7648) A restore that lands shallower than the match - a fork reading a prefix of a longer live state - looked the same in the log as a full hit, which is what made Niko1221#7648 take a trace build to see. The line now carries depth (what was mounted), prefix (where the image matched) and tail (the tokens this request reads on from the depth). Refs Niko1221#7648.
|
Thanks for the pull request. To keep the tracker readable, every item needs an area prefix in the title and the parts of the pull request template filled in. This one is missing:
Edit the pull request (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment Details: CONTRIBUTING.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 2/4 of #7648 — observability for the restore path.
Background
The restore log line only says "restored N tokens (live|checkpoint)". When a restore lands shallower than the match (a fork or a partial mount), that is invisible in the log.
What this adds
Three fields on the restore line:
depth— the depth actually mounted (the resume point);prefix— the prefix the image matched;tail— how much the request still has to read from that depth.Why
The bug fixed in part 1/4 was invisible because "landed shallower than the match" and "full hit" looked identical in the log. These three fields make the difference readable.
Review focus
depth == prefixis the normal case;depth < prefixis a fork or partial mount.Part 2/4 of #7648. Parts 3–4 follow.
Validation
Commands run:
Revision tested: upstream main + this patch (the branch head).
Environment: AMD W7900 (gfx1100), ROCm, Qwen3.8-Flash IQ4_XS, 277K-token conversations.
What I saw: the three-session rotation (build → switch → restart → restore) runs green; reuse rate 99.98–99.998% (no regression).