I am considering Ramdisk for windows page file.
I did find some posts talking about this, and had errors trying to have complete pagefile only on ramdisk.
I believe we can have more than one paging file in windows.
Would a solution be to have a minimum size page file on the C: drive, but add a secondary (and balance of size needed) on the ramdisk?
This way, windows would see the physical small page file on local storage, and create the secondary on the ramdisk?
Thanks in advance!
Windows Paging - 2 file solution?
-
- Level 4
- Posts: 25
- Joined: Sun Dec 08, 2019 8:06 pm
Re: Windows Paging - 2 file solution?
Windows support multiple paging files, so your solution will wokr. However, I think the main problem with setting a paging file on a ramdisk is that the paging file may not be large enough when needed due to the ramdisk capacity. Otherwise there should be no problem using paging file on a ramdisk. A better solution is to set an additional page file on the C drive with Custom size (setting Initial size and Maximum size) to ensure the paging files are sufficient.
Re: Windows Paging - 2 file solution?
Technical: yes, it will work what you want to do.
Logical: The swapfile is used when there is a shortage of RAM, so using RAM for a swapfile only makes Windows swap more ...
Logical: The swapfile is used when there is a shortage of RAM, so using RAM for a swapfile only makes Windows swap more ...
-
- Level 4
- Posts: 25
- Joined: Sun Dec 08, 2019 8:06 pm
Re: Windows Paging - 2 file solution?
@tverweij good point. windows is low on memory, page to file, but the file is in a ram disk...
:bang-head:
:bang-head:
Re: Windows Paging - 2 file solution?
Setting pagefile on a ramdisk is usually used on 32-bit Windows with more than 4GB RAM installed, and the ramdisk uses Invisible Memory.
Re: Windows Paging - 2 file solution?
Hello,
this is my experience:
I have created a 20 GB Ramdisk (Direct-IO - NTFS) with Dynamic Memory Management enabled and leaving Compact mode unchecked. I use RamDisk for temporary files (browser cache, app temporary folder) and I also put the Windows 11 pagefile on it with these settings: 16 MB minimum size, 16000 MB maximum size, no pagefile on other disks.
These settings at first may seem rather RAM consuming but even playing videogames which need a high RAM usage I never run out of memory.
ATM I have RAM usage 75% so I have plenty of RAM free but I must add that I have 64 GB RAM installed on my system.
this is my experience:
I have created a 20 GB Ramdisk (Direct-IO - NTFS) with Dynamic Memory Management enabled and leaving Compact mode unchecked. I use RamDisk for temporary files (browser cache, app temporary folder) and I also put the Windows 11 pagefile on it with these settings: 16 MB minimum size, 16000 MB maximum size, no pagefile on other disks.
These settings at first may seem rather RAM consuming but even playing videogames which need a high RAM usage I never run out of memory.
ATM I have RAM usage 75% so I have plenty of RAM free but I must add that I have 64 GB RAM installed on my system.
Re: Windows Paging - 2 file solution?
I have put the pagefile on Primo Ramdisk because even with a large amount of RAM Windows sometimes access to pagefile so I have decided to put it on Ramdisk which is faster than hard disks and SSD's too https://www.tbsnews.net/tech/whats-fast ... ssd-446906
Re: Windows Paging - 2 file solution?
Just a little correction: Windows pagefile settings are 16 MB minimum size, 20000 MB maximum size, no pagefile on other disks.
Re: Windows Paging - 2 file solution?
For VM's, I use this technique; not Ram disk, but Primo cache.rcamarda390 wrote: ↑Wed Jun 28, 2023 1:12 pm @tverweij good point. windows is low on memory, page to file, but the file is in a ram disk...
:bang-head:
The VM's get limited RAM (dynamic) and a swapfile on a separate VHDX. Those VHDX files are stored on a separate storage - alle swap VHDX files on the same storage. And that storage is backed by Primo chache with 10 sec deferred write. Almost all swaps in the VM's are now at memory speed.