How to manage virtual memory on Windows 11

Is your PC running out of virtual memory? If so, use these steps to increase the capacity on Windows 11.

When you purchase through links on our site, we may earn an affiliate commission.Here’s how it works.

OnWindows 11, virtual memory is a feature that temporarily stores less frequent paging files loaded into RAM (Random Access Memory) onto the hard drive. The feature allows the operating system to use faster physical memory for running apps and processes, resulting inbetter performancewhile preventing the system from freezing up if memory runs out.

The system can manage the paging file size automatically. However, in some situations, you may need to manually change the default virtual memory settings. For example, when the computer is exhibiting performance issues, an application requires specific memory settings to work correctly, or you stumble upon the"Your system is low on virtual memory"message.

Whatever the case, Windows 11 includes at least two different methods to increase the virtual memory capacity using the Settings app and Command Prompt to overcome system memory limitations.

In thishow-to guide, I’ll explain how to increase the virtual memory size on your device to make it faster. However, it’s important to note that even though nothing stops you from changing the paging file size, you should only use these instructions if you have a good reason and know what you’re doing.

How to increase virtual memory through Settings

How to increase virtual memory through Settings

To modify the virtual memory settings on Windows 11, use these steps:

Quick tip:The virtual memory size will not be the same for every situation. However, you should usually use a number that’s one and a half times the total available memory for the"Initial size"and three times the available memory for the"Maximum size.“Also, remember that the computer must have enough available space to set the new parameter since the virtual memory will be stored on the main hard drive.

Once you complete the steps, the overall system performance should increase while navigating the desktop and running apps.

Get the Windows Central Newsletter

Get the Windows Central Newsletter

All the latest news, reviews, and guides for Windows and Xbox diehards.

If you change your mind, you can undo the changes with the same instructions, but onstep 9, check the"Automatically manage paging size for all drives"option and restart the computer.

How to increase virtual memory through Command Prompt

To change the paging file size with commands on Windows 11, use these steps:

This example sets the paging file to “9216” and “12288” megabytes for the initial and maximum size:wmic pagefileset where name=“C:\pagefile.sys” set InitialSize=9216,MaximumSize=12288

After you complete the steps, the computer should start showing a boost in performance.

When you no longer need this configuration, you can run thewmic computersystem where name="%computername%” set AutomaticManagedPagefile=truecommand to revert the changes and restart the computer.

Although there are some recommendations to configure the virtual memory manually, you should always take the time to test the configurations and modify the values if the system starts having stability problems.

If you think that the device doesn’t need virtual memory only because you have a large amount of physical memory, you shouldn’t disable the feature. The reason is that the system needs the paging file. Otherwise, you may experience problems running applications and using many Windows 11 features.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:

Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.