For most of Windows systems, it allocates 2GB process virtual address space for OS. So we are left with 2GB, which is not enough when we are doing some big deal, say, playing a high quality game. Question is how can we modify this?
In the previous versions of Windows (before Win7), there is a file, named boot.ini, containing some boot information:
This is a sample of a default boot.ini file from a Windows XP Professional computer.
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
We simply add a parameter to the end of last line to provide 3GB virtual address space for our applications. It looks like this:
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /3G
However, with Win7 (or later versions), we cannot do that anymore as a result of boot.ini file abandoned. Still it provides us a tool called bcdedit.exe (you can find it in system32 or run bcdedit in the command line tool):
Here you can learn more about edit the boot.ini file: How to edit the Boot.ini file in Windows XP
And bcdedit: BCDEdit Command-Line Options