201-450 practice question 4 of 25

Which of the following is a side effect of extensive usage of swap space?

Full set: 161 questions
Answer options
A: The root filesystem may become full because swap space is always located on the system root partition.
B: The overall system performance may degrade because of heavy hard disk use and memory reorganization. Correct answer
C: Since processes always exist completely in either RAM or swap, regular RAM may become unused if the kernel does not move processes back from the swap space to memory.
D: The memory may become fragmented and slow down the access to memory pages. However, this can be kept to a minimum by the regular use of memfrag -d.
E: Applications need to restart because their virtual memory addresses change to reflect memory relocation to the swap address area.
Correct Answer:
B. The overall system performance may degrade because of heavy hard disk use and memory reorganization.
Explanation

Extensive use of swap space, a condition known as "thrashing," occurs when the system lacks sufficient physical RAM and must constantly move memory pages to and from the swap device (typically a hard disk). Since disk I/O is orders of magnitude slower than RAM access, this heavy disk activity creates a major performance bottleneck. The kernel also expends significant CPU cycles managing these page faults and memory transfers, further degrading overall system responsiveness and performance.

Why Incorrect

A. Swap space is often on a dedicated partition and does not necessarily reside on the root filesystem.
C. The Linux kernel uses paging, allowing parts of a process to be in RAM while other parts are in swap.
D. The command memfrag -d is not a standard Linux utility for memory defragmentation.
E. The virtual memory system ensures an application's virtual addresses remain consistent, even when physical pages are swapped.

References

1. The Linux Kernel Documentation. Documentation/admin-guide/mm/swap.rst. Section 1, "What is swap space?". This document explains the purpose of swap and the performance implications of using it.

2. Bovet, D. P., & Cesati, M. (2005). Understanding the Linux Kernel, 3rd Edition. O'Reilly Media. Chapter 17, "Swapping," details the performance costs associated with swapping pages to disk.

3. Arpaci-Dusseau, R. H., & Arpaci-Dusseau, A. C. (2018). Operating Systems: Three Easy Pieces. Arpaci-Dusseau Books. Chapter 21, "Swapping: Mechanisms," explains that swapping to disk is slow and can dominate system performance.

Scroll to Top