Operating Systems: File Systems Flashcards
What secondary storage technology still provides the bulk of modern computers’ storage?
Magnetic disks remain the primary secondary storage technology.
Which three key performance aspects of a disk drive are mentioned in the mass-storage structure overview?
Rotation rate
Transfer rate
Positioning time (the time required to move the arm to the desired location and rotate to the correct data)
What are two characteristics of solid-state devices (SSDs) as described?
They are non-volatile and much faster than magnetic disks
They have no moving parts and may have a shorter lifespan
For what purposes is magnetic tape typically used in mass storage?
Magnetic tape is used for backup, archive, and cold storage.
How can disks be attached to a computer according to the disk attachment overview?
Disks can be removable
They are attached via an I/O bus
Name at least three bus types used to connect disks to a computer.
EIDE or ATA
SATA
USB
Additional examples include Fibre Channel, SCSI, SAS, and Firewire.
What role does the host controller play in disk attachment?
The host controller communicates with the disk controller (which is built into the drive or storage array) via the bus.
How are disk drives logically addressed according to the disk structure slide?
They are addressed as large one-dimensional arrays of logical blocks.
What is a logical block in the context of disk storage?
A logical block is the smallest unit of transfer created by low-level formatting on physical media.
How are logical blocks typically mapped on magnetic disks?
They are mapped sequentially into sectors on the disk, with sector 0 being the first sector of the first track on the outermost cylinder.
What complications might arise in logical-to-physical addressing of disks?
Bad sectors may exist
The number of sectors per track may vary because of constant angular velocity
What components make up a storage array?
Controllers (including memory and controlling software, sometimes NVRAM)
Ports to connect hosts
A varying number of disks (from a few to thousands)
Features like RAID, hot spares, and hot swap capabilities
How do storage arrays contribute to overall storage efficiency?
By enabling shared storage and offering features such as RAID, they improve efficiency and may include functionalities (like snapshots or thin provisioning) that are also found in some file systems.
What is a Storage Area Network (SAN) and where is it commonly used?
A SAN is a high-speed network that provides remote storage access to multiple servers, commonly used in large storage environments.
How does a SAN differ from simple network-attached storage (NAS)?
SANs typically offer higher-speed data transfer and flexible, centralized storage for enterprise applications, while NAS focuses on file-level access over a network.
What is the primary responsibility of the operating system in disk scheduling?
The OS must schedule disk requests to maximize fast access time and disk bandwidth while minimizing the movement of physical parts.
Why is First-Come-First-Served (FCFS) not the most efficient disk scheduling method?
FCFS does not account for the physical movement required by disk drives and may result in longer seek times and lower overall performance.
What is Shortest Seek Time First (SSTF) in disk scheduling?
SSTF services the disk request that requires the shortest seek from the current head position, thereby reducing overall seek time.
How does the SCAN (elevator) disk scheduling algorithm operate?
The disk arm moves from one end of the disk to the other, servicing requests along the way, then reverses direction.
What distinguishes C-SCAN from SCAN disk scheduling?
C-SCAN scans only in one direction and, upon reaching the end, immediately jumps back to the beginning, offering more uniform wait times.
What additional disk scheduling algorithms are mentioned besides FCFS, SSTF, and SCAN/C-SCAN?
LOOK and C-LOOK are also mentioned; these algorithms only scan as far as the last request in the queue before reversing direction.
Why might an operating system choose one disk scheduling algorithm over another?
Performance depends on the number and types of requests and may be influenced by the file-allocation method; the algorithm should be modular to allow easy replacement if needed.
What are the two main tasks encompassed by OS disk management?
Managing low-level, physical formatting of disks
Handling logical disk management through partitioning and logical formatting
What does low-level (physical) formatting involve?
It divides the disk into sectors that the disk controller can read and write, where each sector typically contains:
Header information (metadata)
Data (usually 512 bytes or more)
Error Correction Codes (ECC) for error detection and correction
Low-level formatting is generally performed at the factory.