Virtual Memory

Ideas, suggestions, tips & questions on how to supercharge your PC or software!

Virtual Memory

Postby The Ruptured Duck » Tue Jan 31, 2006 2:11 pm

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
User avatar
The Ruptured Duck
Major
Major
 
Posts: 2282
Joined: Mon Feb 09, 2004 7:56 pm
Location: Wichita, KS

Re: Virtual Memory

Postby ctjoyce » Tue Jan 31, 2006 6:02 pm

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
[b]Vesp
User avatar
ctjoyce
Major
Major
 
Posts: 3820
Joined: Wed Feb 09, 2005 4:42 pm
Location: USA

Re: Virtual Memory

Postby congo » Wed Feb 01, 2006 10:32 am

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.
ImageMainboard: 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&
User avatar
congo
Major
Major
 
Posts: 3655
Joined: Fri Aug 16, 2002 12:13 am
Location: Australia

Re: Virtual Memory

Postby ctjoyce » Wed Feb 01, 2006 11:57 am

Ahhh congo I think hes talking about setting his video card memory in his BIOS. If so thats not the page file ;) 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
[b]Vesp
User avatar
ctjoyce
Major
Major
 
Posts: 3820
Joined: Wed Feb 09, 2005 4:42 pm
Location: USA

Re: Virtual Memory

Postby congo » Thu Feb 02, 2006 11:13 am

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"
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.

Image
Last edited by congo on Thu Feb 02, 2006 11:29 am, edited 1 time in total.
ImageMainboard: 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&
User avatar
congo
Major
Major
 
Posts: 3655
Joined: Fri Aug 16, 2002 12:13 am
Location: Australia

Re: Virtual Memory

Postby NicksFXHouse » Thu Feb 02, 2006 8:43 pm

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
NicksFXHouse
 

Re: Virtual Memory

Postby Delta_ » Fri Feb 03, 2006 4:03 am



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. :)
User avatar
Delta_
Major
Major
 
Posts: 1919
Joined: Fri Nov 21, 2003 6:40 am
Location: London, UK

Re: Virtual Memory

Postby Mick_C » Fri Feb 03, 2006 2:29 pm

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.
Last edited by Mick_C on Fri Feb 03, 2006 2:43 pm, edited 1 time in total.
Image
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
Lo
User avatar
Mick_C
2nd Lieutenant
2nd Lieutenant
 
Posts: 63
Joined: Wed Feb 01, 2006 1:35 am
Location: AZ

Re: Virtual Memory

Postby ctjoyce » Fri Feb 03, 2006 4:59 pm

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
[b]Vesp
User avatar
ctjoyce
Major
Major
 
Posts: 3820
Joined: Wed Feb 09, 2005 4:42 pm
Location: USA

Re: Virtual Memory

Postby congo » Fri Feb 03, 2006 5:50 pm

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.
Last edited by congo on Fri Feb 03, 2006 6:00 pm, edited 1 time in total.
ImageMainboard: 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&
User avatar
congo
Major
Major
 
Posts: 3655
Joined: Fri Aug 16, 2002 12:13 am
Location: Australia

Re: Virtual Memory

Postby Mick_C » Fri Feb 03, 2006 6:10 pm

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).
Last edited by Mick_C on Fri Feb 03, 2006 6:13 pm, edited 1 time in total.
Image
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
Lo
User avatar
Mick_C
2nd Lieutenant
2nd Lieutenant
 
Posts: 63
Joined: Wed Feb 01, 2006 1:35 am
Location: AZ

Re: Virtual Memory

Postby NicksFXHouse » Mon Feb 06, 2006 12:50 am

[quote]

That is ok for systems with 512MB or less.
Last edited by NicksFXHouse on Mon Feb 06, 2006 12:53 am, edited 1 time in total.
NicksFXHouse
 

Re: Virtual Memory

Postby congo » Mon Feb 06, 2006 5:33 am

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?
ImageMainboard: 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&
User avatar
congo
Major
Major
 
Posts: 3655
Joined: Fri Aug 16, 2002 12:13 am
Location: Australia

Re: Virtual Memory

Postby Delta_ » Mon Feb 06, 2006 2:29 pm

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. ;)

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.
Last edited by Delta_ on Mon Feb 06, 2006 2:47 pm, edited 1 time in total.
User avatar
Delta_
Major
Major
 
Posts: 1919
Joined: Fri Nov 21, 2003 6:40 am
Location: London, UK

Re: Virtual Memory

Postby NicksFXHouse » Mon Feb 06, 2006 5:37 pm

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.
Last edited by NicksFXHouse on Mon Feb 06, 2006 7:23 pm, edited 1 time in total.
NicksFXHouse
 

Next

Return to Tweaking & Overclocking

Who is online

Users browsing this forum: No registered users and 545 guests