Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 257 Database Systems Principles Assignment 2 Instructor: Student: Dr. T. Y. Lin Rajan Vyas (119)

Similar presentations


Presentation on theme: "CS 257 Database Systems Principles Assignment 2 Instructor: Student: Dr. T. Y. Lin Rajan Vyas (119)"— Presentation transcript:

1 CS 257 Database Systems Principles Assignment 2 Instructor: Student: Dr. T. Y. Lin Rajan Vyas (119)

2 Buffer Management

3 Introduction Buffer Manager manages the required memory for the process with minimum delay. Read/Write Buffers Request Buffer Manager

4 Buffer Management Architecture

5 Two types of architecture:  Buffer Manager controls main memory directly  Buffer Manager allocates buffer in Virtual Memory In Each method, the Buffer Manager should limit the number of buffers in use which fit in the available main memory. When Buffer Manager controls the main memory directly, it selects the buffer to empty by returning its content to disk. If it fails, it may simply be erased from main memory. If all the buffers are really in use then very little useful works gets done.

6 Buffer Management Strategies

7 LRU (Least Recent Used) It makes buffer free from the block that has not been read or write for the longest time. FIFO(First In First Out) It makes buffer free that has been occupied the longest and assigned to new request. The “Clock” Algorithm 0 10 01 1 10

8 The Relationship Between Physical Operator Selection and Buffer Management

9 The query optimizer will eventually select a set of physical operators that will be used to execute a given query. the buffer manager may not be able to guarantee the availability of the buffers when the query is executed.

10 Thank You


Download ppt "CS 257 Database Systems Principles Assignment 2 Instructor: Student: Dr. T. Y. Lin Rajan Vyas (119)"

Similar presentations


Ads by Google