The Concept of Virtual Memory in Computer Architecture
When a computer runs multiple programs it uses physical memory, or RAM. When the operating systems is asked to run more applications than there is RAM available, the computer must use virtual memory. It is ideal to use virtual memory when your computer has no memory available.
Virtual Memory
Windows uses virtual memory to supplement physical memory in a computer system. The operating system does this by moving applications to a space on the hard drive. This space has been created to imitate RAM. As physical memory becomes more accessible, the memory management unit moves files form a hard drive to RAM.
Page Files
The files that are moved from the hard drive to the physical memory, or the RAM, are called page files. These files are called swap files because they are swapped from one memory space to another. They are essentially going from one memory area to another available memory area.
Amount of Virtual Memory
Individual computer users can set the amount of hard drive space allocated for page files. However the recommended number is usually about half the amount of total RAM available. The computer's memory capacity is equal to 1. 5 the physical amount of the RAM installed.
System Preference
Even though a computer can use a portion of the hard drive like it is actual RAM, it is not always ideal. It takes time for a computer to access data on a conventional hard drive, but takes even 1000 times longer to access the same information store in RAM. No matter how much RAM the computer has, the operating system will only allow a certain portion of the hard drive as a virtual memory or a swap file.