vkback: count what a present force-releases from other queues #131

Open
github-bot wants to merge 1 commit from github-bot/gh-131 into main AGit
Owner

@⁠TheRifai on GitHub · 2026-12-01 19:39 UTC · original
TheRifai:present-release-count → main · +23 −2 · 2 files · 1 commits · open

What

Call::Present calls release(true), so every queue's held work runs at a present whether or not its wait is met. The stats line already counted unmet value waits; it did not count unmet fence waits or how much work a present force-releases from other queues. Both are now shown, with a loud line for the first eight unmet fence waits (docs/TASKS.md, "A present runs what every queue holds"). No behaviour changes.

The reference

No console counterpart: the console keeps another queue's wait across a present; a fork hint does too. These counters measure the deviation before changing it.

Evidence

  • cargo check -p vkback --all-targets, 160 native tests, and the build all pass.
  • House, 100 s, GE-Proton11-16: submissions held behind waits 17000, waits passed unmet at a present 0, fence waits passed unmet at a present 0, other queues' held entries run at a present 271.
  • Boat start, 100 s: ... waits passed unmet 0, fence waits passed unmet 0, other queues' held entries run at a present 204.
  • So the cross-queue release happens on the order of 200-270 entries per 100 s in both scenes, while no wait was observed being forced open. The boat run hit the known exit-1 fault after reaching the world; neither run is a performance measurement.
  • Runs: /tmp/opencode/capture/present-force-house/, /tmp/opencode/capture/present-force-boat/.

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 19:39 UTC · [original](https://github.com/vktory6/VKtory/pull/131) `TheRifai:present-release-count` → `main` · +23 −2 · 2 files · 1 commits · open ## What `Call::Present` calls `release(true)`, so every queue's held work runs at a present whether or not its wait is met. The stats line already counted unmet *value* waits; it did not count unmet fence waits or how much work a present force-releases from other queues. Both are now shown, with a loud line for the first eight unmet fence waits (docs/TASKS.md, "A present runs what every queue holds"). No behaviour changes. ## The reference No console counterpart: the console keeps another queue's wait across a present; a fork hint does too. These counters measure the deviation before changing it. ## Evidence - `cargo check -p vkback --all-targets`, 160 native tests, and the build all pass. - House, 100 s, GE-Proton11-16: `submissions held behind waits 17000, waits passed unmet at a present 0, fence waits passed unmet at a present 0, other queues' held entries run at a present 271`. - Boat start, 100 s: `... waits passed unmet 0, fence waits passed unmet 0, other queues' held entries run at a present 204`. - So the cross-queue release happens on the order of 200-270 entries per 100 s in both scenes, while no wait was observed being forced open. The boat run hit the known exit-1 fault after reaching the world; neither run is a performance measurement. - Runs: `/tmp/opencode/capture/present-force-house/`, `/tmp/opencode/capture/present-force-boat/`. ## 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)
Call::Present runs `release(true)`: every queue's held work runs even behind an unmet wait. Value waits passed unmet were counted, fence waits were not, and the cross-queue work was not counted at all. Add both counters to the stats line so the presentwait task can tell how often a present touches another queue and whether any wait was forced open.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 19:42:50 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 19:40 UTC · original

Thanks. Your numbers agree with ours: no wait is forced open, but the present still runs other queues' held work.

We already have a branch that changes this. In it, a present runs only its own queue's held work and what it depends on. Other queues keep their waits and remaps across the present. It comes with its own counters, and the held-queue code moves to live/held.rs. Our measurement on the boat start: the renderer waited 9.3 s per 300 s at presents for remaps, and none of that wait was a dependency of the present. The branch is in its A/B and validation runs now.

Merging this PR first would conflict with that move and count something the branch removes, so I'm holding it. I'll close it when the branch lands, unless the branch turns out not to merge, in which case this goes in.

That task wasn't marked as taken, so you couldn't have known. Sorry for the duplicate effort.

**@⁠vktory6** on GitHub · 2026-12-01 19:40 UTC · [original](https://github.com/vktory6/VKtory/pull/131#issuecomment-7323208979) Thanks. Your numbers agree with ours: no wait is forced open, but the present still runs other queues' held work. We already have a branch that changes this. In it, a present runs only its own queue's held work and what it depends on. Other queues keep their waits and remaps across the present. It comes with its own counters, and the held-queue code moves to `live/held.rs`. Our measurement on the boat start: the renderer waited 9.3 s per 300 s at presents for remaps, and none of that wait was a dependency of the present. The branch is in its A/B and validation runs now. Merging this PR first would conflict with that move and count something the branch removes, so I'm holding it. I'll close it when the branch lands, unless the branch turns out not to merge, in which case this goes in. That task wasn't marked as taken, so you couldn't have known. Sorry for the duplicate effort.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/131/head:github-bot/gh-131'
git switch 'github-bot/gh-131'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-131'
git switch 'github-bot/gh-131'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-131'
git switch 'github-bot/gh-131'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-131'
git switch 'main'
git merge --squash 'github-bot/gh-131'
git switch 'main'
git merge --ff-only 'github-bot/gh-131'
git switch 'main'
git merge 'github-bot/gh-131'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.