10 - Secondary - Storage Operating Systems
10 - Secondary - Storage Operating Systems
mo
M e
a r y
n d
co
Se
Secondary memory technologies
● Electro-magnetic storage
● Existing for over 50 years
● Excellent performance for sequential work load
● Solid state storage
● Upcoming & gaining popularity
● Gives excellent performance for random read
workload
Storage Devices
● Disk storage :
● Solid State storage
● Tape storage
IBM RAMAC 350 disk
● Developed in 1956
● Height 66 inches
● 50 platters of size 24 inches
● Weight : around 1 ton
● Storage capacity : 4MB
Modern Disk Drives
● Mechanism
● Recording Components
4 Rotating Disk
4 Heads
● Positioning Components
4 Arm Assembly
4 Track-following System
● Controller
● Microprocessor
● Buffer Memory
● Interface to SCSI bus/SATA
Magnetic Tape
● Relatively permanent and holds large quantities of data
● 1000 times slower than disk
● Mainly used for backup, storage of infrequently-used data, transfer medium
between systems
● 20GB-1.5TB typical storage
● Common technologies are 4mm, 8mm, 19mm, LTO-2 and SDLT
● the original version of which was released in 2000 and can hold 100 GB of data
● The seventh generation of LTO Ultrium was released in 2015 and can hold
6.0 TB
I/O path from CPU to storage
Disk Attachment
● 5400 RPM
● 7200 RPM
● 10000RPM
● 15000 RPM ( 240 KM / hr)
● Higher RPM better performance
● Higher RPM lower the capacity
● 2.5 inch , 900Gb 10K
● 3.5 inch , 4 TB 7500RPM
Disk Scheduling
Head pointer 53
FCFS
Illustration shows total head movement of 640
cylinders.
SSTF
● Selects the request with the minimum seek time
from the current head position.
● SSTF scheduling is a form of SJF scheduling;
may cause starvation of some requests.
● Illustration shows total head movement of 236
cylinders.
SSTF (Cont.)
SCAN
● The disk arm starts at one end of the disk, and
moves toward the other end, servicing requests
until it gets to the other end of the disk, where
the head movement is reversed and servicing
continues.
● Sometimes called the elevator algorithm.
● Illustration shows total head movement of 208
cylinders.
SCAN (Cont.)
C-SCAN
● Version of C-SCAN
● Arm only goes as far as the last request in each
direction, then reverses direction immediately.
C-LOOK (Cont.)
Selecting a Disk-Scheduling Algorithm
• SSTF is common and has a natural appeal
• SCAN and C-SCAN perform better for systems that place a
heavy load on the disk.
• Performance depends on the number and types of requests.
• Requests for disk service can be influenced by the
file-allocation method.
• Either SSTF or LOOK is a reasonable choice for the default
algorithm.
RAID Structure
• Uses Mirroring
• A read request can be serviced by either of two
disks whichever has lesser service time
• A write request requires that both
corresponding strips be updated. This can be
done in parallel.
• Recovery from failure is simple.
• High data transfer and I/O handling rate.
Composite RAID (0+1)
RAID 10
RAID 2
• RAID 2 and 3 make use of parallel accessing
technique.
• All member disks participate in every I/O request
• The disk heads are synchronized
• In RAID 2 and 3 the strips are very small (byte or
word)
• Multi bit parity is calculated using Hamming code
• Number of disks used is less than RAID 1 but still
costly
• All disks are simultaneously accessed
• RAID 2 is not used
RAID 3
71
Positions of redundancy bits in Hamming code
Redundancy bits calculation
Example of redundancy bit calculation
Error detection using Hamming code