Which working set based strategy best balances performance and resource utilization?
hard🌍 Real-world Scenario Q9 of Q15
Operating Systems - Thrashing - Working Set Model & Prevention
You are designing a memory management system for a cloud platform running many short-lived containerized processes with fluctuating memory demands. Which working set based strategy best balances performance and resource utilization?
AAllow containers to swap out completely when memory pressure is detected, regardless of working set.
BAllocate frames strictly based on peak working set sizes observed historically for each container.
CUse a global page replacement policy ignoring container boundaries to maximize frame sharing.
DImplement a dynamic working set tracking with load control to limit active containers based on total memory.
A: Dynamic tracking plus load control adapts to fluctuations and prevents thrashing. B: Peak allocation wastes memory during low demand. C: Global replacement ignores container isolation and locality. D: Swapping entire containers is costly and reactive.
Final Answer:
Option D -> Option D
Quick Check:
Dynamic tracking with load control fits fluctuating container workloads [OK]
Quick Trick:Dynamic tracking plus load control suits fluctuating container memory [OK]
Common Mistakes:
MISTAKES
Allocating based on peak wastes resources
Ignoring container boundaries in global replacement
Assuming swapping entire containers is efficient
Trap Explanation:
PITFALL
Candidates may pick static or global approaches ignoring container workload variability and isolation.
Interviewer Note:
CONTEXT
Tests real-world application of working set and load control in cloud environments.
Master "Thrashing - Working Set Model & Prevention" in Operating Systems
2 interactive learning modes - each teaches the same concept differently