mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #320] [CLOSED] verify: fix STRATA_VERIFY_PROFILE stage columns (unsigned stamp wrap + slot collision) #2573
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2573
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/320
Author: @xyzzing
Created: 10/1/2026
Status: ❌ Closed
Base:
main← Head:pr/d8-verify-columns-20260930📝 Commits (1)
833cc85verify: profile columns stop wrapping (unsigned stamp deltas) and the hc-read second half stops overwriting the next layer's base stamp📊 Changes
2 files changed (+19 additions, -8 deletions)
View changed files
📝
include/strata/core/verify.hpp(+2 -1)📝
src/core/verify.cpp(+17 -7)📄 Description
Fixes the
STRATA_VERIFY_PROFILEstage report so its derived columns ((gap),head,hc0 norm/down/up) print sane ms/window values instead of\~1e14 ms. Metrics-only — no computed model value changes; this only affects the profiler's reported columns.Two integer-arithmetic defects:
Slot collision (
kProfPer32 -> 33). The hc-read second half'supstamp was written to slot 32, which is the next layer's slot 0. That both corrupted the next layer's base stamp and left the up-stamp unreadable.Unsigned wrap on absent/out-of-order stamps. A slot no kernel stamped is
0; an unsignedto - fromwherefromwrapped to\~1e19 ns, which is the\~1e14 mswe were seeing.The fix introduces a
gap(to, from)helper that contributes0unless both stamps are nonzero and monotonic (to >= from), bumpskProfPerto 33, and shows the hc-read0 norm/down/up split only when the whole split chain is present (so it isn't counted twice). The column-header array is extended to match.With the columns sane, the verify-window residual could be attributed: it is the
wait for ringscolumn (28 ms/round), and a no-doorbell floor (STRATA_VERIFY_DEVICE_PLAN=1) leaves it unchanged, so it is host-ring submission latency, not the expert-pool doorbell round-trip. Deliverable 3 of #228, re-scoped to stand alone per your request.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.