4 - Devices Flashcards
What are the two device types?
Shareable
- based on space sharing
- multiple requests
Non-shareable
- allocated to one program/request
What are the components of device driver software
Init Request Queuer Queue Request Dequeuer ---> Device Controller/Device Transfer initiator Interrupt Service ROutiner
Define disk scheduling
Takes requests from the queue so as to optimise transfer of data
How fast do magnetic drives rotate
60 to 200 times a second
Transfer rate
speed at which data flows between drive and computer
Access Time
Random access time is the time to move the disk arm to desired track (seek) and for the sector to rotate under the disk head (rotational latency)
Head Crash
When the disk head makes contact with the disk surface
FCFS Disk Scheduling
First COme First Served.
Order in which requests come
fair but not fast
SSTF Disk Scheduling
Shortest Seek time first
Select the next closest request from the current pos.
May starve some requests that endlessly wait
SCAN disk scheduling
Disk arm starts at end, moves towards other and services requests then reverses etc
elevator algorithm
How does UNIX treat devices that can be written to or read from?
As special files (according to the inode)
What is RAID?
Redundant Array of Independent Disks
Set of drives viewed as single logical unit
What is RAID 0?
Striping
Distribute data over multiple disks in two forms:
- bit level
- block level
How does bit level striping work?
Split the bits across multiple disks
- take 8 disks, bit i to disk i for each byte then access rate is eight times as large
How does block level striping work?
Given n disks, block i of a file goes to disk (i mod n ) + 1
- block nums from 0 and disks from 1