Virtual memory is used when RAM is full. Data that hasn't been used recently is moved to a location in secondary storage known as virtual memory. If the CPU needs to read data stored in virtual memory, it must move the data back to RAM, so using virtaul memory slows a computer down.