Virtual Memory - Settings and Suggestions

Virtual memory (also known as a page file) is essentially a block of space on your hard drive or solid state drive allocated by the OS to pretend to be RAM when your physical RAM runs short for actively running programs. It supplies additional "fake" RAM to allow programs to continue functioning, but because HDD and SSD access and performance is much slower than that of actual RAM, noticeable performance loss is usually observed when relying extensively on virtual memory.

Managing virtual memory in a Windows® system is relatively easy, but largely unnecessary. Windows will, by default, adjust virtual memory on the fly based on your needs and your installed RAM. It tries to set itself to what it expects you to need based on your installed RAM and it will adjust itself if your usage spikes. This can lead to it self-adjusting to end up taking a large amount of space if you are currently running a large amount of RAM (for example a system with 8GB of RAM will often default to 8GB of virtual memory and can grow as large as 16GB). Some users will change the virtual memory settings to reduce space being used by their OS on their hard drive or solid state drive because they feel they have sufficient RAM to never need the virtual memory feature of their OS. Users also want to reclaim space that is being "wasted" if virtual memory is not being used, this especially happens with higher cost storage on an SSD.. However, reducing or eliminating your virtual memory to free up drive space carries some risk of causing errors or system instability in cases where you would need more virtual memory but have capped what your system can use.

Increasing this memory setting is also generally not needed. Instances where more virtual memory makes the difference between a program working or not are best solved with a RAM upgrade, as RAM speeds greatly exceed the performance of virtual memory. Your system performance will be reduced compared to improving the dedicated hardware meant to provide this benefit.

Manual adjustments to this setting are done at your own risk, and this should not be attempted unless you have solid guidelines about what you actually need. Under-allocating space for virtual memory can lead to programs or your system as a whole malfunctioning. Additionally, older programs are designed with the assumption there is a page file in place for them to use, and malfunctions of individual programs can occur if adequate virtual memory is unavailable to them due to incorrect configuration.

Detailed instructions for these adjustments in older versions of Windows vary slightly from the instructions below but will still be mostly applicable, as this feature has not changed much since Windows XP.

  1. Enter system properties by either the System link in the System and Security sub-menu of Control Panel or by right-clicking Computer in your start menu and selecting Properties (Windows 7 and earlier only). This will open the window pictured below.
  1. Select Advanced System Settings (link outlined in red numbered 1 in the above screen). This will open a window titled System Properties.
  1. Click the "Settings" button in the performance category (outlined button labeled 2 in the screenshot above). This opens the performance options window.
  2. Navigate to the advanced tab (outlined and labeled 3) then click the change button (outlined and labeled 4). This will open the virtual memory window (outlined and labeled 5), from which any adjustments can be made.

If you disable the 'automatically manage paging file size for all drives', this window will allow you to manually set sizes or size ranges, specify which drive this space is placed on if you have more than one (to free up space on an SSD by moving the page file to a secondary platter hard drive), or disable the feature entirely.

While some users do shut off automatic management, or virtual memory features as a whole, our official recommendation is to leave it in place. If you are comfortable reducing the size based on your usage that can be done safely, but disabling this entirely is not necessarily safe. Even if you feel you have sufficient RAM to go without this, that change does put you at risk of poorly optimized software, particularly something with a memory leak issue ballooning it's RAM footprint, causing malfunctions later.

©2019 Micron Technology, Inc. All rights reserved. Information, products, and/or specifications are subject to change without notice. Neither Crucial nor Micron Technology, Inc. is responsible for omissions or errors in typography or photography. Micron, the Micron logo, Crucial, and the Crucial logo are trademarks or registered trademarks of Micron Technology, Inc. Windows is a trademark of Microsoft Corporation in the U.S. and/or other countries. All other trademarks and service marks are the property of their respective owners.