Lecture 2 Flashcards
What is the difference between non-volatile memory and volatile.
Volatile memory keeps data after the device has shutdown, whilst non-volatile memory looses the data
Is data directly accessed on disks?
No, data is accessed through RAM. RAM gets data from main memory.
What system allows DBMS to interact with both Hard disks and SSD’s
File System
Does in-memory DMBS use the same architecture as traditional DMBS?
No.
Identify the difference between Platters, Tracks, Blocks and Sectors.
Platter: Disk.
Tracks: ring within a disk.
Sector: A part of a Track.
Block: The unit that describes the data between RAM and hard disk
What is data striping and which RAID level uses it?
Data striping: Same data, store it on multiple smaller disks, increasing speed. RAID 0
What is data Mirroring and which RAID level uses it?
Data mirroring: storing copies of the data on multiple, same sized, disks. RAID 1
What is RAID 0 + 1?
Striping + Mirroring
What does RAID level 2 do?
Computes and stores data in separate disks that help in error detection and recovery
What does a disk space manager do?
Manages space on the disk, attempting to store pages on subsequent blocks. Lowest Level of Software. Hides details of underlying software.
How does the Disk Space Manager use page ids with allocating and deallocating?
When allocating, the DSM will assign a free block to a page ID.
When deallocating, the DSM will use the page ID to deallocate the block
What are the 2 ways Disk Space Managers keep track of free blocks? Which one is generally better?
Linked List and Bitmap. Bitmap is better because you can easily track continuous sequences of free blocks
What does the buffer manager do?
Responsible for bringing pages from disk to main memory.
Define the following terms: Buffer Pool, Frame, Pin Count, Dirty Bit
Buffer Pool: the partition of main memory into frames
Frame: A slot in the buffer pool that holds a disk block
Pin Count: Number of users using a frame
Dirty Bit: If the page brought to main memory has been modified or not.
For buffer manager, if the page is in the pool, what do you do?
Increment frames pin count and return frame address