Virtual memory is an OS feature that enables a computer to solve a shortage of physical memory by temporarily transferring data from RAM to disk storage (hard drive or SSD). This process only occurs when RAM runs low and when that shortage prevents the computer from completing some task. In that case, the PC frees up necessary RAM by swapping infrequently used data over to a storage device.