What is a disadvantage of virtual memory?

Enhance your understanding with the System Software, Architecture, Memory and Storage Test. Study with flashcards and multiple choice questions. Each question offers hints and detailed explanations. Prepare effectively for your exam!

Multiple Choice

What is a disadvantage of virtual memory?

Explanation:
The main point is that virtual memory can slow a system when data isn’t already in RAM. It uses disk space as an extension of RAM, but when the CPU needs data that isn’t resident in RAM, the operating system must fetch that page from disk into RAM. Disk access is much slower than RAM access, so each such page fault introduces notable latency and can stall the CPU. If many pages must be swapped in and out, performance can degrade further, a situation often called thrashing. So the drawback of virtual memory is this potential for slow response due to moving data from disk into memory. The other ideas—that virtual memory speeds up the CPU, caches all files automatically, or makes the system boot faster—don’t reflect this cost.

The main point is that virtual memory can slow a system when data isn’t already in RAM. It uses disk space as an extension of RAM, but when the CPU needs data that isn’t resident in RAM, the operating system must fetch that page from disk into RAM. Disk access is much slower than RAM access, so each such page fault introduces notable latency and can stall the CPU. If many pages must be swapped in and out, performance can degrade further, a situation often called thrashing. So the drawback of virtual memory is this potential for slow response due to moving data from disk into memory. The other ideas—that virtual memory speeds up the CPU, caches all files automatically, or makes the system boot faster—don’t reflect this cost.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy