Methods Applied by Buffer Manager
Buffer replacement strategy
If there is no space in the database buffer for the new data block, the existing block must be removed from the buffer to provide the new data block. Here many operating systems use Least Recently Used(LRU) technology. The least used data block is removed from the buffer and sent back to disk. The term “buffer switching strategy” refers to this change.
Pinned Blocks
Limiting the number of pinned blocks is important when users need to recover block data due to a crash or failure. Blocks are copied/written to disk to store data. Most recovery systems stop writing blocks to disk when data block updates occur. Hard blocks are blocks of data that prevent writing back to disk. It helps prevent data from being written during the update so that the data is saved after each operation.
Force Output Blocks
Sometimes we may need to copy/write back blocks of data. The disc is recorded. This method is considered a bug release. This method is used because system failure will result in loss of data stored in random files and paging is usually not affected by any crash or failure.
What is Buffer Manager?
Buffer Management in DBMS is used to allocate the space in the main memory so that the user can access data from the main memory immediately. In this article, we will learn about buffer managers in DBMS. We will also understand the methods that are used by buffer managers.
Contact Us