vkback: count slot reads in the remap-order check #145

Manually merged
github merged 3 commits from github-bot/gh-145 into gh-pr/145/base 2026-12-02 15:18:25 +00:00 AGit
Owner

@⁠TheRifai on GitHub · 2026-12-01 21:32 UTC · original
TheRifai:slot-read-count-v2 → main · +30 −5 · 2 files · 3 commits · merged 2026-12-02 15:13 UTC

What

Follow-up from PR #128: the index slots read at Execute never went through maporder::check, so descriptor 0 could not show whether the own-queue slot-read race is absent. Each slot's 12 descriptor words are now counted as a sixth path (slot) in the inflight by path report (docs/TASKS.md, "Reads of pages while their remap is under way"). No behaviour change.

The reference

No console counterpart: a rule-32 counter, like the other paths it sits beside.

Evidence

  • cargo check -p vkback --all-targets, 164 native tests, and the build all pass.
  • House start, 95 s, GE-Proton11-16: inflight by path: copy-src 0, copy-dst 0, fill 2897, other spans 0, descriptor 0, slot 0 — no descriptor words read at Execute lay in a page of a remap under way in this run. This is one scene, not a proof for all scenes.
  • Run: /tmp/opencode/capture/slot-read-count/20261201-222857/. Not a performance measurement.

Checklist (docs/AGENTS.md)

  • One topic; docs/TASKS.md not edited (rule 29/31)
  • No fallback, constant, switch, queue, unsafe or translator output changed (rules 2/9b/33/35/36/27)
  • Comments say what is true now (rule 3)
  • Nothing from the title, no non-free data pointers (hard constraints)
**@⁠TheRifai** on GitHub · 2026-12-01 21:32 UTC · [original](https://github.com/vktory6/VKtory/pull/145) `TheRifai:slot-read-count-v2` → `main` · +30 −5 · 2 files · 3 commits · merged 2026-12-02 15:13 UTC ## What Follow-up from PR #128: the index slots read at `Execute` never went through `maporder::check`, so `descriptor 0` could not show whether the own-queue slot-read race is absent. Each slot's 12 descriptor words are now counted as a sixth path (`slot`) in the `inflight by path` report (docs/TASKS.md, "Reads of pages while their remap is under way"). No behaviour change. ## The reference No console counterpart: a rule-32 counter, like the other paths it sits beside. ## Evidence - `cargo check -p vkback --all-targets`, 164 native tests, and the build all pass. - House start, 95 s, GE-Proton11-16: `inflight by path: copy-src 0, copy-dst 0, fill 2897, other spans 0, descriptor 0, slot 0` — no descriptor words read at Execute lay in a page of a remap under way in this run. This is one scene, not a proof for all scenes. - Run: `/tmp/opencode/capture/slot-read-count/20261201-222857/`. Not a performance measurement. ## Checklist (docs/AGENTS.md) - [x] One topic; `docs/TASKS.md` not edited (rule 29/31) - [x] No fallback, constant, switch, queue, `unsafe` or translator output changed (rules 2/9b/33/35/36/27) - [x] Comments say what is true now (rule 3) - [x] Nothing from the title, no non-free data pointers (hard constraints)
Follow-up from PR #128: the index slots read at Execute did not go through `maporder::check`, so `descriptor 0` did not show whether the own-queue slot-read race is absent. Count each slot's descriptor words at Execute as a sixth path ("slot"). House run: `fill 2897`, `slot 0` — none of the descriptor words read at Execute lay in a page of a remap under way in that run. No behaviour change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 21:35:27 +00:00
# Conflicts:
#	greenfield/vkback/src/live/slots.rs
Author
Owner

@⁠TheRifai on GitHub · 2026-12-01 22:05 UTC · original

Superseded by PR #148: main merged #143 while this branch was open, and #145 now conflicts. #148 is the same counter rebased onto current main with #143's primary-heap fast path intact; fresh house evidence is in its description. I won't close this one myself — please use #148 instead.

**@⁠TheRifai** on GitHub · 2026-12-01 22:05 UTC · [original](https://github.com/vktory6/VKtory/pull/145#issuecomment-7327255725) Superseded by PR #148: main merged #143 while this branch was open, and #145 now conflicts. #148 is the same counter rebased onto current main with #143's primary-heap fast path intact; fresh house evidence is in its description. I won't close this one myself — please use #148 instead.
github-bot changed target branch from main to gh-pr/145/base 2026-12-02 15:18:24 +00:00
github manually merged commit e3c93e1d62 into gh-pr/145/base 2026-12-02 15:18:25 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 15:14 UTC · original

Merged as github.com/vktory6/VKtory@b447925ef8, thanks. Two changes from my side on your branch: the remap-order check now takes one lock for all of a list's slot addresses (maporder::check_all) instead of one per slot, and I merged main into it to keep #143's fast path. Tests and policy passed on private main.

#148 is the same change rebased on #143, so I'm closing it as a duplicate of this one.

**@⁠vktory6** on GitHub · 2026-12-02 15:14 UTC · [original](https://github.com/vktory6/VKtory/pull/145#issuecomment-7349990250) Merged as https://github.com/vktory6/VKtory/commit/b447925ef89391926d5b5e0a44125d0bc387baf9, thanks. Two changes from my side on your branch: the remap-order check now takes one lock for all of a list's slot addresses (`maporder::check_all`) instead of one per slot, and I merged main into it to keep #143's fast path. Tests and policy passed on private main. #148 is the same change rebased on #143, so I'm closing it as a duplicate of this one.
This discussion has been locked. Commenting is limited to contributors.
No description provided.