Home » How To » How to Change Virtual Memory Size in Windows 10 (Paging File Size)

How to Change the Paging File Size in Windows (Virtual Memory)

Learn the steps to change (increase or decrease) easily the paging file size in Windows 11 and Windows 10 (virtual memory size).

The paging file, also known as virtual memory or pagefile.sys, is a special, hidden file that Windows uses to extend physical memory (RAM). Windows uses this file to store and retrieve infrequently accessed data, dump crash logs, and other data. This allows Windows to efficiently manage the available memory and prevent your computer from crashing when it runs out of RAM.

By default, Windows automatically manages the paging file size depending on the available physical memory. For example, if your system has only 8 GB of RAM, then the paging file size might be larger, and vice versa.

While this is a good thing, there may be situations where you need to set how much space the paging file can use manually. For example, if you are low on disk space, limiting the paging file can give you a few extra gigabytes of space for free.

Whatever your specific reason may be, if you want to, you can manually change the paging file size in both Windows 11 and Windows 10. This guide shows you how. Let’s get started.

Before You Start

  • Changing the paging file size requires administrator rights.
  • Please create a system restore point or a full backup of your system before proceeding with the steps below.

Steps to Change Paging File Size (Virtual Memory Size)

  1. Open the Start menu by pressing the “Windows” key.
  2. Search for and open “View advanced system settings“.
  3. Click “Settings” under the “Performance” section.
  4. Go to the “Advanced” tab.
  5. Click the “Change” button.
  6. Uncheck the “Automatically manage paging file size for all drives” checkbox.
  7. Select the “C:” drive.
  8. Select the “Custom size” option.
  9. Enter the “Initial size” and “Maximum size” in MB (megabytes).
  10. Click the “Set” button.
  11. Click the “OK” button.
  12. Reboot your computer, and you’ve changed the paging file size in Windows.

Detailed Steps (With Screenshots)

The first step is to open the Advanced System Settings. There are multiple ways to do it, but the easiest is using the Start menu. So, press the “Windows” key to open the Start menu. Next, search for “View advanced system settings” and click the “Open” option.

Note: Alternatively, on Windows 11, you can also open it from “Settings” > “System” > “About” > “Advanced system settings”.

view advanced system settings

Once the Advanced System Properties window opens, make sure you are in the “Advanced” tab and click the “Settings” button under the “Performance” section.

Win-10-change-virtual-memory-size-click-settings

Now, go to the “Advanced” tab and click the “Change” button under the “Virtual memory” section. You can also see the current paging size for all drives under this section.

Win-10-change-virtual-memory-size-click-change

In this window, configure the options as follows:

  • Uncheck the “Automatically manage paging file size for all drives” checkbox.
  • Select the “C” drive from the list of drives.
  • Select the “Custom Size” radio option.
  • Enter the minimum size in MBs in the “Initial Size” field (Should be equal to or more than 2 GB).
  • Enter the maximum size in MBs in the “Maximum Size” field (Should be equal to or more than 4 GB).
  • Click the “Set” button.
Win-10-change-virtual-memory-size-configure-settings

Click the “OK” button to save the config changes. Finally, restart your computer, and you are done. From now on, Windows will not exceed the paging file limit you configured. Keep in mind that you need to allocate at least 2 GB for the paging file. Otherwise, your system will not be stable.

If you ever want to revert to the default setting and let Windows manage the paging file size, select the “Automatically manage paging file size for all drives” checkbox, and you are done.

If you have any questions or need help, comment below. I’ll be happy to assist.

Good to know: How to reset paging file (virtual memory) in Windows

Leave a Comment

Your email address will not be published. Required fields are marked *