Report take-to-fault intervals in performance-counter order #3587

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

@⁠Yoshi-233 on GitHub · 2026-11-30 01:24 UTC · original
Yoshi-233:fix/faultbook-event-order → main · +15 −0 · 2 files · 1 commits · open

What it changes

Sort fault-book records by their performance-counter timestamp before analyzing the capture. The writer samples the counter before acquiring the mutex to append. A fault from one thread can reach disk before the earlier take of the same block on another. The report then drops the pair. The sort is stable for equal ticks.

How it was tested

  • Reproduced on Linux with three synthetic 40-byte records: a fault on block 7 at tick 200, a take of that block on a different thread at tick 100, and a frame marker at tick 300. At 1 MHz the old report omitted the take-to-fault interval. The patched report counted one interval of 100 µs.
  • python3 -m unittest discover -s scripts -p test_faultbook.py -v: all five tests passed, including the new regression and existing frame-boundary tests. No game files or GPU required.

Windows CI stopped in the first Clippy step on the unchanged crash.rs:804 unused-function diagnostic for unwind_copy. The test step did not run. PR check · Same main commit

Checked for overlap

  • Checked open PRs touching the report and its tests. #2569 is about the writer's capture window.
**@⁠Yoshi-233** on GitHub · 2026-11-30 01:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3587) `Yoshi-233:fix/faultbook-event-order` → `main` · +15 −0 · 2 files · 1 commits · open ## What it changes Sort fault-book records by their performance-counter timestamp before analyzing the capture. The writer samples the counter before acquiring the mutex to append. A fault from one thread can reach disk before the earlier take of the same block on another. The report then drops the pair. The sort is stable for equal ticks. ## How it was tested - Reproduced on Linux with three synthetic 40-byte records: a fault on block 7 at tick 200, a take of that block on a different thread at tick 100, and a frame marker at tick 300. At 1 MHz the old report omitted the take-to-fault interval. The patched report counted one interval of 100 µs. - `python3 -m unittest discover -s scripts -p test_faultbook.py -v`: all five tests passed, including the new regression and existing frame-boundary tests. No game files or GPU required. Windows CI stopped in the first Clippy step on the unchanged `crash.rs:804` unused-function diagnostic for `unwind_copy`. The test step did not run. [PR check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46334658139/job/141572109062) · [Same main commit](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46320380085) ## Checked for overlap - [x] Checked open PRs touching the report and its tests. #2569 is about the writer's capture window.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 01:26:06 +00:00
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/3587/head:github-bot/gh-3587'
git switch 'github-bot/gh-3587'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3587'
git switch 'github-bot/gh-3587'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3587'
git switch 'github-bot/gh-3587'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3587'
git switch 'main'
git merge --squash 'github-bot/gh-3587'
git switch 'main'
git merge --ff-only 'github-bot/gh-3587'
git switch 'main'
git merge 'github-bot/gh-3587'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3587
No description provided.