virtual memoryA section of a computer storage drive which is temporarily used as RAM. is the use of secondary storageNon-volatile memory external to the CPU and used for long-term storage of programs and data. as additional primary memoryThe part of a computer that stores data..
There are times when the amount of RAMRandom access memory. This is volatile memory that is constantly being written to and read from. It does not retain its contents without a constant supply of power. When a computer is turned off, everything stored in its RAM is lost. needed to hold all running programSequences of instructions for a computer. and dataUnits of information. In computing there can be different data types, including integers, characters and Boolean. Data is often acted on by instructions. is greater than the amount of RAM available to the computer. When this happens, part of the computer's secondary storageNon-volatile memory external to the CPU and used for long-term storage of programs and data., such as the hard disk driveA device used to store large amounts of data. , can be used to store data temporarily.
Virtual memory enables data that is in RAM and not currently being used to be transferred to the hard disk. This frees up room in RAM for other programs and data. When the data on the hard disk is needed again, any other unused data is transferred to the hard disk before the original data is transferred back to RAM. This process is known as swappingThe process of moving data between RAM and secondary storage when using virtual memory..
Using virtual memory makes a computer run slower, as the processor has to wait while data is swapped between hard disk and RAM. As secondary storage devices have slower access times than RAM, the computer's processing performance can be severely impaired. Processing performance can be improved by increasing the size of the RAM, thereby reducing the need for virtual memory.