Repository navigation
stats/dashboard: prompt cache, disk tier and FSR cache on /stats and the dashboard (#2655) - #2682
Conversation
|
Thank you @volfco, this is a useful page, and the store side reads cleanly: eviction still orders by the store clock, so replies can't change. A few things before it can go further:
Two comment lines are over 120 columns ( |
9d6e30c to
f7f65f8
Compare
|
Thanks @ashhart, all addressed in f7f65f8 on a fresh rebase:
Both long lines fixed; lean shows 0 new findings. On the trailers: please squash at landing with my authorship. That drops the AI co-author trailers from the three earlier commits without another force-push. |
|
Thanks @volfco, that covers all five points and the two long lines:
One more rebase, sorry. The prompt-cache work in #2699 landed on main after your push and moved two of the functions We'll squash at landing with your authorship, which drops the trailers, and we'll fix the CHANGELOG line's PR number |
f7f65f8 to
f2f5027
Compare
|
Thanks @ashhart. Rebased onto main after #2699 in f2f5027 (the six commits squashed into one, since five of them conflicted on the same lines). The
Tests after the rebase:
The Flash Next host wasn't cross-compiled again this round; thanks for building it on a Mac. |
|
Thanks @volfco, the rebase reads right: One small question for the squash at landing: the commit's author address is From here it's ours: we'll build the Flash Next host on a Mac and check dashboard on and off, replies equal to main, and decode no slower, then land it with the CHANGELOG line fixed.
|
|
Using the github email is fine |
|
@volfco one last thing before this can land: our landing step refused it because the branch's commits carry an email address that isn't a GitHub noreply address, and landing would publish it in main's history. Could you re-commit them with your noreply address (GitHub Settings → Emails shows it, in the form Nothing else changes; it goes straight back on the landing queue once the new head's CI is green. Sorry we didn't catch it at review.
|
f2f5027 to
f2e588a
Compare
|
Thanks @volfco, done: the commit is re-authored with your noreply address and nothing else changed (same tree). It goes back on the landing queue once CI is green on the new head.
|
…the dashboard (ashhart#2655) The branch's six commits squashed and rebased onto main after ashhart#2699. The `seen` updates move with the functions ashhart#2699 moved: a resume in `prompt_cache_lifetime.zig` (`resumedWithReason`), a re-keep and a new entry in `prompt_cache_keep.zig` (`keepBorn`); the shared-cut entry in `prompt_cache.zig` keeps its own. `used` stays the store's clock.
f2e588a to
e7de167
Compare
|
Thank you @volfco. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
|
@volfco a heads-up, nothing for you to do:
|
…he engine #2682 had status() and the serve loop read h.eng.r.fsr. The host's own tests build a Host with eng undefined, so a status poll dereferenced it and two of them crashed with SIGSEGV in test-native. The host now keeps the engine's FSR runtime pointer, set at open beside the GDN pipe, and both reads go through it. Served behaviour is unchanged.
Scope and figures corrected to the PRs (#2700, #2670, #2338, #2491, #2680, #2557, #2597, #2760's load time, #2753's verify-row wait, #2681's ledger row), #2831's and #2682's lines rewritten to what the code does, #2709 given its own line above #2609's, the duplicate #2404, #2576, #2597 and #2699 entries and the copy of #2609's line under 1.2.6 removed, entries spaced one blank line apart, and the released sections restored to the v1.2.6 tag's text (#1651's 1.2.2 line and six blank lines in 1.2.5 and older).
|
Thanks @volfco! This is in TensorFold 1.2.7, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.7
|
Closes #2655.
What
/statsand the--dashboardpage now show the cache state the engine already tracks but never displayed..stfile. Without a disk tier it is the same hash with an empty identity. The table shows the first 12 hex characters, and hovering shows<id>.st.serve(job)./statsalso gainscached_tokens_total,preemptions_total,requests_requeued, the p50 latency and TTFT medians, and model/version/backend/device. The header shows the model name.How
api.Statusunder the host mutex innoteLive. HTTP threads never read the store directly./metricsreads.prompt_cache.Entrygains oneseen: Seenfield holding wall-clock created and last-use times, hits and the id. It is for display only and never feeds eviction policy.notemoved toprompt_cache_note.zigto keepprompt_cache.zigunder the 600-line cap./statsbuilder is in the newserver/stats_snapshot.zig, and its tests moved there.Testing
test-rows-host: 129 passtest-rows-prefetch-host: 41 passtest-fsr-host: 29 passtest-flashnext-fsr-owner-host: 18 passtest-flashnext-batch-host: 16 passtest-lane-halt-hostandtest-lane-interrupted-host: 30 pass eachtest-lane-api-host: 550 passtest-server-cpu: 1183 passzig fmtis clean, and the lean checker is at 398 problems, the same as main.--dashboard./statsmatched the engine's ownprompt cache:log line.test-server-cpu(golden hash) andtest-lane-api-host(DeviceLost) fail intermittently on this machine, and they do the same on clean main.🤖 Generated with Claude Code