SEG3420 File Structures and Processing - Lecture3 Secondary Storage Media_Magnetic Disks
SEG3420 File Structures and Processing - Lecture3 Secondary Storage Media_Magnetic Disks
• General Characteristics
• Disk Capacity
• Seek and Latency Time
• Data Transfer Rate
• Average Seek Time
• Disk Architecture
• Clusters and Extents
General Characteristics 1/4
Tracks are
numbered in
sequence
On each track
3 2 1 0
data are
encoded in a
serial
representation
General Characteristics 3/4
- Capacity
s = Σ s[j] x p[j]
j=0
where
– S[j] = seek time for a seek of length j
– P[j] = probability that a seek has length j
Average Seek Time 3/4
• Let
p[i] = The probability of a length-l-seek from the
current cylinder i towards the center of the
disk
p[j] = The probability of a length-l-seek from the
current cylinder j towards the center of the
disk
What is the probability of a length-l-seek in
terms of p[i] and p[j]?
Disk Architecture
• Track format
– IM (Index Marker): indicates the physical beginning
of a particular track
– HA (Home Address): Consists of the following five
subfields
• Cylinder number
• Head number
• Physical address
• A flag indicates whether it is defective or operative and
whether it is a primary or alternate track
• A 2-byte cyclic checking field
Disk Architecture
- Block Addressable Devices 3/11
COUNT AREA ISBG DATA AREA
– Data area
• 10-byte-long area
• Gives the amount of unused space in this track
• 2-byte-long subfield for cyclic check
• Interblock Gaps (IBG)
– Size depends on
• Block size
• Number of blocks allocated
Disk Architecture
- Block Addressable Devices 5/11
Count
A ISBG ISBG R0 R1 R2 … R3
area
n R0 R1 R2 … Rn
n 0 R0 1 R1 … n Rn
Disk Architecture
- Block Addressable Devices 10/11
• Question: What is the block overhead for count-
key data format?
Disk Architecture
- Block Addressable Devices 11/11
• A word about IBG in disks:
– The sizes of IBG In disks are not fixed
– IBG sizes for disks depends on
• Block size
• The specific device
– Exact values cannot be calculated
• IBG size will be ignored from now on
Disk Architecture
- Parity Checking
• Parity check is performed by the disk controller
• Two cyclic check redundancy bytes are used
• Four error correction code bytes are computed
during a physical write operation
Clusters and Extents 1/2
• Volume label
– Uses to identify a disk
– Resides in the first track of the first cylinder
– The VTOC acts as the disk directory
References