Mass Storage

Description

Superior Operating Systems Mind Map on Mass Storage, created by Artur Assis on 17/06/2022.
Artur Assis
Mind Map by Artur Assis, updated more than 1 year ago
Artur Assis
Created by Artur Assis over 2 years ago
0
0

Resource summary

Mass Storage
  1. Types
    1. Hard Disk Drive (HDD)
      1. Important measures
        1. Transfer Rate
          1. Rate that data flow between drive and computer
          2. Positioning time (random access time)
            1. Seek time
              1. Time to move disk arm to the desired cylinder
              2. Rotational Latency
                1. Time for the desired sector to rotate under the disk header.
                  1. Latency = 60/RPM
                    1. Avg of latency = Latency/2
                  2. Seek time plus rotational latency
                  3. Access Latency (Average Access Time) = Avg seek time + Avg latency
                    1. Avg I/O time = Avg Access Time + Amount to transfer/transfer rate + Controller overhead
                    2. Illustration
                      1. HDD scheduling
                        1. It means scheduling the disks I/O requests (OS maintains a queue of requests). The goal of HDD scheduling is to minimize seek time (that is proportional to seek distance).
                          1. Sources of disk I/O requests
                            1. OS
                              1. System processes
                                1. User processes
                                2. Scheduling queue management
                                  1. Algorithms
                                    1. First-come First-served (FCFS)
                                      1. SCAN
                                        1. Arm goes to one end of the disk and then moves to the other end.
                                        2. C-SCAN
                                          1. Arm goes to one end and it returns to the beginning when it reaches that end continuing the movement as a cycle.
                                            1. More uniform wait time than SCAN.
                                          2. In the past, OS was responsible for that management. Modern devices have controllers built into the storage device.
                                            1. Ex.: Implementation in Linux. Uses 2 queues for reading (1 C-SCAN and 1 FCFS) and 2 for writing operations (1 C-SCAN and 1 FCFS). It also implement an aging mechanism to avoid starvation.
                                          3. Disk bandwidth
                                            1. Total number of bytes transferred divided by the total time between the first request and the completion of the last service.
                                          4. Nonvolatile Memory (NVM)
                                            1. Disk-drive like
                                              1. Solid-state Disk (SSD)
                                              2. Other forms
                                                1. USB drives
                                                  1. Main storage in smartphone
                                                  2. Characteristics
                                                    1. More reliable than HDD
                                                      1. More expensive per MB than HDD
                                                        1. May have shorter lifespan
                                                          1. Much faster than HDD
                                                            1. No moving parts
                                                              1. Limited number of writes (Ex. ~100000)
                                                                1. Measure: drive writes per day (DWPD)
                                                                  1. Ex. 1TB NAND drive with 5 DWPD is expected to have 5 TB per day written with warrantee period without failing.
                                                                  2. It is necessary to spread write operations uniformily among the cells to avoid consuming all the possible writes of a specific cell.
                                                            2. Volatile memory as mass storage
                                                              1. Volatile memory used as high speed temporary storage
                                                                1. Ex.: Linux /tmp usually is located in RAM, not in secondary memory
                                                                2. Magnetic Tape
                                                                  1. Characteristics
                                                                    1. Cheap
                                                                      1. High capacity
                                                                        1. Slow reading process
                                                                          1. Sequential reading/writing
                                                                          2. Usually used for backup
                                                                            1. Requires special devices for reading/writing
                                                                          3. Disk Attachment
                                                                            1. Host-attached storage accessed through I/O ports talking to I/O busses
                                                                              1. BUSSES
                                                                                1. Advanced Technology Attachment (ATA)
                                                                                  1. Serial ATA (SATA)
                                                                                    1. Parallel ATA (PATA)
                                                                                      1. eSATA
                                                                                        1. Serial Attached SCSI (SAS)
                                                                                          1. Universal Serial Bus (USB)
                                                                                            1. Fibre Channel (FC)
                                                                                              1. NVM express (NVMe)
                                                                                                1. Connected directly to PCI bus
                                                                                            2. Disk Structure
                                                                                              1. Disk drives are addressed as large 1-dimensional arrays of logical blocks. Each logical block is the smallest unit of data that can be transferred. The array is mapped into sectors.
                                                                                                1. Ex.: sector 0 is the first sector of the first track of the outermost cylinder. Mapping proceeds in that track and in the rest of the tracks in that cylinder. After that cylinder, it proceeds to other cylinders, from outermost to innermot.
                                                                                              2. Error detection and correction
                                                                                                1. Mechanisms to detect and, sometimes, correct bit errors. May be applied in memory, networking, storage.
                                                                                                  1. Types of errors
                                                                                                    1. Soft errors
                                                                                                      1. Correctable
                                                                                                      2. Hard errors
                                                                                                        1. Detectable but not correctable
                                                                                                      3. Examples ot techniques
                                                                                                        1. Parity bit
                                                                                                          1. Cyclic redundancy check (CRC)
                                                                                                            1. Error Correction Code (ECC)
                                                                                                            2. It contributes to the controller overhead
                                                                                                              1. Very important for HDDs
                                                                                                              2. Storage device management
                                                                                                                1. Low-level formatting (physical formatting)
                                                                                                                  1. Dividing a disk into sectors that a disk controller can read and write. Each sector can hold header, data, and error correction code.
                                                                                                                    1. Ex. usually blocks 512 B
                                                                                                                  2. Using disk to hold files
                                                                                                                    1. Partition
                                                                                                                      1. Divide the disk into one or more groups of cylinder.
                                                                                                                        1. Root Partition
                                                                                                                          1. Contains the OS. It is mounted at boot time.
                                                                                                                          2. Consistency checked during mount time.
                                                                                                                          3. Logical Formatting
                                                                                                                            1. For efficiency, group blocks into clusters
                                                                                                                          4. Storage Attachment
                                                                                                                            1. Ways to access storage
                                                                                                                              1. Host-attached storage
                                                                                                                                1. Access through local I/O ports. May use one of the following technologies: USB, firewire, fibre channel (FC), etc
                                                                                                                                2. Network-attached storage (NAS)
                                                                                                                                  1. Storage made available over a network. Implemented via remote procedure calls (RPCs) between host and storage. It is presented as a file system.
                                                                                                                                    1. Common protocols
                                                                                                                                      1. Network File System (NFS)
                                                                                                                                        1. Common Internet File System (CIFS)
                                                                                                                                        2. Illustration
                                                                                                                                        3. Cloud storage
                                                                                                                                          1. Similar to NAS, but uses Internet or WAN to access the storage. It is API based
                                                                                                                                      2. Storage Array
                                                                                                                                        1. Attach disks or array of disks.
                                                                                                                                          1. Redundant Array of Inexpensive/Independent Disks (RAID)
                                                                                                                                            1. Increase mean time to failure
                                                                                                                                              1. Multiple disks provide reliability via redundancy
                                                                                                                                                1. NVRAM to improve write performance
                                                                                                                                                  1. Disk striping
                                                                                                                                                    1. A group of disks used as one storage unit
                                                                                                                                                    2. Redundancy level
                                                                                                                                                  Show full summary Hide full summary

                                                                                                                                                  Similar

                                                                                                                                                  Sistemas Operacionais
                                                                                                                                                  Carlos Ramos
                                                                                                                                                  Spanish Vocabulary- Beginner
                                                                                                                                                  PatrickNoonan
                                                                                                                                                  French Beginner
                                                                                                                                                  PatrickNoonan
                                                                                                                                                  Newton's Three Laws of Motion
                                                                                                                                                  PatrickNoonan
                                                                                                                                                  Question Words - GCSE German
                                                                                                                                                  lucykatewarman1227
                                                                                                                                                  Concepts in Biology Final Exam
                                                                                                                                                  mlszala
                                                                                                                                                  GCSE French - Parts of the Body
                                                                                                                                                  Abby B
                                                                                                                                                  Unit 3 Business Studies
                                                                                                                                                  Lauren Thrower
                                                                                                                                                  Edexcel Additional Science Biology Topic 1- Genes and Enzymes
                                                                                                                                                  hchen8nrd
                                                                                                                                                  The Five Minute Lesson Plan Template
                                                                                                                                                  tom.roche_
                                                                                                                                                  Performance y Planificación de Vuelo
                                                                                                                                                  Adriana Forero