Repository navigation
fix(libkernel): state the size of a direct memory backing Windows cannot create - #650
Merged
oneandonlydean merged 1 commit intoOct 5, 2026
Conversation
9 tasks done
|
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.
|
…not create On Windows each direct memory allocation is backed by a page-file section that CreateFileMappingW commits in full. When the system commit limit cannot cover it, the title stopped with "create direct memory backing: Insufficient system resources exist to complete the requested service", which did not say how much was requested. The error now states the requested size in bytes and MiB, and the runtime layout notes in USAGE.md describe the commit requirement and the page file. Allocation behaviour is unchanged: committing at allocation matches the console, where allocated direct memory is always backed by physical memory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Celegans12
force-pushed
the
fix/windows-direct-memory-commit
branch
from
October 5, 2026 15:52
601e184 to
62c70fb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 fix(libc): track writes to singly mapped direct memory without faults on Windows #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)