How much Virtual Memory?

Since it's 2005 and disks are quite big you might as well just set the swap file to 1Gb even if you have 2gb or 4gb ram. I have experienced working with big photos in imaging applications and suddenly have it using 700mb of virtual mem in addition to all of the ram. It can fill up faster than you think even though disks are slow compared to ram.
 
I set the minimum and maximum (WinXP) to the same value to prevent Windows from changing the size dynamically and fragmenting the swap file. I use a factor of 2.5x physical RAM for the final size.

I also disable the swapfile (requires reboot), defragment the volume, and recreate the swapfile to make sure it starts off as unfragmented as possible.
 
For all those thinking of purchasing more RAM. Windows XP can not address more then 4 GB. Additionally, only the first 2 GB are used for applications, unless you change settings in the windows ini file....

See this link:

http://www.microsoft.com/whdc/system/platform/server/PAE/PAEmem.mspx

Also see this for Virtual Memory Info:

http://aumha.org/win5/a/xpvm.php
http://www.petri.co.il/pagefile_optimization.htm


"Operating systems based on Microsoft® Windows NT® technologies have always provided applications with a flat 32-bit virtual address space that describes 4 gigabytes (GB) of virtual memory. The address space is usually split so that 2 GB of address space is directly accessible to the application and the other 2 GB is only accessible to the Windows executive software.

...

Windows XP Professional and Windows Server 2003 Memory Support. The maximum amount of memory that can be supported on Windows XP Professional and Windows Server 2003 is also 4 GB.

...
The virtual address space of processes and applications is still limited to 2 GB unless the /3GB switch is used in the Boot.ini file. When the physical RAM in the system exceeds 16 GB and the /3GB switch is used, the operating system will ignore the additional RAM until the /3GB switch is removed. This is because of the increased size of the kernel required to support more Page Table Entries. The assumption is made that the administrator would rather not lose the /3GB functionality silently and automatically; therefore, this requires the administrator to explicitly change this setting.

The /3GB switch allocates 3 GB of virtual address space to an application that uses IMAGE_FILE_LARGE_ADDRESS_AWARE in the process header. This switch allows applications to address 1 GB of additional virtual address space above 2 GB."
 
I need help on this VM problem. I have to drives, C and E, both internal, E with 269 GB (the game is Here) and C(my bootable drive) with 37.2GB. I meet all the hte specs for CIV4 but it always crashes and states that my VM is too low. WHat settings do you recomend for my VM.
 
1.5 times your RAM, and set the pagefile to min=max, the latter setting keeps your page file in one piece and not get fragmented. If min & max are different, windows will dynamicaly allocate space as needed, causing fragmentation - the latter is not the end of the world as we know it, but its easily avoidable, so avoid it ... :)

It is very true that other strategies can increase efficiency etc etc, but it needs putting in perspective in terms of the efficiency gained, effort to achieve this, and equally future effort in staying at that efficiency level. Its why generalised statements come out of MS, they cant set it perfectly for everyones needs, totally impossible, the variations for peoples individual use and preferences are just too huge.

Setting as above will keep you going for ever and a day, maybe not 100% perfect, but its circa 95%, and in the real world of practical non-geek PC useage, it will meet your needs fine.

Never set the Page file (aka swap file) to zero, Windows does need some space on a page file even if its a low circa 32mb, set it to zero and it will pout, slowing things down, can even crash in some rare circumstances under a zero page file setting. For those with 2Gb RAM, a minimal (circa) 32mb page file can work well, but the other 95% of us need to take into account practical reality, and not spend excessive time tweeking the settings for minimal gain.

Regards
Zy
 
im new at this so bare with me...What is a page file? Is it the place where ytou adjust the VM settings? By the way i have 256MB RAM. I set my initial settings to 64 and max to 1500 and the game actually loaded, but lagged and goes slow. i then got out of the game, and tweeked my settings to 1500 and 1500 and then when i opened my graphics program to edit some pics, the bubble poped up again stating that my VM was too low!!! Please clarify your steppes in a way so a newbie can follow along so i can get best game performance.
 
A page file is where Windows stores data it does not need at any instant in time. So when you load 'lots' of programmes in separate windows, its working hard for its living. It looks at each one, decides what your using at the moment, then dumps the data needed for the others into a temporary space on your disc because it does not have enough room in your PC memory to store it all - the page file - some still call it the Swop File ( a throw back to previous windows versions page file and swop file are the same thing), get in the habit of using the term pagefile.

When you click on another window, windows looks at what is needed from the pagefile and puts it on screen. All that takes time because using information from the pagefile is thousands of times slower than using it from memory. Hence the phrase many use "need more memory" to solve a problem - extra memory in your PC allows less to be stored on disk, and therefore windows works faster. If your hard disc light is permanently flicker way or permanently on, its likely you may be a candidate for extra memory (indicator only as windows does lots of disc swopping for other reasons), certainly if an application is very slow, and you see the disc being pounded hard as window keeps getting info even when you just click a mouse, then the need for extra memory is probably very high.

The settings in the pagefile (min max). Minimum means windows pre-allocates that amount of space, maximum means you allow it to dynamically increase the space above minimum as it needs it to that value. When the values are different, the pagefile will become fragmented, not the end of Mankind as we know it (despite what the tweek freeks will say), but if you have a good size hard disc with lots of space, then might as well set max=min.

You will find huge debate on file size for this. At the end of the day in real world computing, setting it for a large amount just takes up disc space, the slow down is negligable.

In memory hungry games - and Civ IV goggles up memory like there is no tommorrow - its crazy, appauling coding - then you definitely need a large pagefile. If you set it to 1.5 or 2 times the size of RAM that is usually the norm. So for you a setting of 1500mb is plenty, and keep the setting as min = max (1500 min and 1500max).

Access the settings in :
go to my computer icon, right click, select properties, select advance tab, lookat performance, select settings, select advanced tab, look at virtual memory, select change, click custom and enter the min and max values you want. you done.

If you open Civ IV, then also open another programme at the same time - with the low RAM you have - its highly likely that windows tried to dump all its Civ IV data into the page file and ran out of space, hence the other app failed to load etc.

The solution is to add more memory, and really with Civ IV at the moment, until they fix the appauling memory management, you need at least 512mb, 1Gb is comfortable, but 512mb should do you fine. There are lots of other issues with Civ IV flying around, and you need to be careful in assumptions concerning memory size etc - some are running on 256mb, but I suspect very slowly, especially in the late game phases where much much more memory is needed. Dont be surpriused to find you still have problems even with 512mb for many reasons not connected with pagefile & vm aspects.

You can keep an eye on how much of your pagefileis being used by going to the bottom blue bar on your screen, right click, select task manager, select performance tab, look at the bottom:
Committ Charge
Total - actual RAM being used
Limit - RAM plus the size of your pagefile
Peak - the most windows used in your curreent session since booting

Physical Memory
Total - the actual RAM you have
Available - actual RAM still not being used
Systems Cache - the ammount windows itself is gobbling up (windows is notorious in itself for using lots of memory)

Regards
Zy
 
if i select the option not to use the pagefile will that help speed up the game? I set the MIN(is it the same as initial setting?) to 1500mb and MAx to 1500mb and the game still lagged.
 
Back
Top Bottom