Virtual memory acts as an additional memory resource on your system if it runs out of RAM. For that, it uses some reserved disk space, which you’ll find as a hiddenpagefile.sysfile.

Since virtual memory uses upadditional disk spaceautomatically, it’s not necessary to manually limit its size unless you experience any system instabilities.

If however, you do run into some issues, check thetotal memory resources you needfor your work. Then,specify the virtual memory (pagefile) sizesaccordingly.

automatically-manage-paging-file-size-for-all-drives-1024x497

Let’s discuss everything in detail.

Having yoursystem manage the virtual memory sizefor all drives is undoubtedly the best option.

You will experience very few issues. Just ensure to leave behindenough free space on your C drive.

system-managed-another-drive-1024x497

If thedrive doesn’t have much free space, your system will automatically use another drive for the paging file. you may alsospecify the next drivemanually.

The only time where you may have tomanually set the sizeis when you run intopagefile-related system issues. Even then, the amount of virtual memory you need depends on your system usage.

With larger RAMs (16+ GB), your system doesn’t need a lot of additional memory resources. But for systems with smaller ones, you’ll probably run out of memory soon.

system-properties-performance-settings-advanced-change-1024x512

It’s best to have a proportionally larger virtual memory in such cases.

For 64GB+ RAMs, the RAM itself should be enough for all purposes. So you may simply set 1-2 GB for pagefile to account for some rare circumstances.

Determine the Ideal Virtual Memory Size Yourself

The above sizes are my recommendations. They have worked for me and a lot of others, but may not be ideal for you.

process-explorer-download-sysinternals-1024x411

It’s best to estimate the ideal virtual memory size for your system by usingProcess Explorer, a Microsoft SysInternals tool.

process-explorer-peak-commit-charge-1024x512

virtual-memory-custom-size-initial-max-set-1024x497

pagefile-size-1024x497

not-enough-memory-1024x512