sodcalculator

10 Tech How-To

Configure Windows Virtual Memory When RAM Is Low

Guide 10-16708 · Updated · Step by step

When your Windows PC runs out of physical RAM, it falls back on virtual memory, which uses a portion of your hard drive or SSD as a temporary overflow. If you’re seeing “low on memory” warnings or sluggish performance, adjusting the virtual memory (page file) size can help. This guide walks you through changing the page file settings in Windows 10 and 11.

What You’ll Need

  • An account with administrator privileges on the Windows PC.
  • Knowledge of how much RAM you have (check in Settings > System > About).
  • At least 10–20 GB of free space on the drive where you’ll place the page file (usually C:).

Step-by-Step

  1. Open System Properties. Press Windows + R, type sysdm.cpl, and press Enter. Alternatively, go to Settings > System > About > Advanced system settings.
  2. Access Performance Options. In the System Properties window, under the “Advanced” tab, click the Settings button in the Performance section.
  3. Open Virtual Memory settings. In the Performance Options window, switch to the “Advanced” tab and click Change… under Virtual memory.
  4. Uncheck automatic management. At the top, uncheck “Automatically manage paging file size for all drives.” This unlocks the manual controls.
  5. Select the drive. In the list of drives, choose the one where Windows is installed (usually C:). It’s best to keep the page file on the system drive for stability.
  6. Choose custom size. Select “Custom size.” Enter an initial size and a maximum size in megabytes (MB). A common recommendation is 1.5 times your RAM for the initial size and 3 times your RAM for the maximum, but you can adjust based on your usage. For example, with 8 GB RAM (8192 MB), you might set initial to 12288 MB and maximum to 24576 MB.
  7. Set the values. Type the numbers in the “Initial size (MB)” and “Maximum size (MB)” fields. If you’re unsure, set both to the same value to prevent the file from growing and shrinking, which can reduce fragmentation.
  8. Apply the changes. Click Set, then OK on all open dialog boxes.
  9. Restart your PC. Windows will prompt you to restart for the changes to take effect. Save your work and reboot.

Common Mistakes

  • Setting the page file too small. If you set it below the recommended size, you’ll get “low on memory” errors more often, as Windows can’t allocate enough virtual memory.
  • Disabling the page file entirely. Some users disable it to save space, but this can cause crashes or prevent large applications from launching. Windows needs at least a small page file for system stability.
  • Putting the page file on a different drive. While possible, placing it on a separate drive can make the system unstable if that drive fails. It’s safer to leave it on the system drive.
  • Using a fixed size that’s too small for your workload. If you run memory-heavy apps like video editing or virtual machines, your max size should be generous. Otherwise, you’ll still hit limits.
  • Forgetting to restart. Changes only apply after a reboot. If you don’t restart, the old settings remain active.

Tips

  • Let Windows manage it if you’re unsure. The default “system managed” option works well for most users. Only change it if you have a specific reason.
  • Use an SSD for the page file. If you have an SSD, the page file will be faster than on a traditional hard drive, improving performance.
  • Monitor your usage. Open Task Manager (Ctrl + Shift + Esc) and check the Performance tab to see how much RAM is in use. If it’s consistently above 90%, consider adding more physical RAM instead of relying on virtual memory.
  • Set a fixed size to avoid fragmentation. If you have enough free space, setting initial and max to the same value prevents the page file from expanding and contracting, which can reduce performance over time.
  • Keep at least 10% of your drive free. The page file needs room to grow; a nearly full drive will cause errors.

Troubleshooting

  • Changes don’t stick after restart. Make sure you clicked Set before OK. Also, if “Automatically manage” is checked again, you may have a third-party utility overriding it. Disable such tools.
  • You get a “not enough memory” error even after increasing the page file. Check if your drive has enough free space. Also, verify that the new size is actually applied by going back to the Virtual Memory window and looking at the “Current allocation” value.
  • Windows reverts to automatic management. This can happen if the system detects instability. Try setting a custom size again and restarting immediately. If it persists, run sfc /scannow in an elevated Command Prompt to check for system file corruption.
  • The page file is on a different drive than expected. If you previously set it on another drive, Windows may still use that one. Ensure you’ve selected the correct drive and set it to “System managed” or “Custom” there as well.
  • Performance is still poor. Virtual memory is much slower than physical RAM. If you’re constantly using the page file, the real fix is adding more RAM or closing background apps.

Frequently Asked Questions

What is the ideal page file size?

There’s no one-size-fits-all. For most users, letting Windows manage it is best. If you set it manually, a common starting point is 1.5 times your RAM for the initial size and 3 times for the maximum. Adjust based on your actual usage.

Should I disable virtual memory if I have enough RAM?

No. Windows uses the page file for more than just overflow—it’s used for crash dumps and some system operations. Keeping it enabled, even with a small size, is recommended for stability.

Can I move the page file to another drive?

Yes, but it’s generally not recommended. If the other drive is slower, performance will suffer. If it’s an SSD, it can be okay, but you risk losing the page file if the drive fails, which can cause system crashes.

Does virtual memory affect gaming performance?

Yes, but indirectly. If your game needs more memory than you have, the page file is used, which is much slower. This can cause stuttering. Increasing the page file won’t make games faster; adding more RAM will.

How do I check the current page file size?

Open the Virtual Memory settings as described in the steps. The “Current allocation” column shows the current size for each drive. You can also see it in Task Manager under Performance > Memory.

What happens if the page file fills up?

If the page file reaches its maximum size and the system still needs more memory, applications may crash or the system may become unstable. That’s why it’s important to set a reasonable maximum or let Windows manage it.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →