Database System: Storage Flashcards
Block
A logical unit consisting of a fixed number of contiguous sectors.
Block size is fixed during initialisation and cannot be changed dynamically. The block size ranges from 512B to 8Kb
Input/Output I/O
The transfer of one block between main memory and hard disk
The number of I/O is used to evaluate the efficiency of a data structure/algorithm.
A block can be called a page in database
Database in file storage
A collection of filles on disk
File
A collection of blocks
A block
Can contain tones metadata, indexes, log records
Pin
Number of threads accessing the page
Hit rate
The total number of hits over the total number of requests
Buffer replacement policy
When the DBMS needs to free up a frame to make room for a new page, it must decide which page to evict from the buffer pool.
LRU
Clock
MRU
RAID
Redundant Array of Independent Disks
It’s a method of storing the same data on multiple hard disks. By placing data in multiple disks, I/O operations can overlap in a balanced way, improving performance. Because multiple disks increase the mean time between failures (MTBF) and storing data independently increases fault tolerance.
Buffer pool
Available main memory used for storing copies of disk blocks
Buffer manager
A DBMS subsystem that manages the buffer pool, aiming at minimizing I/Os.
Component of the DBMS that manages the memory and the move of data between the main memory and the disk