Online tweaks often recommend disabling pagefile.sys to make Windows 11 faster. Microsoft explains that page-file sizing supports system commit and crash dumps; a poorly chosen limit can trigger allocation errors even with apparently free RAM. First determine whether the warning comes from one leaky app, genuinely insufficient memory, a nearly full system drive or a custom page-file setting. A measured fix is safer than a fixed formula copied from another computer.
Before you start
Save work, back up important files and record the exact warning and apps open at that time. Check C: free space and installed RAM. In Task Manager's Performance > Memory view, note usage and committed memory under the failing workload. Record the current Virtual memory setting before changing it. On a managed PC, follow IT policy.Do it step by step
- Reproduce the warning with the ordinary workload and sort Task Manager's Processes by Memory. Observe whether one process grows continuously over time.
- Inspect Performance > Memory and compare Commit values with the limit, not just physical RAM usage. A high cache reading alone is not a shortage.
- Open Advanced system settings > Performance > Advanced > Virtual memory and check whether Automatically manage paging file size is enabled. Record any custom limit.
- If a restrictive custom setting exists, use the supported system-managed setting after checking disk space, then restart and repeat the workload.
- Update or repair a leaky app if it dominates committed memory. Close excessive tabs or add supported RAM when the workload routinely exceeds capacity.
- Retest the exact scenario and confirm no allocation warning or crash. Keep sufficient disk space for Windows updates and crash dumps; do not move the only page file blindly.