Friday, May 1, 2020

What is Disk storage Devices in DBMS ? with proper diagram

        Disk Storage Devices

Preferred secondary storage device for high storage capacity 
     and low cost.

Data stored as magnetized areas on  magnetic disk surfaces.


A disk pack  contains several magnetic disks connected 
    a rotating spindle.

Disks are divided into concentric circular tracks  on each 
    disk surface. Track capacities vary typically from 4 to 50 
    Kbytes. Because a track usually contains a large amount of 
    information, it is divided into smaller blocks or sectors.

The division of a track into sectors is hard-coded on the disk
     surface and cannot be changed. One type of sector organization 
     calls a portion of a track that subtends a fixed angle at the 
     center as a sector.

A track is divided into blocks. The block size B is fixed for each 
    system. Typical block sizes range from B=512 bytes to B=4096 
    bytes. Whole blocks are transferred between disk and main 
    memory for processing.



A read-write  head moves to the track that contains the block to 
      be transferred. Disk rotation moves the block under the read-
      write head for reading or writing.

A physical disk block (hardware) address consists of a cylinder 
    number (imaginary collection of tracks of same radius from all
   recorded surfaces), the track number or surface number (within 
   the cylinder), and block number (within track).

Reading or writing a disk block is time consuming because of 
    the seek time s and rotational delay (latency) rd.

Double buffering can be used to speed up the transfer of 
     contiguous disk blocks.

         Diagrams of how to work  Disk storage device 

Example of typical disk parameter below


No comments:

Post a Comment