How To Change The Windows 11/10 Virtual Memory Size | TechHarry

Change Virtual Memory in Windows 11 to increase overall performance

Windows 11 has been released with great functionalities. Some functionalities are new and some are old. But one thing is still and always be there in every Windows OS which is Virtual Memory or Paging File.

But what is virtual memory (or paging file)? It is Windows's very important part that remains hidden by default. Sometimes we download or store some applications and data in our RAM, but after some time, we stop using that application. In this case, Windows identify these applications as less frequently used and modified files of our RAM. In that time, the role of Virtual Memory takes place. Virtual Memory removes that less frequently used and modified files from RAM (Random Access Memory) to Hard Drive.

Using the virtual memory or paging file technology, Windows operating system prioritizes faster physical memory for more frequent processes and applications. It improves the overall performance and prevents the device from locking up if the system runs out of system memory.

If you are experiencing virtual memory issues or trying to increase system performance, you should increase the virtual memory. In that case, Windows 11/10 allows you to increase the size of the virtual memory. There are very simple two ways to change virtual memory. Here, change means to increase or decrease the virtual memory.

How to Increase Virtual Memory on Windows 11 using the Settings app?

First, we'll cover the steps of how you can increase virtual memory on Windows 11 using the Settings app. So, do the following steps:

1. Open Settings by pressing the 'Windows + i' keys from your keyboard.

2. Look at its left sidebar and click on System.

Open settings in Windows11

3. Scroll down to the bottom and click on About on the right-side panel of Windows' Settings.

Click about at the bottom

4. Now, click the link labeled with "Advanced system settings" after the Device specifications menu.

5. A new System Properties window will open. Here, go to the Advanced menu on the top.

click advanced then settings in the system properties in settings app

6. Click the Settings button under the Performance section.

7. Click on the Advanced menu in the next pop-up window.

8. Click the Change button under the "Virtual Memory" section.

click on advanced then change in the performance options in Windows 11

9. Now uncheck the checkbox beside "Automatically manage paging files size for all drives".

Uncheck automatic paging file

10. Now click the "Custom Size" option.

11. Here, enter the initial size and maximum size for the paging file in MB (megabytes).

12. Click the Set button.

13. Click on OK.

set the custom virtual memory initial and maximum sizes

14. Click OK again.

15. Final step is to reboot your PC or laptop.

This is how you can change or increase virtual memory in Windows 11 using the Settings app. Windows operating system will now use the customized virtual memory (page file) that you have set and will optimize the performance as per your given initial and maximum sizes.

Also Read: How to customize Windows 11 Lock Screen

How to Increase Virtual Memory on Windows 11/10 using Command Prompt?

There is also a simple way to optimize paging files is by using Command Prompt. To optimize virtual memory in Windows 11/10 using Command Prompt, do the following steps:

1. Open the command prompt with admin rights.

2. When the command prompt will open, type the following code and hit Enter to view the current status of your system's virtual memory.

wmic pagefile list /format:list

3. Now type the following command to switch from manage to custom virtual memory and press Enter from your keyboard.

wmic computersystem where name="%computername%" set AutomaticManagedPagefile=false

4. In the end, type the following command to set the initial and maximum size of the virtual memory and press Enter.

wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=YOUR-INIT-SIZE,MaximumSize=YOUR-MAX-SIZE

For example, to set the initial size to "9563" and maximum size to "12575" of your virtual memory, type the following command:

wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=9563,MaximumSize=12575

5. After doing all the steps, restart your computer.

When you complete all the above steps, your PC will start using the new assigned initial and maximum values for virtual memory and should help to improve system performance.

If you no longer need to use the custom size for virtual memory, you can always revert to default changes on Windows 11/10. For doing that, type the following command on the command prompt and hit Enter on your keyboard.

wmic computersystem where name="%computername%" set AutomaticManagedPagefile=true

After that, restart your PC or Laptop.

That's how you can set virtual memory using the Settings app and change virtual memory using Command Prompt on Windows 11 and Windows 10.

Also Read: How to Fix GPU Fans not Spinning Error?

So, that's it. If you thought increasing virtual memory in Windows 11 is quite difficult and now you are saying that it was way easier than you thought, then do like this article and share it with everyone. Use the given social media links below to share content on Facebook, Messenger, Whatsapp, and everywhere. And remember for any help related to technology, TechHarry is here to solve every problem.