Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Pages: 1 2 3 
Send Topic Print
Virtual Memory (Read 2264 times)
Jan 31st, 2006 at 2:11pm

The Ruptured Duck   Offline
Colonel
Legally sane since yesterday!
Wichita, KS

Gender: male
Posts: 2614
*****
 
Are there any downfalls to allocating the maximum amount of virtual memory?  Is there any reason why I should not? 

I found out that my laptop might be able to run FS better than my desktop if I can max out the virtual memory.
 

"If you would not be forgotten, as soon as you are dead and rotten, either write things worth reading, or do things worth the writing" -Ben Franklin&&&&"Man must rise above the Earth to the top of the atmosphere and beyond, for only thus will he fully understand the world in which he lives." - Socrates&&&&" Flying is a religion. A religion that asymilates all who get a taste of it." - Me&&&&"Make the most out of yourself, for that is all there is of you"- Ralf Waldo Emerson&&
IP Logged
 
Reply #1 - Jan 31st, 2006 at 6:02pm

ctjoyce   Offline
Colonel
Funny how my lappy runs
FSX better than your
Tower
USA

Gender: male
Posts: 4022
*****
 
Well it gives more memory to your video card, but takes it away from system tasks. So you may have a 256mb gfx card, but only 256 system. I would only recomend this is you have a gig or more.

Cheers
Cameron
 

CTJoyce, Modding and voiding warranties since 2003&&Sheila's Specs:ASUS Striker Extreme 680i, Intel Core 2 Duo E6600 @ 3.2Ghz, Corsair XMS2 PC2-6400C4 2GB, 2x eVGA 7900GT KO,  Western Digital 80GB SATA & 250GB SATAIII&&Vesper's Specs: Intel Core 2 Duo T7400, 2GB DDR2-667, GeForce Go 7950GTX 512MB, 160GB Hitachi SATA 5400RPM&&Hardware FAQ, Read it and be informed&&My little corner of the world&&Once You Know You NEWEGG&&Building a computer Part 2
IP Logged
 
Reply #2 - Feb 1st, 2006 at 10:32am

congo   Offline
Colonel
Make BIOS your Friend
Australia

Gender: male
Posts: 3663
*****
 
Virtual Memory is just space on your hard drive reserved for or containing program data which is used instead of RAM.

Either the programmer wishes to free system ram by using virtual memory (page file) or the program simply stores too much data to fit comfortably in RAM.

The program's access time for data stored on the hard disk is very slow compared to data held in memory, So critical functions are carried out in RAM while non time critical functions can be written to and accessed from the page file.

I think that's kinda how it works....

I think maxing out the page file (virtual memory) is not what you would call it. You simply need a page file reserve on your HDD large enough to hold all the paged data in a multi tasking environment.

You can also set the minimum and maximum size the same, say, 1.5 gb, that way, windows doesn't try to constantly alter the size of virtual memory as it does under windows management. I've never actually measured the benefit of this tweak.
 

...Mainboard: Asus P5K-Premium, CPU=Intel E6850 @ x8x450fsb 3.6ghz, RAM: 4gb PC8500 Team Dark, Video: NV8800GT, HDD: 2x1Tb Samsung F3 RAID-0 + 1Tb F3, PSU: Antec 550 Basiq, OS: Win7x64, Display: 24" WS LCD
IP Logged
 
Reply #3 - Feb 1st, 2006 at 11:57am

ctjoyce   Offline
Colonel
Funny how my lappy runs
FSX better than your
Tower
USA

Gender: male
Posts: 4022
*****
 
Ahhh congo I think hes talking about setting his video card memory in his BIOS. If so thats not the page file Wink This is just running system memory for your video card. However once your in windows you can use the pageing file to get you dubble the RAM.

Cheers
Cameron
 

CTJoyce, Modding and voiding warranties since 2003&&Sheila's Specs:ASUS Striker Extreme 680i, Intel Core 2 Duo E6600 @ 3.2Ghz, Corsair XMS2 PC2-6400C4 2GB, 2x eVGA 7900GT KO,  Western Digital 80GB SATA & 250GB SATAIII&&Vesper's Specs: Intel Core 2 Duo T7400, 2GB DDR2-667, GeForce Go 7950GTX 512MB, 160GB Hitachi SATA 5400RPM&&Hardware FAQ, Read it and be informed&&My little corner of the world&&Once You Know You NEWEGG&&Building a computer Part 2
IP Logged
 
Reply #4 - Feb 2nd, 2006 at 11:13am

congo   Offline
Colonel
Make BIOS your Friend
Australia

Gender: male
Posts: 3663
*****
 
Quote:
Ahhh congo I think hes talking about setting his video card memory in his BIOS.


Why would think that? Virtual Memory is Vitual Memory, ie...... Page File. Allocating shared system RAM for an onboard video processor has nothing to do with virtual memory.

Windows automatically controls the "Virtual Memory" size, it constantly re-sizes the page file to what ever size it's contents are if you have the default setting of "System Managed"
Quote:
However once your in windows you can use the pageing file to get you dubble the RAM.


It doesn't work like that, it works as I explained above.

The only way to double your RAM is to add RAM modules to your mainboard. You can however, double your Virtual RAM, or Virtual Memory, or delete it all for that matter, (not recommended). Just remember that Virtual Memory is not virtual at all, it is real data taking up space on your hard disk.

...


 

 

...Mainboard: Asus P5K-Premium, CPU=Intel E6850 @ x8x450fsb 3.6ghz, RAM: 4gb PC8500 Team Dark, Video: NV8800GT, HDD: 2x1Tb Samsung F3 RAID-0 + 1Tb F3, PSU: Antec 550 Basiq, OS: Win7x64, Display: 24" WS LCD
IP Logged
 
Reply #5 - Feb 2nd, 2006 at 8:43pm
Nick N   Ex Member

 



Best bet is to set Virtual memory to a static size 2 or 3 times the physical memory... and if you are running Windows x64, set it to a static size 4 times the physical memory.

Run an offline defragment of the system files after making the change
 
IP Logged
 
Reply #6 - Feb 3rd, 2006 at 4:03am

Delta_   Offline
Colonel
Woah!
London, UK

Gender: male
Posts: 2032
*****
 
Quote:
Best bet is to set Virtual memory to a static size 2 or 3 times the physical memory... and if you are running Windows x64, set it to a static size 4 times the physical memory.

Run an offline defragment of the system files after making the change


That is ok for systems with 512MB or less.  Once above that you need to use 2.5GB minus system RAM, or 2GB minus system RAM, depending on preference. Smiley
 

My system:Intel Q6600@3.6GHz, Corsair XMS2 4GB DDR2-6400 (4-4-4-12-1T) , Sapphire 7850 OC 2BG 920/5000, X-Fi Fatality, Corsair AX 750, 7 Pro x64
IP Logged
 
Reply #7 - Feb 3rd, 2006 at 2:29pm

Mick_C   Offline
Colonel
formerly unomernot
AZ

Gender: male
Posts: 80
*****
 
Nick N and Congo give excellent advice here. and I agree with them and the formulas. Just remember that "Virtual Memory" is just that "Virtual". IE... it uses physical HD real estate to mimick RAM.  

The biggest bottleneck in any system is the data throughput from the HD to the Mobo. So it stands to reason that loading down the processor with read/write intensive activity (virtual page functions) will slow down the system.

There is a diminishing law of returns in effect here.  Try adjusting the PageFile, (VM) using the formula Nick suggests, then try a bit larger. You will soon see this law in effect. The larger the page out, the more drive and processor intensive, the slower the system....

Of course fragmentation plays a HUGE part in this scheme.

Here's link to MS knowlegebase that might explain this a bit better, but I've never been a fan of MS documentation!  Grin

http://support.microsoft.com/kb/555223/en-us

Mick
 

...&&Athlon 64 X2 (T) 4200+2.2Ghz,1GB PC2-3200 DDR SDRAM,250 GB WD SATA HDD&&Ati Radeon Xpress 200 Integrated, DL DVD_RW Drive, DVD Drive&&Front Panel 9 in 1 Digital Reader Drive&&Logitech Attack3 Joystick, yada yada... in debt agin!
IP Logged
 
Reply #8 - Feb 3rd, 2006 at 4:59pm

ctjoyce   Offline
Colonel
Funny how my lappy runs
FSX better than your
Tower
USA

Gender: male
Posts: 4022
*****
 
Well if youve got a raptor or a SATA drive it wouln't make that much difference.

Cheers
Cameron
 

CTJoyce, Modding and voiding warranties since 2003&&Sheila's Specs:ASUS Striker Extreme 680i, Intel Core 2 Duo E6600 @ 3.2Ghz, Corsair XMS2 PC2-6400C4 2GB, 2x eVGA 7900GT KO,  Western Digital 80GB SATA & 250GB SATAIII&&Vesper's Specs: Intel Core 2 Duo T7400, 2GB DDR2-667, GeForce Go 7950GTX 512MB, 160GB Hitachi SATA 5400RPM&&Hardware FAQ, Read it and be informed&&My little corner of the world&&Once You Know You NEWEGG&&Building a computer Part 2
IP Logged
 
Reply #9 - Feb 3rd, 2006 at 5:50pm

congo   Offline
Colonel
Make BIOS your Friend
Australia

Gender: male
Posts: 3663
*****
 
SATA drives are barely any faster than an ATA-IDE drive in real usage. Raptors are a step up, but they are still a HDD, absolutely no substitute for RAM.

What's the difference between whether a HDD is 200 or 250 times slower than a RAM data access/write? HDD's are a huge bottleneck, now more than ever.

I'm guessing that programmers can run everything in memory, but they must cater to the realities of the average user's RAM capacity. So, you are always going to get Bottlenecking from HDD access until/if we ever see programs/sims/games running totally in RAM, (I'm thinking that 4gb of ram may not be enough for new games.)

This is possibly why those who have tried to shut off the page file end up with problems. The programmers are calling up page file access routines so they don't crash everyone's RAM limited systems, and when the system reports no page file, the program dies or shuts down with an error.
 

...Mainboard: Asus P5K-Premium, CPU=Intel E6850 @ x8x450fsb 3.6ghz, RAM: 4gb PC8500 Team Dark, Video: NV8800GT, HDD: 2x1Tb Samsung F3 RAID-0 + 1Tb F3, PSU: Antec 550 Basiq, OS: Win7x64, Display: 24" WS LCD
IP Logged
 
Reply #10 - Feb 3rd, 2006 at 6:10pm

Mick_C   Offline
Colonel
formerly unomernot
AZ

Gender: male
Posts: 80
*****
 
Exactly, if you want to spend the money, a nice SATA/RAID solution helps a LOT by offering greater bandwidth for disk I/O. In addition, you could put the swapfile (pagefile) on a dedicated partition. A word of caution though, WinX platform doesn't always work as advertised when you "move" the Swapfile (Virt mem file).  This is especially true with XPSP2 and above.

BTW.. I find the forums here awesome! It's a pleasure to find so many so many folks that know what's going on and are willing to help!
 

...&&Athlon 64 X2 (T) 4200+2.2Ghz,1GB PC2-3200 DDR SDRAM,250 GB WD SATA HDD&&Ati Radeon Xpress 200 Integrated, DL DVD_RW Drive, DVD Drive&&Front Panel 9 in 1 Digital Reader Drive&&Logitech Attack3 Joystick, yada yada... in debt agin!
IP Logged
 
Reply #11 - Feb 6th, 2006 at 12:50am
Nick N   Ex Member

 
Quote:
That is ok for systems with 512MB or less.  Once above that you need to use 2.5GB minus system RAM, or 2GB minus system RAM, depending on preference. Smiley



So your saying I should set my page file (2GB physical RAM) to 2.5gb-2gb or 500mb page file?...  or 2-2gb ...a ZERO page file??


I think not

First of all, set the page file to zero and your asking for trouble. Windows MUST HAVE a minimum amount of page area reserverd for memory dumps in BSOD's and other OS needs.

Second, I do both 3d and video editing.... even with 2GB physical memory, 500mb page file would crash and burn me during a 2 hour encode session.

With a 160mb (2xsata RAID-0) setup, I run a 3gb page file for WindowsXP x32 and 4gb page file for WindowsXP x64. x64 requires more physical memory and more reserved page file area to do the same job because of the way the x64 OS pages the memory.

There is such a thing as too much page file however it is better to have an amount greater than physical memory by 2x then it is to have too little.

Systems that are dedicated video encoders need even more... (3xPM)

My systems run like a rocket with 3xPM and 4xPM page files


I may be old school and retired but I am an EE




 
IP Logged
 
Reply #12 - Feb 6th, 2006 at 5:33am

congo   Offline
Colonel
Make BIOS your Friend
Australia

Gender: male
Posts: 3663
*****
 
You tell 'em Nick!

So, how well does windows manage the page file, and is there truly a benefit in setting a fixed page file size, has anyone measured or documented it?
 

...Mainboard: Asus P5K-Premium, CPU=Intel E6850 @ x8x450fsb 3.6ghz, RAM: 4gb PC8500 Team Dark, Video: NV8800GT, HDD: 2x1Tb Samsung F3 RAID-0 + 1Tb F3, PSU: Antec 550 Basiq, OS: Win7x64, Display: 24" WS LCD
IP Logged
 
Reply #13 - Feb 6th, 2006 at 2:29pm

Delta_   Offline
Colonel
Woah!
London, UK

Gender: male
Posts: 2032
*****
 
It is very much possible to run XP and most programs with 2GB RAM and very little pagefile.  Some programs require a pagefile and won't work without it.

To get absolute max performance and to stop XP using the hdd for memory you must turn pagefile off.  This elimates all jerkiness and loading lag.  XP will try and use only the system RAM and will be much quicker.  However because XP can't function very well without atleast a small amout of pagefile it is recommended that 200MB is set aside.

XP uses 1.5xRAM to calculate its pagefile, this was based on an average system for the time which was about 256MB-512MB RAM. 

2-3xRAM is not a very precise figure to use.  What about systems that have 128MB, giving 256MB-384MB virtual memory, that is not enough for that system.  Why does a system with more RAM need more pagefile?  A system with 2GB RAM would need 4GB-6GB pagefile!!!  That is way too much!  Any figure between 200MB and 500MB would be more than enough for that system and todays games. Wink

Not too many people that have typical systems (for games etc...) do graphics editing too.  Most have a separate system for that stuff and that requires a different set-up like you said.

Memory dumps are stored in C:\WINDOWS\Minidump not pagefile.
 

My system:Intel Q6600@3.6GHz, Corsair XMS2 4GB DDR2-6400 (4-4-4-12-1T) , Sapphire 7850 OC 2BG 920/5000, X-Fi Fatality, Corsair AX 750, 7 Pro x64
IP Logged
 
Reply #14 - Feb 6th, 2006 at 5:37pm
Nick N   Ex Member

 
I will answer and then drop this subject:


1.
It is very much possible to run XP and most programs with 2GB RAM and very little pagefile.  Some programs require a pagefile and won't work without it.

A:
I never said it was not possible… what I indicated is that it is not advised to do that because of those programs that need chunks of page file available to them. To give someone advice without knowing EXACTLY what is on their system and how they use their system is like doctor prescribing a medication and treatment without an examination, lab tests and observations, therefore it is best to NOT suggest something that can and WILL crash someone’s computer and to stick with what will not cause crashes, poor performance or other intermittent problems.



2.
To get absolute max performance and to stop XP using the hdd for memory you must turn pagefile off.  This elimates all jerkiness and loading lag.  XP will try and use only the system RAM and will be much quicker.  However because XP can't function very well without atleast a small amout of pagefile it is recommended that 200MB is set aside.

A:
Wrong… if you wish to run without the page file, the minimum to set aside is based on how much information you need in your memory dump for diagnostics. (System properties, Advanced, Startup and Recovery) for a minimal memory dump a 2mb page file is required. The page file space is needed for memory dumps based on your individual needs. a “minimal memory dump requires 2mb of page file space. If you want a kernel memory dump, a page file the size of the PM is needed, a full memory dump, PM x 1.5 page file is recommended. That is where Microsoft gets the PMx1.5 recommend page file size from.. but that is NOT set in stone, only a starting point

Next, please post the MSKB that states that a zero page file should be used for games or to increase windows performance. In fact MSKB’s say the opposite.



3.
XP uses 1.5xRAM to calculate its pagefile, this was based on an average system for the time which was about 256MB-512MB RAM.    

A:
Wrong… Microsoft set that because it is impossible for Microsoft Windows to analyze a system and determine the correct page file size for an individual use so it is based on a full memory dump for diagnostics and not based on “the good-old-days”



4.
2-3xRAM is not a very precise figure to use.  What about systems that have 128MB, giving 256MB-384MB virtual memory, that is not enough for that system.  Why does a system with more RAM need more pagefile?  A system with 2GB RAM would need 4GB-6GB pagefile!!!  That is way too much!  Any figure between 200MB and 500MB would be more than enough for that system and todays games.  

A:
You are again assuming everyone who asks the page file question is doing nothing but gaming. Also my recommendation covers everyone. Assuming someone runs 256mb PM and they use the 2-3x method, a static 500mb to 768mb page file covers them. Why? Because anyone running Windows and games or video content with only 256mb of PM will never see any performance gain from more than 500-768 static page file size… on the other hand they WILL most likely crash and burn on a zero or 200mb page file. If Windows needs more pagefile, it will let the user know in a message box. At that point they can increase the size again. http://support.microsoft.com/kb/315270/en-us

BTW.. I serously doubt anyone is booting WindowsXP and running FS9 or 128mb of memory.. even 256mb is silly to use with FS9, but anything is possible.


5.
Not too many people that have typical systems (for games etc...) do graphics editing too.  Most have a separate system for that stuff and that requires a different set-up like you said.  

A:
And that is why I do not recommend silly, internet fantasy, page file settings… because I do not know what the person uses their system for and I do not assume it either.



6.
Memory dumps are stored in C:\WINDOWS\Minidump not pagefile.

A:
Yes, it is written to the hard drive but that is why the settings for the page file are recommended in item #2 above, you said it yourself… you need the space for the memory dump which goes to the page file FIRST before it is written to the hard drive in “minidump” or the system will crash again when trying to write the minidump file.

If you wish to get right down to the hard line technical aspects of how to set a gauge pagefile size, it is done by using the performance counters and monitoring the memory I/O of a system… YES, you can run a small page file: IF you know for a FACT system does not need it. A  large page file (which is based on 2-3x PM) does NOT make Windows doggy or slow it down, that is a an internet MYTH, all it does is take up space However it ALSO functions as a prefetch and stores memory items from the PM which have not been paged in a period of time, therefore it does help performance by having those memory blocks ready for direct reload without looking all over the HDD for the separate chunks. That INCLUDES 3D Games (see next post)



« Last Edit: Feb 6th, 2006 at 7:23pm by N/A »  
IP Logged
 
Pages: 1 2 3 
Send Topic Print