Files
Reims-Go/internal/host
NwflowerandClaude Opus 5.5 43c387affc fix(host): count page file growth in commit memory checks
The start check, start wait, memory recommendation and create/settings
validation compared guest RAM against GlobalMemoryStatusEx's current
commit limit. A system-managed or min/max page file grows on demand, so
that limit refused VMs that would start: with 30.7/37.4 GB committed an
8G guest was rejected while about 38 GB could still be committed.

Read each paging file's current and maximum size with
NtQuerySystemInformation(SystemPageFileInformationEx) and add the room
it can still grow, capped by its volume's free space minus a 2 GB
reserve. Fixed-size or disabled page files add nothing; if the query
fails the old values stand. Measured on Windows 10: one commit of free
commit + 10 GB (VirtualAlloc and CreateFileMapping) succeeded and grew
the limit from 37.4 to 47.4 GB.

The start error now names the total requirement and the guest share and
says page file growth is already counted; the host report gains
paging_file_growth_gb.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 08:04:14 -07:00
..