Sample private commitment across long frames #938

Closed
Kamiloj9 wants to merge 1 commit from upstream-pr/939 into main
Kamiloj9 commented 2026-11-25 13:18:34 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Kamiloj9 on 2026-11-25T13:18:34Z.


Summary

  • Add VICTORY_MEMORY_TIMELINE=1 for diagnostics builds. It samples process private commit and graphics counters about every 250 ms from host initialization. This continues through long frames without waiting for a Present.
  • Request memory maps at 4 and 2 GiB of remaining commit when memory maps are enabled. These requests share the existing guard with periodic walks.
  • Report cumulative requested upload and shared-buffer bytes, logical sizes for live resources, and pipeline library activity. These measure different aspects of the process and serve as correlations with the OS memory samples.

Verification

  • Public branch workspace checks with and without diagnostics, four GPU diagnostics tests, and staged asset policy passed.
  • A guarded native run on the integration branch produced 218 samples. Over the largest 251 ms interval, process private commit rose by 1,677 MiB and cumulative shared-buffer requests rose by 1,175 MiB. Upload requests rose by less than 1 MiB. The run stopped at the memory floor before the world-frame marker.
  • The guarded run also used the opt-in backing from #928 to get past the initial physical-page commitment spike. The memory timeline can be used without #928.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6605391468 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/939). Originally posted by [Kamiloj9](https://github.com/Kamiloj9) on 2026-11-25T13:18:34Z. --- ## Summary - Add `VICTORY_MEMORY_TIMELINE=1` for diagnostics builds. It samples process private commit and graphics counters about every 250 ms from host initialization. This continues through long frames without waiting for a Present. - Request memory maps at 4 and 2 GiB of remaining commit when memory maps are enabled. These requests share the existing guard with periodic walks. - Report cumulative requested upload and shared-buffer bytes, logical sizes for live resources, and pipeline library activity. These measure different aspects of the process and serve as correlations with the OS memory samples. ## Verification - Public branch workspace checks with and without diagnostics, four GPU diagnostics tests, and staged asset policy passed. - A guarded native run on the integration branch produced 218 samples. Over the largest 251 ms interval, process private commit rose by 1,677 MiB and cumulative shared-buffer requests rose by 1,175 MiB. Upload requests rose by less than 1 MiB. The run stopped at the memory floor before the world-frame marker. - The guarded run also used the opt-in backing from #928 to get past the initial physical-page commitment spike. The memory timeline can be used without #928.
Filip722 commented 2026-11-25 23:09:57 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Filip722 on 2026-11-25T22:09:33Z.


I ran main 9c184b3 with this timeline at 215240d in a Series S Proton integration on Bazzite 44, RTX 5060 Laptop 8 GB, 16 GB host RAM, NVIDIA 615.78.08 and GE-Proton11-14/vkd3d-proton cae8353ed7959c4+. The run sampled the title cgroup every 200 ms alongside the engine's 250 ms timeline.

In the largest roughly one-second cgroup interval, kernel charge rose 876 MiB, file charge fell 618 MiB, anonymous charge fell 249 MiB, and cgroup swap rose 251 MiB. Engine samples bracketing that interval recorded 980 MiB of additional shared-buffer requests, 4.5 MiB of upload requests, and 12.3 MiB more live staging. The two clocks align closely enough to identify this burst. The shared-buffer counter measures requested bytes, and the kernel charge does not identify the underlying driver allocations.

The trial displayed loading art and then black frames. It stopped at 310 seconds on host full-memory pressure (3.96% avg10), with about 6 GiB host memory available and zero NVMe swap occupancy. These data are from one title run.

Test and report prepared with assistance from OpenAI Codex.

Follow-up attribution: I added diagnostic counters after successful shared resource creation and mapping. Between the last stable loading samples and the transition stop, those counters grew by about 713 MiB for registered title buffers, 792 MiB for loose windows, 0 MiB for exact views, and 16 MiB for other callers. They measure cumulative allocation sizes. This independent run again reached loading art and then black, and the host memory-pressure guard stopped it at 306 seconds. A Windows MSVC diagnostics build, non-diagnostics check and the asset-policy check passed.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7176010352 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/939#issuecomment-7176010352). Originally posted by [Filip722](https://github.com/Filip722) on 2026-11-25T22:09:33Z. --- I ran main `9c184b3` with this timeline at `215240d` in a Series S Proton integration on Bazzite 44, RTX 5060 Laptop 8 GB, 16 GB host RAM, NVIDIA 615.78.08 and GE-Proton11-14/vkd3d-proton `cae8353ed7959c4+`. The run sampled the title cgroup every 200 ms alongside the engine's 250 ms timeline. In the largest roughly one-second cgroup interval, kernel charge rose **876 MiB**, file charge fell **618 MiB**, anonymous charge fell **249 MiB**, and cgroup swap rose **251 MiB**. Engine samples bracketing that interval recorded **980 MiB** of additional shared-buffer requests, **4.5 MiB** of upload requests, and **12.3 MiB** more live staging. The two clocks align closely enough to identify this burst. The shared-buffer counter measures requested bytes, and the kernel charge does not identify the underlying driver allocations. The trial displayed loading art and then black frames. It stopped at 310 seconds on host full-memory pressure (3.96% avg10), with about 6 GiB host memory available and zero NVMe swap occupancy. These data are from one title run. Test and report prepared with assistance from OpenAI Codex. **Follow-up attribution:** I added diagnostic counters after successful shared resource creation and mapping. Between the last stable loading samples and the transition stop, those counters grew by about **713 MiB** for registered title buffers, **792 MiB** for loose windows, **0 MiB** for exact views, and **16 MiB** for other callers. They measure cumulative allocation sizes. This independent run again reached loading art and then black, and the host memory-pressure guard stopped it at 306 seconds. A Windows MSVC diagnostics build, non-diagnostics check and the asset-policy check passed.
upstream-sync closed this pull request 2026-11-26 01:06:01 +00:00

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
fxceless/victory-fork!938
No description provided.