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

Merged
101Leafy merged 4 commits from upstream-pr/1850 into main 2026-11-29 08:16:53 +00:00
101Leafy commented 2026-11-29 00:46:03 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T00:46:03Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5546150968 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1850). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T00:46:03Z. --- 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.
Sign in to join this conversation.
No reviewers
No labels
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.

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