Turn Virtual Memory off with 8gb ram?

rkaye

Distinguished
Mar 28, 2009
104
0
18,690
Is it ever recommended to turn virtual memory off (for faster system performance)?
• With 8gb ddr2 ram, running XP64
What about:
• With 8gb ddr2 ram, running Vista64 with a fast 4gb ReadyBoost device?

[Usage includes gaming]
------------------ ------------------ ------------------ ------------------ ------------------ ------------------
Current setup (URL-linked for fast part look-up):
MSI P6N Diamond mainboard
-----• Chipset: NVIDIA® nForce 680i SLI SPP (C55XE), NVIDIA® nForce 570i SLI MCP (MCP55P)
-----• Slots: Four v1.0a PCI Express x16, One v1.0a PCI Express x1
-----• RAM: 8GB Dual-channel DDR2 800
• CPU: Intel Core2 6600@2.40GHz, overclocked to 3.37ghz
-----• Thermaltake Ultimate v1 CPU Cooler
• Hard disk: Four SATA II drives in RAID0 (nForce 590i SLI MCP)
• Graphics: One MSI 640mb GeForce 8800 gts (factory overclocked) --> upgrading this week to (GeForce 260/280/295)
• Monitors: Two 28" WUXGA LCD 1920x1200 (default resolution)
• Multimedia: SoundBlaster X-Fi Xtreme Audio
• Networking: Dual (Realtek RTL8211B) 1/2Gbps Fast Ethernet ports using LACP (IEEE 802.3ad Link Aggregation)
• Power supply: SilverStone Strider ST56F 560W Active PFC
• OS: 64bit XP SP3
 
Solution
Leave your page file alone.
Changing it or turning it off does nothing to improve performance. This was an old trick way back in the Win 95/98 days when it would have cost you thousands of dollars to buy a couple gig of memory. If you could afford it, then turning it off was supposed to help some, as Windows didn't manage memory, processor usage, or the pagefile as well as it does now. It was also a fact that hard drives were mud slogging slow compared to todays drives. All this no longer pertains or makes any sense if you are running Windows XP or later, and halfway modern hardware.

rkaye

Distinguished
Mar 28, 2009
104
0
18,690
While thinking about this question I also am wondering about this scenario:
• Using a small-capacity SLC SSD exclusively for holding the windows swap file/virtual memory?
 

mikrev007

Distinguished
Oct 28, 2008
264
0
18,790


In layman's terms, virtual memory is the pagefile. The settings tab in Windows also calls it virtual memory.
 

daship

Distinguished











Yor question was answered in your other thread. How many times to you got to ask before you listen to someone who knows from experience.
Pagefile is only required on 2G or less ram, anything over 2G turn it off.
 

theAnimal

Distinguished
Jan 21, 2009
2,370
0
19,810


There are applications which require a page file, so one may be created even if disabled. There is no performance benefit to disabling it.
 

mikrev007

Distinguished
Oct 28, 2008
264
0
18,790


Can you name one?

Applications cannot talk to the pagefile, so as long as there is enough free ram ...
 

mikrev007

Distinguished
Oct 28, 2008
264
0
18,790


That must have been because you were low on ram. They can run fine without a pagefile.

An application just allocates a chunk of memory. The application doesn't know whether a chunk of memory is mapped to physical ram or the pagefile (it can request it to always be in physical ram, though). The pagefile is internal to the memory manager.
 
Leave your page file alone.
Changing it or turning it off does nothing to improve performance. This was an old trick way back in the Win 95/98 days when it would have cost you thousands of dollars to buy a couple gig of memory. If you could afford it, then turning it off was supposed to help some, as Windows didn't manage memory, processor usage, or the pagefile as well as it does now. It was also a fact that hard drives were mud slogging slow compared to todays drives. All this no longer pertains or makes any sense if you are running Windows XP or later, and halfway modern hardware.
 
Solution

rkaye

Distinguished
Mar 28, 2009
104
0
18,690


Ah, this is exactly the answer I was looking for, thanks.
 

tfn105

Distinguished
Jan 3, 2012
2
0
18,510
There is a smarter move.

Some programs do use VM irrespective of the amount of available RAM.

What I've done with my 12GB of RAM is to create a RAM disk that is 4GB big, and allocate a 4GB pagefile to that drive. This way, come what may all files are loaded into RAM, and my hard drives aren't needed at all.
 

iasw61

Honorable
Apr 23, 2012
1
0
10,510
no you will not be able to turn off the virtual memory off
it is becouse of the fact that microsoft keeps records of error occoured during the normal running of winXP/7 whatver on virtual memory
in case if the system shutsdwn completely you will loode all the records from the ram
micosoft has an idea
they keep records on virtual memory
in case of failure they will retrive it from the hdd itself

all you can do is to keep it low or turn of from control pannel
but it will be running in background

hope you like

iasw61@yahoo.com
http://img.tomshardware.com/forum/uk/icones/smilies/hello.gif
:hello:

 
G

Guest

Guest
You're talking *** man.
I've always turned virtual memory off
even on a 1g memory computers.
I've always tested , it's lighter and faster.
 

rofthorax

Distinguished
Jan 20, 2009
8
0
18,510
Virtual memory is not the page file, virtual memory is the combination of real memory and the page file.. See memory is cut up into pieces called pages, the size of the page is usually about 4 kilobytes, and so for 8 gigabytes of memory you have about 250,000 of these pages on disk, at least.. And when a page hasn't been referenced in memory, it is swapped out to the pagefile. pages move from disk, to ram, to cpu cache, to cpu internal memory, based on how often they are used.. Least used pages are sent to disk, pages that the system predicts will be needed soon may be loaded into real memory from the pagefile.. You will notice when killing a program it takes a while for the memory to be freed up, that's the system releasing pages that are no longer in use. IF you have a very large cache of real memory, there is no point in having virtual memory turned on, cause almost nothing will be cached out, unless the paging algorithm is excessively frugal. Your virtual memory is at most the real memory plus page file size, but at least the amount of real memory. To be safe the page file should be about 1.5 times the amount of real memory, at least this is what I do for swap space on linux, because if there is not enough swap to swap out the real memory to disk, then your programs will crash due to insufficient storage, in windows you have no control over the pagefile size but in Linux you do.. I guess on windows the page file is variable size, on my machine it is showing about 9.5 gigs and I have 8 gigs of memory. A page fault occurs when the desired page is not in real memory and it has to be loaded from disk.. Thrashing occurs when you have insufficient real memory and pages are constantly being swapped out to the page file, this is why increasing memory is a significant performance boost. And as others have said, virtual memory was really a big deal in the old days when memory was costly and running programs like photoshop that would require gigs of memory to load in large photos, but where only parts of the photo were being seen at once, permitted the unseen/unused parts of the photo to be stored in the disk until they were needing to being seen. Virtual memory also permitted people on system like Unix and Linux to be able to use the same machine without utilizing all the resources on the machine, by cutting up memory into pieces for each user and limiting each users real memory use by some quota.

IT would make sense for those who have SSD's to turn virtual memory off because the life of the disk is determined by the number of writes that are made to disk, and SSD's efficiency deteriorates over time based upon how much data is rewritten.. Relocating the page file to a hard disk may increase the service life of the SSD.
 

rofthorax

Distinguished
Jan 20, 2009
8
0
18,510


This would be better than reducing the virtual memory or turning it off.. You can get hardware that permits you to add real memory without utilizing system memory, by having it disguised as hard drive space.. Then copy the pagefile to that.. I don't recall if it retains the stored data, because that would mean it would have to keep memory refreshed even after the computer was turned off.. Also, system restore relies on swap space I think, so that when a machine is put into hibernation, software state is copied to the swap, and the machine is turned off..

 

Rich Ervin

Honorable
Apr 2, 2013
1
0
10,510
You will notice that EVERY person who says it does not work has never tried it, and EVERY person who has tried it says it does work.

It does work, it will improve your system performance, it will not void your warranty, and it will not cause kernel panics.

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist

Ha ha! Okay, that's how you do it on Mac OS X

But all the same is true for windows. Disable your paging file to increase performance.
The second best performance enhancement is to change the Windows theme to "Windows Classic".

These two tips will turn a Windows dog into a good usable computer again.