How to Manage Virtual Memory on Windows 11

In Short
  • The Virtual Memory feature on Windows 11 stores frequently accessed data on your PC's storage drive to quickly recall it, resulting in better performance.
  • You can manage virtual memory by going to System info > Advanced Settings > Performance tab.
  • Alternatively, you can use the WMIC utility to do the same via the Command Prompt.

The Virtual Memory feature on Windows 11, just like on today’s smartphones with expandable virtual RAM, stores frequently accessed data on your PC’s storage drive to quickly recall it, giving your PC a decent boost in performance if it’s struggling to keep up. While Windows has the ability to automatically increase and reduce the paging size, manually changing it in case of significant performance drops is better. Windows easily allows you to manage virtual memory, and here’s how to do it.

Manage Virtual Memory on Windows 11

There are a couple of ways you can manage virtual memory on Windows 11. The easiest way to do it is via the Settings app, but you can also get it done with specific commands on the Command Prompt.

Method 1: Increase Virtual Memory Using Windows 11 Settings

  1. Launch Windows Settings and go to System > About.
  2. Here, click on Advanced system settings and go to the Advanced tab.
  3. Click on Settings under “Performance”.
  4. Go to the Advanced tab yet again.
  5. Inside the “Virtual memory” section, click on Change.
  • How to Manage Virtual Memory on Windows 11
  • How to Manage Virtual Memory on Windows 11
  • How to Manage Virtual Memory on Windows 11
  1. Uncheck the Automatically manage paging file size for all drives box.
  2. Choose a drive you want to borrow memory from and click Custom size.
  3. Enter desired values inside Initial size and Maximum size. We recommend an initial size of the size of your RAM and a Maximum size of double the size of your RAM.
  4. Once done, click OK.
  5. Finally, restart your Windows PC. The paging and virtual memory settings should be changed and live.
  • How to Manage Virtual Memory on Windows 11
  • How to Manage Virtual Memory on Windows 11
  • How to Manage Virtual Memory on Windows 11

Method 2: Manage Virtual Memory Using Terminal

The Windows Management Instrumentation Command can be used to change the paging to manual and the allocated memory from the storage drive.

  1. Launch the Command Prompt using the Run as Administrator option.
How to Manage Virtual Memory on Windows 11
  1. Execute the following command to show the current paging and virtual memory details.
wmic pagefile list /format:list
  1. The AllocatedBaseSize value is your current virtual memory in Megabytes.
How to Manage Virtual Memory on Windows 11
  1. To switch from automatic to manual paging and allocation, execute the following command.
wmic computersystem where name="%computername%" set AutomaticManagedPagefile=false
  1. Once done enter the following command to set the Initial and Maximum memory, as we did in the UI in the above method. Don’t forget to replace the InitialSize and MaximumSize parameters in Megabytes.
wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=YOUR-INIT-SIZE,MaximumSize=YOUR-MAX-SIZE
  1. For example wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=16000,MaximumSize=48000
  2. Restart your computer.
How to Manage Virtual Memory on Windows 11

Were you able to increase Virtual Memory on Windows by following this guide? Let us know if you have any doubts.

#Tags
comment Comments 0
Leave a Reply