fix(libkernel): state the size of a direct memory backing Windows cannot create #650
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/650"
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?
Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-05T10:55:48Z.
What
On Windows,
CreateDirectMemoryBackingbacks each direct memory allocation with a fully committed page-file section (CreateFileMappingW). When the commit limit cannot cover it, the error was onlycreate direct memory backing: Insufficient system resources exist to complete the requested service, with no size.create direct memory backing of 0x<n> bytes (<m> MiB): <Windows error>, MiB rounded up. It still throws; allocation is unchanged.DIRECT_MEMORY_SIZE) is committed at allocation, and to enlarge the page file or close other applications.SEC_RESERVEand commits direct memory only as it is mapped. If it merges first, creating the section no longer fails on commit, so this message matters only until then; the commit limit must then cover the mapped pages, and the USAGE.md note still applies. This branch will then be rebased onto #637, dropping or moving the message hunk as the maintainers prefer.memfd_createpath is unchanged, so a reviewer on Linux cannot run it.PPSA26344 v1.008 (
APS5_TRACE_MEMORY) allocated 0x26c00000, 0x27e00000 and 0xd3400000 bytes; the next allocation threw the old message with 32.5 of the host's 40.7 GB commit limit in use before launch. With 21.6 GB of commit free, the same build got past it.#550 changes
LinuxProtFromScein the same file; #461 and #600 add other USAGE.md sections. None of them conflicts with this branch's hunks.Tested
-DBUILD_TESTING=ON, full build,--target libs.ctest --output-on-failure)create direct memory backing of 0xd3400000 bytes (3380 MiB): Insufficient system resources exist to complete the requested service.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T13:32:27Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libkernel/DirectMemory/DirectMemory.cppL228-229