NVIDIA on Linux: measurements on an RTX 5080 and what a port would need #3
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@360900 on GitHub · 2026-11-30 12:05 UTC · original
Asking before writing code, as the README says. Measured on an RTX 5080, driver 620.73.04, with
probes written as umem tests. RADV numbers are from
greenfield/README.md.EINVALat any offset other than 0ENOMEMBIAS_REQUESTVK_ERROR_INVALID_OPAQUE_CAPTURE_ADDRESS); explicit addresses from0x10_0000_0000up are honoured exactlyVK_ERROR_VALIDATION_FAILED_EXTvkQueueBindSparse+ waitWhat works in place of the dma-buf mmap: memfd pages imported with
VK_EXT_external_memory_hostand bound into the sparse window (the driver reports host allocations as importable for sparse
buffers). CPU and GPU see the same bytes, 4 KiB CPU aliases included. All CPU-visible title memory
is then system RAM.
A port would be:
granularity, the window address taken from the device.
set_host_max_wave(32)mode, withthe host settings taken from the device instead of
set_vkback_host()'s constants.Questions:
second chunk source out of scope?
reproduce? (Same question as #1.)
and logged, or a refusal?
The probes can go into
umem/testsas a pull request if they are wanted.@tylerstraub on GitHub · 2026-12-01 23:37 UTC · original
Results from a second card with #162–#170 merged on
d59b4f8: RTX 5090, driver 620.73.04, Linux 7.0, Proton Experimental, headless (Xvfb), a save that starts in the house.As posted, the device is lost while the world loads: 2 of 2 runs. Menus run at 28–31 fps. About 100 s in, at the first heavy loading frames: Xid 13 (Graphics SM Warp Exception, 60 and 101 lines), then Xid 109 (CTX SWITCH TIMEOUT).
With one translator change it loads and stays in the world: 2 of 2 runs (240 s and 180 s, no Xid, no loss). The change: a program's constant table (
code_dword's table invictory-shaderemit/lower.rs) starts where the program's instructions end instead of at the lowest offset any load names, unless a load at a fixed offset reads below that.In the world this stack runs at about 0.9 s a frame here (median 885 and 908 ms over the two runs), GPU-bound, with everything of the title's in system RAM. On the same card, with the title's write-combined heaps in BAR VRAM, the same scene is at about 0.2 s. Details on #168.
Loud errors of a run, for the record: 60 pipelines whose lane branches stayed per lane (the follow-up to #169), 3,272 "buffer view not on 4 bytes over no title memory", 64 "Draw record changed by the clamp".
@360900 on GitHub · 2026-12-02 12:08 UTC · original
Yes, open it. The RTX 5080 does not fault without it (420 s in the world, no Xid), so behind the device fits. I will run it on the RTX 5080 and over the whole store.
@vktory6 on GitHub · 2026-12-02 18:38 UTC · original
Thanks for the second card. "Device lost at the first heavy loading frames, fixed by one translator change" is a clear result. It now has a task, "Code-relative constant reads as a whole-program array (device loss on an RTX 5090)":
github.com/vktory6/VKtory@a58cd901ddYes, please open the pull request. The task records the two things you flagged yourself:
So it fits as the optional-device path (docs/AGENTS.md rule 38): chosen once at device creation from what the device reports, logged, with a switch that runs it on AMD, a unit test, the whole-store DXIL diff, and an AMD run showing the default path unchanged.
The task also notes the approach that would remove both shortcuts for every device: on the console these are plain memory loads, so keep each program's bytes in GPU memory and read code-relative loads from there by address, with no per-thread array at all. If you'd rather try that, it's welcome too.
Leaving this issue open as the NVIDIA overview.
@vktory6 on GitHub · 2026-12-02 19:38 UTC · original
Related discussion: https://github.com/vktory6/VKtory/discussions/270 ("Where should the shader translator go next?") is where the translator's direction is being discussed, including the parts this issue touches.