Process and memory
-
How much memory can be consumed for a process that is running in a) 32 bit environment b) 64 bit environment Is it 2G( less than ) per process? If so, is there any reason for such a limitation? Suppose process is running with 2GB RAM. And if I am upgrading the RAM to 4GB, will there be any change in max memory?
-
How much memory can be consumed for a process that is running in a) 32 bit environment b) 64 bit environment Is it 2G( less than ) per process? If so, is there any reason for such a limitation? Suppose process is running with 2GB RAM. And if I am upgrading the RAM to 4GB, will there be any change in max memory?
Under 32 bit versions of Windows, most of the time processes are limited to 2GB of memory. You can specify the /3GB[^] switch in the BOOT.INI file for Windows XP and Server 2003 to increase that limit to 3GB. For a comparison of 32 and 64 bits, try reading here[^].
Software Zen:
delete this;
Fold With Us![^] -
How much memory can be consumed for a process that is running in a) 32 bit environment b) 64 bit environment Is it 2G( less than ) per process? If so, is there any reason for such a limitation? Suppose process is running with 2GB RAM. And if I am upgrading the RAM to 4GB, will there be any change in max memory?
There may be two parts to your question: 1. the amount of logical memory (the virtual memory address space) you can get, that is 2GB (sometimes 3GB) on Win32 (i.e. 50 to 75% of the theoretical 2^32). and a lot more on Win64 (not sure, could be up to 4000 times as much). That is individual to each process. 2. the amount of physical memory (how much real memory your app is allowed to use) your process is actually getting; this depends on other processes are running and doing. The sum over all processes cannot exceeed the amount of physical memory; all virtual excess will be swapped to disk (and may cause significant delays). So if you have two or more processes aiming for lots of memory, and your system is Win32 with 3GB of RAM, each process is likely to get no more than 1GB of physical memory. By minimizing one's main form, the other may get some more. ADDED Here[^] are some more facts for different Windows editions. /ADDED :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.