What this virtual memory thrashing question tests
This is a foundational operating systems question that probes your understanding of how virtual memory systems behave under memory pressure. It asks you to identify and explain a pathological performance condition that arises when a system's page-replacement policy breaks down, causing the kernel to spend most of its time on memory management rather than executing user code.
Candidates who answer well demonstrate familiarity with the relationship between working set size, available physical memory, and system throughput. The question rewards clarity in explaining how and why this degradation occurs, and what observable symptoms would indicate the problem is happening. Understanding this concept is essential for reasoning about system performance bottlenecks and memory allocation strategies.
- Page replacement algorithms and their failure modes
- Working set concept and locality of reference
- Context switching overhead and I/O wait time
- Practical indicators of memory pressure in production systems