Difficulty: Easy
Correct Answer: to improve disk performance
Explanation:
Introduction / Context:
Buffer caches (also called page cache or block cache) are core OS components that keep recently accessed disk blocks in RAM. They bridge the performance gap between slow storage devices and much faster main memory and CPU.
Given Data / Assumptions:
Concept / Approach:
By caching frequently accessed blocks, the OS serves subsequent reads from RAM and coalesces or defers writes (write-back/write-through policies). This reduces average access time and alleviates contention on storage devices, improving system responsiveness and throughput.
Step-by-Step Solution:
Verification / Alternative check:
System monitoring (e.g., cache hit ratios) demonstrates reduced I/O operations and improved performance when caches are effective.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing buffer cache with virtual memory paging; ignoring write policies and data consistency issues.
Final Answer:
to improve disk performance
Discussion & Comments