Buffer Pool Replacement Policies and Clock-Sweep Algorithms
A deep dive into how database management systems manage memory, specifically focusing on page replacement strategies like LRU-K and the Clock-Sweep algorithm to minimize disk I/O.
Sample Questions
What is the primary goal of a buffer pool replacement policy in a database management system?
- To maximize the number of disk writes
- To minimize the number of page faults and disk I/O operations
- To ensure data is always encrypted
- To increase the size of the physical log
Which algorithm replaces the page that has not been accessed for the longest amount of time?
- First-In-First-Out (FIFO)
- Least Frequently Used (LFU)
- Least Recently Used (LRU)
- Most Recently Used (MRU)
In the Clock-Sweep algorithm, what does a reference bit of 1 indicate?
- The page is corrupted
- The page has been recently accessed
- The page is currently pinned
- The page is a dirty page