Professional Documents
Culture Documents
◼ Disk Scheduling
◼ Disk Management
◼ Swap-Space Management
We assume that the cylinder range is 0-199 and the head pointer is at
cylinder 53.
◼ The Rule: Select / serve the cylinder request that has arrived first.
◼ Example:
◼ The Rule: Select / serve the request with the minimum seek time from the
current head position.
◼ Example:
◼ The Rule: The head moves in one direction (either forward or backward
depending upon the current direction of the head movement) up to one end of
the disc, and then in reverse direction up to the other end of the disc, serving
the requests in its path. This process continues.
◼ The Rule: The head moves in forward direction (0 to max) up to the end of the
disc serving the requests in its path. However, on reaching the end, the head
immediately returns to the beginning of the disc, without serving any requests
in the reverse path. The serving again continues in forward direction from the
beginning of the disc. This process continues.
◼ Example:
◼ The Rule: The head moves in one direction (either forward or backward
depending upon the current direction of the head movement), and then in
reverse direction of the disc up to the final requests in each direction, serving
the requests in its path. This process continues.
◼ Example:
◼ The Rule: The head moves in forward direction (0 to max) of the disc up to the
final request in that direction serving the requests in its path. However, on
reaching the final request, the head immediately returns to the final request in
backward direction of the disc, without serving any requests in the reverse
path. The serving again continues in forward direction from the beginning of
the disc. This process continues.
◼ Example:
◼ SCAN and C-SCAN perform better for systems that place a heavy load on the
disk.
◼ Before a disk can store any data, it need to be divided into sectors. This
process is called low-level formatting / physical formatting. Most hard disks are
low-level formatted at the factory as a part of the manufacturing process.
◼ To use a disk to hold files the OS need to partition the disk (i.e. the disk is
divided into one or more groups of cylinders). The OS may consider each
partition as a separate disk. For instance one partition may hold a copy of the
OS executables, while another holds user files.
◼ After partitioning the last step is logical formatting. In this step the OS stores
the initial file system (for example FAT) on to the disk.
[NOTE]: The fixed part of the disk where the full bootstrap program is stored is called
boot block. The disk that has a boot block is called a boot disk / system disk.
◼ What is a bad block?: A group of defective sectors is called a bad block. Most
disks even come from factory with bad blocks in it.
1. MS-Dos during logical formatting writes a special value in its FAT entry
for each bad blocks.
3. Sector Slipping