• Post last modified:22 September 2024
  • Reading time:7 mins read
  • Post author:

Virtual memory is a clever trick that Windows uses to supplement your computer’s RAM. When RAM runs out, your system starts using part of your hard disk as a temporary memory extension. This ensures that your applications continue to run smoothly, even when RAM is running low.

By default, the amount of virtual memory allocated may not be sufficient for all your activities. This leaves you with a sluggish PC, applications that close without warning and, let’s be honest, an urge to throw everything out of the window. Fortunately, increasing the amount of virtual memory is child’s play, and I’ll take you through it step by step.

Increase the amount of virtual memory

  1. Enter Windows 11 Settings.
  2. In System, click on System information.
windows 11 settings system information
  1. In System information, click on Advanced system settings.
advanced system settings
  1. In the Performance section, click on Settings.
system properties windows performance
  1. Go to the Advanced tab.
advanced
  1. Finally, in the Virtual memory section, click on Modify.
modify amount of windows virtual memory
  1. By default, Windows manages virtual memory automatically. Uncheck this box to access advanced settings.
disable windows automatic virtual memory
  1. Then click on the Custom Size box and enter the following quantities:
  • Initial size (MB): 1024
  • Maximum size (MB): 8192
set amount of Windows virtual memory
  1. Then click on Set, then OK. A warning window will open to inform you that the changes will require a restart to become operational.
virtual memory warning
  1. Then close all windows by clicking OK. The system will then prompt you to restart.
restart to apply changes

🏆 Bravo! You’ve increased the amount of virtual memory available.

Enable automatic virtual memory flushing

Virtual memory is useful on a slow system, but can also slow down the system if it is constantly full. To deal with this problem, one technique is to automatically empty virtual memory when the computer shuts down.

  1. Press Windows + R to open the Run window.
Execute window
  1. Type regedit and press Enter, a pop-up window will open, press Yes.
  2. Then enter the following key in the search bar.
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management
regedit
  1. Double-click on the ClearPageFileAtShutdown key and enter 1 in Value data before confirming.
ClearPageFileAtShutdown

🏆 Congratulations! You’ve configured virtual memory to empty itself when the computer shuts down.

Adrien

I’m Adrien, passionate about technology and specialized in technical support for individuals. My goal is to make technology accessible to as many people as possible.