South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Hi all
Quick question, with 6gigs of ram, would things run smoothly If i turned off the paging file? What about maybe 12 gigs? Only real hectic thing I do with pc is a bit of gaming.
Shot
+1I'd turn it off if I had that much RAM. It would definitely run smoother.
Windows, esp. vista, needs a page file. There's lots of fud around this subject. Google it. After reading 10 million words, turning your page file off and on and resizing it a half dozen times depending on whose authoritative advice you read, you'll end up after a week or so with:
1) Grey hair.
2) Strained eyes.
3) The default* "let windows manage my virtual memory" setting.
4) The "been there, done that, got the T-shirt" feeling.
5)![]()
![]()
![]()
![]()
![]()
![]()
(edit: *XP's default is 1.5 times your physical memory. Can't remember the vista default setting, I've changed it so often![]()
My Suggestion:
Turn off Virtual Memory for your C: Hard Drive, and turn it on for your D:, E:, F:, G:, etc....
On Vista I turned off my virtual paging too. Vista tended to ignore the fact that I had ample RAM and decided to burn into my paging file and it slowed down my computer considerably. If you have more than 4GB of RAM and you don't quite use all of that, definitely turn off your paging file.
Strange that people are running no page files and their systems are fine, yet we still have Nazi's that deny this.
Contrary to popular opinion, virtual memory is not simply a slow extention to physical memory, and best disabled if at all possible. Virtual memory is a system that combines physical RAM and disk storage in such a way that gives the advantages of both and minimizes their disadvantages. This is done is such a way as to be completely transparent to applications.
Some popular misconceptions.
1. The pagefile is virtual memory. Not only is this incorrect but it leads to further misconceptions. The pagefile is only a part of virtual memory.
2. Disabling the pagefile disables virtual memory. Virtual memory can not be disabled in any modern operating system. In Windows, applications use it exclusively, always, no exceptions.
3. Virtual memory is slow. When an application accesses memory it is accessing physical RAM, only not directly. Memory is accessed through the memory management hardware in the CPU. The data and code an application uses may be stored in program files, the pagefile, or RAM. When accessed the data is brought into RAM, where is is retained for as long as possible. Only when RAM is needed for other purposes the data be removed from physical memory.
The pagefile actually enhances performance. It is used to store rarely used data, thus leaving more RAM available for more important uses. Without a pagfile this data must remain in RAM, no matter how rarely used it might be. This will not disable paging as program code, DLL's etc., do not go to the pagefile. They are simply reloaded from the original file. Disabling the pagefile unbalances the memory management system and impaires performance. There may be cases when disabling the pagefile will give the perception of improved performance but they are relatively rare.
My best recommendations for managing the pagefile: Keep it on system managed. This applies to both beginners and very advanced users. Windows designers understand virtual memory better than you do. Let the sytem work the way it was designed.
Larry Miller
Microsoft MCSA
Can the Virtual Memory be turned off on a really large machine?
Strictly speaking Virtual Memory is always in operation and cannot be “turned off.” What is meant by such wording is “set the system to use no page file space at all.”
Doing this would waste a lot of the RAM. The reason is that when programs ask for an allocation of Virtual memory space, they may ask for a great deal more than they ever actually bring into use — the total may easily run to hundreds of megabytes. These addresses have to be assigned to somewhere by the system. If there is a page file available, the system can assign them to it — if there is not, they have to be assigned to RAM, locking it out from any actual use.
The article's fine etc... but my point is that action speaks louder than words. There are people running their systems without pagefiles and have not experienced any issues. So why should be still use them if we have tons of RAM and no apparent issues?
"but Task Manager is still reporting that it's using some ~500mb of pagefile space. What is this?"
That's Windows creating a dynamic pagefile. It will ignore your manual settings if those settings are 0 or anything less than what Windows needs.
For example, about 10 years ago someone posted at Anand's that some game (I believe it was the original UT) was crashing within minutes of playing. Once he re-enabled his swap file, the crashing disappeared.
Far too many people thought that they could increase performance by disabling the swap file. In theory, this should work. But in actual practice, this "tweak" led to massive system instability: both Win9x and apps/games relied on the existence of the swap file.
Microsoft learned from this mistake. So the pagefile was designed to always exist, and at the amount needed, regardless of manual settings. If you think you see a perf increase after "disabling" the page file, rest assured that it's only an illusion…because the pagefile is still there. And don't believe that forcing a small pagefile will work and place more of the load on the RAM: if the pagefile is too small, Windows will dynamically make it larger.
For the majority, allowing Windows to control the pagefile is best practice.
For power users looking for another 5% bump, a superior tweak is to make the pagefile permanent and at twice the amount of system memory installed (the old 1.5x recommendation is only best for 3.1 and Win9x…on NT systems, 2x is optimal).
For another boost, if you have a second hard drive that is on its own channel (i.e. the two drives do not share a single cable, such as both are SATA drives), you can move your permanent pagefile to that second hard drive, and set the primary drive to 0. This reduces the workload of the heads on the primary drive, because it's no longer reading/writing to the pagefile, which gives another couple of percentage points boost in perf. Note that the second drive should be as fast (or faster) than the primary drive to see optimal perf increase.