lecture 3

Important definitions

# Definition
1 DASDs make it possible to access the data directly.
2 Serial devices allow only serial access.
3 The information stored on a disk is stored on the surface of one or more platters.
4 Each platter has 2 surfaces and is broken into thousands of tracks.
5 All the information is stored in successive tracks on the surface of the disk. Starting from zero at the outer side of the platter, the number of tracks goes on increasing to the inner side.
6 Track starts from zero at the outer side of the platter, the number of tracks goes on increasing to the inner side.
7 Each track is often divided into a number of sectors which is the smallest addressable portion of a disk.
8 Sectors are often grouped together to form clusters.
9 A cluster is the smallest amount of disk space, is also called allocation unit, a fixed number of contiguous sectors. (If there is interleaving these sectors are not physically contiguous)
10 Once a cluster has been found on a disk, all sectors in that cluster can be accessed without requiring an additional seek (seeking only once).
11 The size of each cluster is a multiple of the sector size.
12 The tracks that are directly above and below one another form a cylinder.
13 When a read statement calls for a particular byte from a disk file, the computer’s operating system finds the correct platter, track and sector, reads the entire sector into a special area in memory called a buffer, and then finds the requested byte within that buffer.
14 Disk has a number of platters and read/write heads, each read/write head has a separate arm.
15 All the information on a single cylinder can be accessed without moving the arm that holds the read/write heads.
16 Moving this arm is called seeking, The arm’s movement is usually the slowest part of reading information from a disk.
17 logical organization of sectors on a track is that sectors are adjacent, fixed-sized segments of a track.
18 Physically this organization is not optimal.
19 If the sectors were physically adjacent, we would miss the start of the next sector while processing the info just read in.
20 A map of sectors is called the File Allocation Table (FAT).
21 The FAT containing for each cluster in the file.
22 The file manager is the part of the operating system responsible for managing files.
23 The FAT is maintained by the file manager.
24 All file systems are determined by the number of sectors that the cluster contains.
25 The use of clusters leads to internal fragmentation.
26 If the file size is not a multiple of the cluster size, then the last cluster of the file will be partially used.
27 An extent is a group of contiguous clusters.
28 If the file is stored in a single extent the seeking is done o
29. If the file is stored in a single extent the seeking is done only once (minimum of seeking time).
30. If one extent is not enough, then divide the file into more extents.
31. Use large cluster size when disks contain large files likely to be processed sequentially.
32. Use small cluster size When disks contain small files and/or files likely to be accessed randomly.
33. If the records are smaller than the sector size, then if store one record per sector, then there is one access and internal fragmentation (Loss of Space).
34. If the records are smaller than the sector size, then if one record may span two sectors, then there is no internal fragmentation and access more than once.
35. Rather than being divided into sectors, the disk tracks may be divided into blocks.
36. Blocks can be either fixed or variable in length, depending on the requirements of the file designer and the capabilities of the operating system.
37. Blocks don’t have the internal fragmentation problem and no record spanning two blocks.
38. blocking factor indicates the number of records per block.
39. Count subblock contains the number of bytes in a block.
40. Key subblock contains the key for the last record in the data subblock.
41. Data subblock contains the records in this block.
42. Whether using a block or a sector organization, some amount of space on the disk is taken up by non-data overhead.
43. Blocks involves subblock + interblock gaps.
44. The relative amount of non-data space necessary for a block scheme is higher than for a sector-scheme.
45. Seek Time is the time required to move the access arm to the correct cylinder.
46. Rotational Delay is the time it takes for the disk to rotate.
47. Transfer time is the time it takes to transfer data.






Important Rules

Rule Equation Mathmatical Equation
One platter Platter Capacity = track capacity * number of tracks per surface * 2 PlatterCapacity=TC×TPS×2Platter Capacity = TC \times TPS \times 2
Number of surfaces, Number of tracks per cylinder, Number of read/write heads, Number of arms Number of surfaces = number of tracks per cylinder = number of read/write heads in this disk = number of arms in this disk NS=NTPC=NHD=NANS = NTPC = NHD = NA
Number of Cylinders per disk Number of Cylinders per disk = number of tracks per surface NCD=TPSNCD = TPS
Track Capacity Track Capacity = number of sectors per track * bytes per sector TC=NST×BPSTC = NST \times BPS
Cylinder Capacity Cylinder Capacity = number of tracks per cylinder * track capacity CC=NTPC×TCCC = NTPC \times TC
Surface Capacity Surface Capacity = track capacity * number of tracks per surface SC=TC×TPSSC = TC \times TPS
Drive Capacity Drive Capacity = number of cylinders per disk * cylinder capacity DC=NCD×CCDC = NCD \times CC
Number of sectors per track Number of sectors per track = track capacity / bytes per sector NST=TC/BPSNST = TC/BPS
Number of sectors per cylinder Number of sectors per cylinder = number of sectors per track * number of tracks per cylinder NSC=NST×NTPCNSC = NST \times NTPC
Number of sectors per surface Number of sectors per surface = number of sectors per track * number of tracks per surface NSS=NST×TPSNSS = NST \times TPS
Number of sectors per platter Number of sectors per platter = number of sectors per surface * 2 NSP=NSS×2NSP = NSS \times 2
Number of sectors per disk Number of sectors per disk = number of sectors per track * number of tracks per surface * number of surfaces NSD=NST×TPS×NSNSD = NST \times TPS \times NS
Number of tracks per platter Number of tracks per platter = number of tracks per surface * 2 NTP=TPS×2NTP = TPS \times 2
Number of tracks per disk Number of tracks per disk = number of tracks per surface * number per surfaces NTD=TPS×NSNTD = TPS \times NS
Number of records in sector Number of records in sector = bytes of sector / bytes of record NRS=BPS/BPRNRS = BPS / BPR
Number of records per cylinder Number of records per cylinder = number of sectors per cylinder * number of records per sector NRC=NSC×NRSNRC = NSC \times NRS
Size of data subblock Size of data subblock = blocking factor * record size SDS=BF×RSSDS = BF \times RS
Number of bytes in each block Number of bytes in each block = size of data subblock + size of non-data overhead NBB=SDS+SNDONBB = SDS + SNDO
Transfer time Transfer time = (Number of Bytes Transferred/ Number of Bytes on a Track) * Rotation Time TT=(NBT/NBT)×RTTT = (NBT/NBT) \times RT
Average Total time Average Total time = average seek + average rotational delay + transfer time ATT=AS+ARD+TTATT = AS + ARD + TT

NOTE : There are some conflicts in acronyms such as (NBT). So, بصمج وانت ساكت



here is the above acronyms (optional , عشان لو حبيت تذاكرهم بالاختصار):

acronym Description
PC Platter Capacity
SC Surface Capacity
CC Cylinder Capacity
DC Drive Capacity
TC Track Capacity
NST Number of Sectors per Track
NSC Number of Sectors per Cylinder
NSS Number of Sectors per Surface
NSP Number of Sectors per Platter
NSD Number of Sectors per Disk
NTP Number of Tracks per Platter
NTD Number of Tracks per Disk
NRS Number of Records in Sector
NRC Number of Records per Cylinder
SDS Size of Data Subblock
NBB Number of Bytes in Each Block
TT Transfer Time
ATT Average Total Time