mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3610
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1693
Author: @sergqwer
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:pr/setup-page-files📝 Commits (1)
b39e604setup: the page-file warning advises a fixed size, and says why when Windows is set to grow the file📊 Changes
4 files changed (+271 additions, -9 deletions)
View changed files
📝
docs/AI_SETUP.md(+1 -1)📝
docs/DETAILS.md(+1 -1)📝
setup.py(+111 -7)➕
tools/test_setup_page_file.py(+158 -0)📄 Description
Step 1 warns when Windows' page file is below 4 GB (issue #60) and advises
Set it to "System managed". In #60 that advice did not help:cudaMalloc ... out of memory;A page file that Windows grows on demand may not grow in time while WDDM charges the card's memory to the commit. Microsoft's sizing page says a system-managed file grows "when the system commit charge is more than 90 percent of the system commit limit", which is after the fact for one large allocation.
This is mostly a text change. The 4 GB threshold and the size step 1 measures stay as they are.
Change (
setup.py, two doc rows, a new test file):PAGE_FILE_FIXED_MB, the fixed 64 GB that worked in #60), then restart. It no longer advises "System managed".page_file_setting()reads the Virtual memory setting. That isPagingFilesunderHKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management, which needs no admin;?:(every drive automatic) is the driveExistingPageFilesnames.page_file_gb()still counts only what is there for sure:docs/AI_SETUP.mdanddocs/DETAILS.md(theExpertCache: cudaMalloc(...) failedrows) give the same advice.tools/strata_mcp.pykeeps callingpage_file_gb()and reports the same number as before.Before / after. Step 1 runs under
--checkthroughtools/test_setup_golden.py's harness, with the page-file reading done as on Windows. The registry, the drives and GlobalMemoryStatusEx are mocked in every row except the first. The same script ran againstfb58e0dband this branch:fb58e0db32GB-2x24GB)?:), now 4083 MBSet it to "System managed"It is set to grow on demand ... may not grow in time ... Set a fixed size ... 65536 MBSet it to "System managed"Set it to "System managed"Set a fixed size ... 65536 MBPagingFilesempty)Set it to "System managed"Set a fixed size ... 65536 MBThe new warning on the system-managed PC:
Tests. The new
tools/test_setup_page_file.pyhas 10 tests:--checkon the harness's 32 GB PC: system-managed, a fixed 2048 MB file and none are warned; 8 GB system-managed and a fixed 64000 MB are not.It uses mocks only, so it runs on Linux as well.
python -m unittest discover -s tools -p "test_setup*.py"gives 418 OK onfb58e0dband 428 OK on this branch (Windows 11, Python 3.12).tools.test_strata_mcpgives 24 OK.Not changed:
Not measured: a real PC with a system-managed or growing page file. The page files here are fixed, and changing them needs admin and a restart.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.