Say in the log when the system's commit runs low under a page file that Windows sizes itself.

With the page file left to Windows the commit limit stays near the installed memory plus what the file held at the start, and on a 16 GB PC with a 16 GB card it ran low in Hyrule Field at 32 GB, where a fixed page file of 32 GB or more gave 49 GB and no low commit. The first "system commit low" line of a run is now followed, once, by a line that names the cause and the Windows setting, and the build kit's guide gives the same advice for 16 GB PCs. plat_page_file_managed reads the PagingFiles value once; on this PC (page file sized by Windows) it returns 1.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-10 23:02:15 -05:00
parent 3ea3f5baa8
commit 7145c3f208
5 changed files with 42 additions and 0 deletions

View File

@@ -2229,6 +2229,9 @@ int plat_commit_note(char *out, size_t cap) {
// The cgroup's memory.current and MemAvailable count system memory only: a graphics card's own memory is in neither.
int plat_commit_counts_vram(void) { return 0; }
// Swap is not a page file Windows sizes; the limits plat_commit_info reads do not grow with it.
int plat_page_file_managed(void) { return -1; }
// ---- child processes
struct PlatChild {