I was talking with a friend the other day about Windows in general and I mentioned that there is, unfortunately no way (that I was aware of) to disable the page file within Windows. Regardless of the size of your RAM, there was always going to be pagefile.sys.

If you're like me, you don't want your memory paged on your HD if there really is no need for it. He offered the brilliant suggestion I had never considered-- create a RAM Drive and set the page file to RAM Drive.

Of course, as he and I were both aware, I'm sure this has been done before. I've never created a RAM Disk before? Has anyone in the SU community ever done this and, if so, have a link to a good walkthrough on how to do this?

Attention: There is only a limited amount of memory given to drivers, called the non-paged and paged pool memory sections. A page file is necessary for when the paged section gets full, as a gamer I have seen a game complain about paged pool memory just because I had my page file disabled on a 8 GB system. Conclusion: Page files are necessary, they prevent paged pool depletion and actually do speed up your system.
–
Tom WijsmanOct 24 '11 at 16:16

4 Answers
4

You can easily disable the page file. Jeff Atwood blogged about disabling it and the consequences. In any case, moving it to a RAMdisk is the worst thing you could do with it, since the page file is for storing stuff that already doesn't fit in memory. Reserving memory for a RAMDisk is going to only make more data get paged out, which will in turn require a larger paging file and RAMDisk, which will in turn leave less memory available, which will in turn page out more mem-- You can see where this is going.

+1 for a good response, but bad analogy :P It's more like you have $100 worth of gas, and can put it all in your first car, or half-half between the car you're towing. You'll get further putting it all in one car, and it'll be a lot quicker then changing vehicles ;) Oh, and @RLH - don't use a RAM disk for a pagefile. 'Nuff said.
–
BreakthroughJul 25 '11 at 21:54

3

I don't think people realize RAMdisks stopped being popular after we broke the 1MB barrier. . .
–
surfasbJul 25 '11 at 22:05

If you're stuck with a 32-bit windows client OS with a 3GB memory cap, you can use a ramdisk and physical address extension to make use of the invisible ram. the other posters are right that if your os allows you to address all the physical ram, putting pagefile.sys on a ramdisk is bass ackwards.

however for certain programs that use the disk for scratch space it can still help...photoshop for example.