Sample private commitment across long frames #939

Closed
github-bot wants to merge 1 commit from gh-pr/939/head into gh-pr/939/base
Owner

@⁠Kamiloj9 on GitHub · 2026-11-25 13:18 UTC · original
Kamiloj9:codex/memory-timeline → main · +91 −13 · 6 files · 1 commits · closed without merging

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.
**@⁠Kamiloj9** on GitHub · 2026-11-25 13:18 UTC · [original](https://github.com/fxceless/victory-fork/pull/939) `Kamiloj9:codex/memory-timeline` → `main` · +91 −13 · 6 files · 1 commits · closed without merging ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:54:16 +00:00
github-bot closed this pull request 2026-11-26 03:54:16 +00:00
Author
Owner

@⁠Filip722 on GitHub · 2026-11-25 22:09 UTC · original · edited 2026-11-25 22:40 UTC

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.

**@⁠Filip722** on GitHub · 2026-11-25 22:09 UTC · [original](https://github.com/fxceless/victory-fork/pull/939#issuecomment-7176010352) · edited 2026-11-25 22:40 UTC 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.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.