SoftPerfect RAM Disk

How to set Windows 10 page file on a RAM disk

Started by Roger

Roger

How to set Windows 10 page file on a RAM disk   25 April 2018, 15:50

Is it possible to set windows 10 paging file to RAMdisk (only)?
I tried, but after reboot the system reports warning and automatically creates it in disk C.
SoftPerfect Support forum - Andrew avatar image

Re: How to set Windows 10 page file on a RAM disk   25 April 2018, 19:41

Storing page files on a RAM disk isn't officially supported, and it is generally a bad idea. If you have enough RAM, simply turn the page file off - it is not needed.

As you may know, the point of the page file is to swap out memory pages from RAM to a file on the disk when more memory is required. In other words, a page file can be seen as a RAM extension. By placing a page file back into memory (on a RAM disk), you would attempt to extend the resource using the resource itself. Therefore there is no benefit in doing so, only added complications. A more detailed explanation can be found in this article: Why it is not recommended to store the page file on a RAM disk.
RAM gobbler

Re: How to set Windows 10 page file on a RAM disk   20 July 2025, 07:12

But can it still be done? Can you add a support for my use case?

I have a situation where a program for some reason really wants to use the pagefile on a system where I have plenty of RAM but limited disk space. So I would like to create a pagefile on a RAM disk as a dummy pagefile to force this program into using RAM instead of reporting insufficient memory when I have heaps of it.
SoftPerfect Support forum - Andrew avatar image

Re: How to set Windows 10 page file on a RAM disk   20 July 2025, 10:36

Yes, it can be done. We don't recommend it, bit it does work and survives reboots. We tested it by:
  1. Creating a RAM disk (e.g. 4 GB, exFAT, drive R:).
  2. Setting a custom pagefile on it via System Properties > Performance > Virtual memory.
  3. Disabling pagefiles on other drives.
After reboot, Windows used the RAM disk as the pagefile. It's not true paging, but it satisfies the apps that require a pagefile.

SoftPerfect support forum

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

 ********   **     **   ******    **     **  ******** 
 **     **  **     **  **    **   ***   ***  **       
 **     **  **     **  **         **** ****  **       
 **     **  *********  **   ****  ** *** **  ******   
 **     **  **     **  **    **   **     **  **       
 **     **  **     **  **    **   **     **  **       
 ********   **     **   ******    **     **  ******** 

Message: