How to Adjust Virtual Memory in Windows 11
Virtual memory acts as a secondary storage mechanism when your computer runs low on physical RAM, temporarily storing paging files on your hard drive or SSD. While Windows 11 manages this allocation automatically by default, setting it manually can help prevent “out of memory” crashes, stabilize system performance, and optimize drive usage. This guide provides direct, step-by-step instructions to configure your custom paging file size in Windows 11.
Step 1: Open Advanced System Settings
- Press
Win + Sto open the Windows Search bar. - Type View advanced system settings and select the matching result from the list.
- The System Properties window will appear, opened directly to the Advanced tab.
Step 2: Navigate to Virtual Memory Settings
- Under the Performance section at the top of the Advanced tab, click the Settings… button.
- In the new Performance Options window, switch to the Advanced tab.
- Locate the Virtual memory section at the bottom and click the Change… button.
Step 3: Configure the Paging File Size
- Uncheck the box labeled Automatically manage paging file size for all drives at the very top.
- Under the drive list, select the drive volume where you want to
allocate virtual memory (typically the
C:drive). - Select the Custom size radio button.
- Enter your desired values in megabytes (MB) for:
- Initial size (MB): The starting allocation size.
- Maximum size (MB): The upper limit the paging file can expand to.
- Click the Set button to apply the specific values to the selected drive.
- Click OK to close the Virtual Memory window.
Recommended Size Guidelines
When choosing custom sizes, use the following standard formulas based on your physical RAM (1 GB = 1024 MB):
- Initial Size: Multiply your total RAM by
1.5. (e.g., for 16 GB of RAM:
16 * 1024 * 1.5 = 24,576 MB). - Maximum Size: Multiply your total RAM by
3. (e.g., for 16 GB of RAM:
16 * 1024 * 3 = 49,152 MB).
Step 4: Apply and Restart
- Click Apply and then OK on the Performance Options window.
- Click OK on the System Properties window.
- Restart your computer when prompted to allow Windows 11 to apply the new virtual memory allocation.