docs: D3D-56 descriptor lookup numbers on RTX 3070 (Ampere, ReBAR off) #74

Closed
Andretuta wants to merge 1 commit from upstream-pr/74 into main
Andretuta commented 2026-11-24 02:13:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:13:20Z.


Carried over from old PR 9801 by ramon-victor in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9801, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
ramon-victor: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116586259

What and why

Adds docs/descriptor_lookup_ampere.md and indexes it in docs/README.md: D3D-56 vk_descriptor_bench measurements on an NVIDIA GeForce RTX 3070 (Ampere, 8 GiB, PCIe 3.0 x16, Windows 11, Resizable BAR off / 256 MiB BAR1 aperture), complementing the existing Apple M3 Max (descriptor_lookup_apple.md), NVIDIA RTX 4070 SUPER / Ada with ReBAR (descriptor_lookup_ada.md) and Intel UHD 770 (descriptor_lookup_intel.md) measurements.

Key takeaway for descriptor-table placement on Ampere without ReBAR:

  • The 214 MiB Vulkan BAR1 heap (DEVICE_LOCAL | HOST_VISIBLE | HOST_COHERENT, exposed even with Resizable BAR off) stayed within 0.5% of GPU-only VRAM in every cell up to 100,000 entries (20.0 MiB table).
  • Non-device-local host_visible RAM over PCIe 3.0 x16 degraded sharply at 100,000 entries: 5.0× slower on uniform T# hits, 14.2× slower on divergent T# hits, 21.9× slower on divergent T#+S# pairs and 22.6× slower on divergent misses.

Tested

  • Hardware / environment: NVIDIA GeForce RTX 3070 (Ampere, 0x10de:0x2488), driver 621.24, Vulkan API 1.4.357, PCIe 3.0 x16, Resizable BAR off (256 MiB BAR1 / 214 MiB Vulkan heap 2), Windows 11 Pro 26H2 (build 26300.9974), idle desktop (2% GPU util, 993 MiB VRAM used, P5), MSVC 19.51.36260.0 (RelWithDebInfo, CMake + Ninja, Vulkan headers 1.4.363.0).
  • Benchmark: 12 counterbalanced rounds (36 processes, 1,188 ok rows, 29,124 timed dispatches, 0 errors, 0 stderr) of runtime/build/vk_descriptor_bench.exe --device 0 --memory {device,host,rebar} --sizes <order> --groups 4096 --iters 64 --warmup 5 --reps 25 --warmup-ms 300 --csv on 5d74c27 (vk_descriptor_bench --self-test passed).
  • Repo checks (rebased onto main 2d53a8055):
    • python -I scripts/check_no_game_data.py docs/descriptor_lookup_ampere.md docs/README.md — pass
    • Line endings verified LF-only (crlf=0) on both files
    • tests/test_docs_list_items.py, test_docs_pr_template.py, test_docs_python_deps.py, test_docs_repeated_lines.py, test_docs_repo_paths.py, test_docs_table_ids.py, test_docs_table_rows.py — all pass

AI-assisted: yes

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (N/A — docs-only hardware measurement PR.)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464776282 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/74). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:13:20Z. --- > Carried over from **old PR 9801** by `ramon-victor` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9801`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `ramon-victor`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116586259 ### What and why Adds `docs/descriptor_lookup_ampere.md` and indexes it in `docs/README.md`: D3D-56 `vk_descriptor_bench` measurements on an NVIDIA GeForce RTX 3070 (Ampere, 8 GiB, PCIe 3.0 x16, Windows 11, Resizable BAR off / 256 MiB BAR1 aperture), complementing the existing Apple M3 Max (`descriptor_lookup_apple.md`), NVIDIA RTX 4070 SUPER / Ada with ReBAR (`descriptor_lookup_ada.md`) and Intel UHD 770 (`descriptor_lookup_intel.md`) measurements. Key takeaway for descriptor-table placement on Ampere without ReBAR: - The 214 MiB Vulkan BAR1 heap (`DEVICE_LOCAL | HOST_VISIBLE | HOST_COHERENT`, exposed even with Resizable BAR off) stayed within 0.5% of GPU-only VRAM in every cell up to 100,000 entries (20.0 MiB table). - Non-device-local `host_visible` RAM over PCIe 3.0 x16 degraded sharply at 100,000 entries: 5.0× slower on uniform T# hits, 14.2× slower on divergent T# hits, 21.9× slower on divergent T#+S# pairs and 22.6× slower on divergent misses. ### Tested - **Hardware / environment**: NVIDIA GeForce RTX 3070 (Ampere, `0x10de:0x2488`), driver `621.24`, Vulkan API `1.4.357`, PCIe 3.0 x16, Resizable BAR off (256 MiB BAR1 / 214 MiB Vulkan heap 2), Windows 11 Pro 26H2 (build `26300.9974`), idle desktop (2% GPU util, 993 MiB VRAM used, P5), MSVC `19.51.36260.0` (`RelWithDebInfo`, CMake + Ninja, Vulkan headers `1.4.363.0`). - **Benchmark**: 12 counterbalanced rounds (36 processes, 1,188 `ok` rows, 29,124 timed dispatches, 0 errors, 0 stderr) of `runtime/build/vk_descriptor_bench.exe --device 0 --memory {device,host,rebar} --sizes <order> --groups 4096 --iters 64 --warmup 5 --reps 25 --warmup-ms 300 --csv` on `5d74c27` (`vk_descriptor_bench --self-test` passed). - **Repo checks** (rebased onto `main` `2d53a8055`): - `python -I scripts/check_no_game_data.py docs/descriptor_lookup_ampere.md docs/README.md` — pass - Line endings verified LF-only (`crlf=0`) on both files - `tests/test_docs_list_items.py`, `test_docs_pr_template.py`, `test_docs_python_deps.py`, `test_docs_repeated_lines.py`, `test_docs_repo_paths.py`, `test_docs_table_ids.py`, `test_docs_table_rows.py` — all pass AI-assisted: yes ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (N/A — docs-only hardware measurement PR.)
MoonEyes commented 2026-11-27 19:43:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T19:43:25Z.


Thanks a lot for carrying this over, @Andretuta. The same change is open in #1802, rebased on current main with the commit by ramon-victor (old PR 9801) kept: it adds the same docs/descriptor_lookup_ampere.md and the same docs/README.md line.

I am closing this draft to keep the queue clear. Please continue the discussion in #1802, or reopen this one if something is missing there.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7226807690 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/74#issuecomment-7226807690). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T19:43:25Z. --- Thanks a lot for carrying this over, @Andretuta. The same change is open in #1802, rebased on current `main` with the commit by `ramon-victor` (old PR 9801) kept: it adds the same `docs/descriptor_lookup_ampere.md` and the same `docs/README.md` line. I am closing this draft to keep the queue clear. Please continue the discussion in #1802, or reopen this one if something is missing there. AI-assisted (Claude Code, Claude Opus 5.5)

Pull request closed

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
ProjectLeonida/mandy!74
No description provided.