RAM Disk for Virtual Memory

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Essence_of_War

Platinum Member
Feb 21, 2013
2,650
4
81
I say if you have enough;Use RAM for pagefile
8 gb? Make the top 2-3 pagefile
16GB? Make a 5gb one if you want.

Nothing about this makes sense on a 64-bit OS with 64-bit applications. Why on earth would you take RAM away from the OS in order to re-map the file it uses to swap to when it is out of RAM to RAM? You're creating a no-value-added middleman.
 
Reactions: Phynaz

ashetos

Senior member
Jul 23, 2013
254
14
76
You people should stop LOLing, the OP is not retarded and here are some reasons to hate virtual memory:

- contrary to popular belief, Windows is not writing to the pagefile when it's out of memory, it's doing it since second 0, filling the paging file with data just in case it runs out of memory. What you're thinking about is linux, whose default behaviour is like what you would expect, and there are tunable parameters in any case.

- now, that's a very good way to kill your (TLC everywhere) SSD, writing stuff to it all day long.

- also that's a great way to create interference to your 100 IOPS HDD just when you want to use it for a real reason.

- while in linux applications can allocate 2TB of memory and nobody gives a crap until you actually use the pages, in Windows the application can demand 8GB of memory to be virtual-memory backed, just in case it ever needs it. Usually, those are the problematic applications, those that will create enormous traffic in the paging file while in practice you never need all that memory cause your workloads are simply not that big.

Windows gives more control of the system's memory to the programmer, whereas in linux virtual memory is mostly transparent, the applications don't really control the swap files. I'm in the tough spot of admitting that I'd like less powerful APIs for applications in this case, just so that I can always get rid of the paging file safely, just like I do in linux.

For the bunch that will say "what if an application has a memory leak", "what if you want to use a VM", "what if your application runs out of memory" I will proudly say:

- please OS, kill my hog application. I'd rather you do that than make my whole system an unresponsive page-swap-fest where I cannot even move my mouse cursor cause of pagefile hell.

How I use the pagefile:
- under 4GB of RAM, always on
- 4GB of RAM, casual users - off, gaming or power user - on
- 8GB of RAM, light gamers - off, power user - on
- 16GB of RAM or above, always off

Peace
 

BonzaiDuck

Lifer
Jun 30, 2004
15,880
1,550
126
I think I've set up my own pagefile for a range between 1GB and 2GB on my SSD.

Not sure how PrimoCache would resolve the problem, but I use PrimoCache for most of my machines that matter for anything. Virtual memory has a different function explained by another poster.

This is another thing that makes me balk at adding RAM that I don't need beyond 16 or 20GB. One imagines what an untweaked pagefile would look like in GB for 64GB of RAM. And with an SSD, you don't need the default size for any RAM size practical for today's standards.
 

nerp

Diamond Member
Dec 31, 2005
9,865
105
106
Time and time again, tests have shown this is a bad idea. Get SSDs, get a lot of memory and leave the damn swap file alone. Sheesh.
 

Elixer

Lifer
May 7, 2002
10,371
762
126
You people should stop LOLing, the OP is not retarded and here are some reasons to hate virtual memory:
Nobody here said that there wasn't a good reason to not like the slowness of virtual memory, but it IS required by many programs in Windows.
Also nobody is laughing at the OP, but they wanted to have a pagefile in a RAM drive, instead of letting the program they were talking about use all available RAM there was. That made no sense.
- contrary to popular belief, Windows is not writing to the pagefile when it's out of memory, it's doing it since second 0, filling the paging file with data just in case it runs out of memory. What you're thinking about is linux, whose default behaviour is like what you would expect, and there are tunable parameters in any case.
Hmm? "since second 0?" Not familiar with that term. In any case, Windows does indeed write to the pagefile when it needs to swap out memory space, or some other circumstances.
- now, that's a very good way to kill your (TLC everywhere) SSD, writing stuff to it all day long.
Any writing to a SSD all day long will quicken the devices death, but, you would have to be writing over 50GBs a day for years before a SSD's life is expired.

How I use the pagefile:
- under 4GB of RAM, always on
- 4GB of RAM, casual users - off, gaming or power user - on
- 8GB of RAM, light gamers - off, power user - on
- 16GB of RAM or above, always off
Turning off virtual memory in Windows is highly not recommended, and as stated before, it IS required for many things.
Having a fixed sized swap file is the best practice.
 

VirtualLarry

No Lifer
Aug 25, 2001
56,549
10,171
126
contrary to popular belief, Windows is not writing to the pagefile when it's out of memory, it's doing it since second 0

"pre-emptive paging". It does that so it can discard the memory pages, in case a large RAM request comes in, since the data is being written to the pagefile pre-emptively. Unfortunately, this behavior generates a lot of I/O traffic at times.

I don't know, but it would be nice if this is a tunable in Windows.
 

BonzaiDuck

Lifer
Jun 30, 2004
15,880
1,550
126
To save $29 on software. Pretty dumb, but whatever floats your boat I guess.

I don't think PrimoCache addresses the problem. Romex SW has another product for creating a RAM disk. Either way, I'd think you'd be asking for trouble by just introducing another level of complexity with the RAM disk. If the boot drive is an SSD, the pagefile should be fine set to 2048MB or less, but above 700MB to 1000MB.

Primo largely provides the benefit of read-speed for caching frequently used programs or data. It's a very flexible and reliable program. If your system can't accommodate an M.2 or PCI Express SSD card with NVMe, Primo offers a performance boost -- more or less depending on user habits and workstation application.

The paradox of it: You can eliminate much of the swapfile size for a booting SSD. But if you hibernate your systems*, you can only limit the hiberfil size to half the RAM. But -- OK -- so far, so good.

Now, Primo offers a feature so that it will save the cache contents to disk at a normal restart or reboot, which understandably causes a delay at boot-time but it will restore you in time to a higher cache hit-rate. You can also walk on the wild side and defer writes to the disk, further improving performance in a stable system.

However, you define a fixed portion of your RAM for the PrimoCache cache, which can be shared among disks. So with that feature turned on, you're going to do writes to the disk in addition to the hiberfil and the pagefile.

So if you're worried about the odometer on your SSD, use a small pagefile size, don't hibernate your computer and don't use a program like PrimoCache. But it's really not going to make a hilla beans difference for your SSD. I have a couple that are a year old or older, and they've only passed the 5 or 6TB mark on their long journey to being "used up."
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |