T

Manage Pagefile Virtual Memory

28 views · updated 2026-07-01 · published 2026-07-01 · by Hasarinda Manjula · Microsoft Windows Reading time: 3 min English සිංහල

Overview

The pagefile (pagefile.sys) is a hidden file on your drive that Windows uses as virtual memory — an overflow area when physical RAM fills up. By default Windows manages it automatically, but setting a size manually can help on systems with specific workloads or limited RAM. This guide explains how the pagefile works and how to set a sensible size.

Key Takeaways

  • The pagefile is virtual memory that supplements your physical RAM.
  • For most users, letting Windows manage the pagefile automatically is the safest choice.
  • A common manual guideline is an initial size of 1.5x RAM and a maximum of 3x RAM.
  • The pagefile is configured under System Properties > Performance > Virtual Memory.

Note: On systems with plenty of RAM and a fast SSD, automatic management usually performs best. Set a manual size only if you have a specific reason.

Check Your Current Pagefile

1. Press Windows + R, type sysdm.cpl, and press Enter.

2. Open the Advanced tab and click Settings under Performance.

3. In the Performance Options window, open the Advanced tab.

4. Click Change under Virtual memory to see the current configuration.

Opening the Virtual Memory settings from Performance Options.

Set a Custom Pagefile Size

1. Uncheck Automatically manage paging file size for all drives.

2. Select the drive, then choose Custom size.

3. Enter an initial size of roughly 1.5 times your installed RAM in megabytes.

4. Enter a maximum size of about 3 times your RAM, click Set, then OK.

5. Restart the computer to apply the new settings.

Tip: To convert to megabytes, multiply gigabytes by 1024. For 8 GB of RAM, an initial size near 12288 MB and a maximum near 24576 MB fits the 1.5x/3x guideline.

Warning: Do not disable the pagefile entirely. Some applications and crash-dump features require it, and turning it off can cause instability or errors under memory pressure.

Troubleshooting

Problem: You see low-memory warnings even after adding a pagefile.

Solution: Increase the maximum size, or better, add more physical RAM since the pagefile is far slower than memory.

Problem: The pagefile setting reverts after a restart.

Solution: Make sure you clicked Set before OK, and that automatic management is unchecked for the drive you configured.

Problem: A moved pagefile leaves a large file on the old drive.

Solution: Set the old drive to No paging file, click Set, reboot, and delete the leftover pagefile.sys if it remains.

Problem: Crash dumps stop being created.

Solution: Ensure the system drive has a pagefile at least as large as required for the dump type you selected.

Conclusion

The pagefile is a safety net for your system’s memory. For most people automatic management is ideal, but knowing how to set a custom size gives you control when a workload or a low-RAM machine calls for it.

About TechHub

This guide is part of the TechHub Knowledge Base. For more step-by-step IT guides and support, visit techhub.com.lk.

Thanks for your feedback! 🙌

Read more

TechHub Assistant
Online · AI assistant
Thinking
⬇ Downloads 📦 Orders 🛒 Buy License 🎫 Create Ticket 🙋 Contact
AI-generated · may be inaccurate. Talk to a human