Revert "report 12 GiB of direct memory" (#10809): PPSA21564 runs out of direct memory #12192

Merged
oneandonlydean merged 1 commit from upstream-pr/12192 into main 2026-10-28 03:29:14 +00:00
oneandonlydean commented 2026-10-28 02:52:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-28T02:52:35Z.


What

Reverts #10809 (merge 780b33aea3), putting the direct memory pool back to 13824 MiB.

With the pool at 12288 MiB, PPSA21564 can no longer load its level. DirectMemoryAllocator.cpp:108 asserts Can't allocate direct memory for a 64 MB VideoPlayerTexture with 12228 of 12288 MB in use, and the process then faults about 26 s in.

Tested

NVIDIA GeForce RTX 4090, Linux, Release build, PPSA21564 level start (underwater_aerial_garden), a cold-cache run and a scored run each:

main cccdaa2734 cccdaa2734 with this revert
runs reaching 150 s 0 / 2 2 / 2
Can't allocate direct memory lines 1 per run 0

Dreaming Sarah passes on cccdaa2734 either way. The reported 12 GiB figure that #10809 matched can come back with a fix that keeps titles' working sets inside the pool.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4090, Linux
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5044400795 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12192). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-28T02:52:35Z. --- ### What Reverts #10809 (merge `780b33aea3`), putting the direct memory pool back to 13824 MiB. With the pool at 12288 MiB, PPSA21564 can no longer load its level. `DirectMemoryAllocator.cpp:108` asserts `Can't allocate direct memory` for a 64 MB `VideoPlayerTexture` with 12228 of 12288 MB in use, and the process then faults about 26 s in. ### Tested NVIDIA GeForce RTX 4090, Linux, Release build, PPSA21564 level start (`underwater_aerial_garden`), a cold-cache run and a scored run each: | | main `cccdaa2734` | `cccdaa2734` with this revert | |---|---|---| | runs reaching 150 s | 0 / 2 | 2 / 2 | | `Can't allocate direct memory` lines | 1 per run | 0 | Dreaming Sarah passes on `cccdaa2734` either way. The reported 12 GiB figure that #10809 matched can come back with a fix that keeps titles' working sets inside the pool. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4090, Linux - [x] AI-assisted: yes
MarcZX10 commented 2026-10-28 03:09:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T03:09:30Z.

Review: CHANGES_REQUESTED


The implementation diff is a focused revert and matches the reported PPSA21564 comparison, but the required conventions check currently fails on both the PR title and the only commit subject. CONTRIBUTING.md requires Conventional Commits, and the checker reports these two errors. Please retitle and rewrite the commit subject in the repository format (for example, revert(libkernel): restore the 13.5 GiB direct-memory pool), then rerun the conventions check. The other hosted checks passed: eligibility, intake, labels, report, the relinker matrix including ASan, and Windows build; Linux full build and the focused platform jobs were skipped by workflow filters. I have not independently reproduced the RTX 4090 game run, so I am not treating that as my own test evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5677308179 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12192#pullrequestreview-5677308179). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T03:09:30Z. **Review:** CHANGES_REQUESTED --- The implementation diff is a focused revert and matches the reported PPSA21564 comparison, but the required conventions check currently fails on both the PR title and the only commit subject. CONTRIBUTING.md requires Conventional Commits, and the checker reports these two errors. Please retitle and rewrite the commit subject in the repository format (for example, `revert(libkernel): restore the 13.5 GiB direct-memory pool`), then rerun the conventions check. The other hosted checks passed: eligibility, intake, labels, report, the relinker matrix including ASan, and Windows build; Linux full build and the focused platform jobs were skipped by workflow filters. I have not independently reproduced the RTX 4090 game run, so I am not treating that as my own test evidence.
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
boykopovar/AnyPS5!12192
No description provided.