Residency: VICTORY_RESIDENT_LATER=1 asks new memory resident with EnqueueMakeResident, waited for before descriptor slots are written and on the card before lists are sent #1850

Manually merged
github merged 4 commits from github-bot/gh-1850 into main 2026-11-29 08:21:21 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-29 00:46 UTC · original
101Leafy:nv/resident-later → main · +169 −22 · 15 files · 4 commits · merged 2026-11-29 08:16 UTC

New memory is made resident where it is made, so the thread that makes it waits for the system to page it in.

With VICTORY_RESIDENT_LATER=1, new memory is only asked to be made resident there, with EnqueueMakeResident: the system pages it in while we go on and signals a fence of ours. What could name that memory waits for the fence instead. A slot of our descriptor heap waits on the CPU before it is written, since lists already sent read the heap as it is. A queue waits on the card before lists are sent to it. Memory the CPU maps where it is made is still waited for there.

The log gives the asks, the time spent asking, the settles that waited with their time, and the queue waits.

Off by default; without the switch nothing changes.

**@⁠101Leafy** on GitHub · 2026-11-29 00:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1850) `101Leafy:nv/resident-later` → `main` · +169 −22 · 15 files · 4 commits · merged 2026-11-29 08:16 UTC New memory is made resident where it is made, so the thread that makes it waits for the system to page it in. With VICTORY_RESIDENT_LATER=1, new memory is only asked to be made resident there, with EnqueueMakeResident: the system pages it in while we go on and signals a fence of ours. What could name that memory waits for the fence instead. A slot of our descriptor heap waits on the CPU before it is written, since lists already sent read the heap as it is. A queue waits on the card before lists are sent to it. Memory the CPU maps where it is made is still waited for there. The log gives the asks, the time spent asking, the settles that waited with their time, and the queue waits. Off by default; without the switch nothing changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 00:50:44 +00:00
github-bot force-pushed github-bot/gh-1850 from 71c3046bf8 to af3adb3953 2026-11-29 01:54:37 +00:00 Compare
github manually merged commit 7dafbc0c1f into main 2026-11-29 08:21:21 +00:00
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!1850
No description provided.