MODULE5 Mass Storage Struc
MODULE5 Mass Storage Struc
Starting from the current head position, what is the total distance (in cylinders) that the disk arm
moves to satisfy all the pending requests for each of the following disk-scheduling algorithms?
a. FCFS
b. SSTF
c. SCAN
d. LOOK
e. C-SCAN
f. C-LOOK
Selecting a Disk-Scheduling Algorithm
➢ Bad Blocks
Methods such as sector sparing used to handle bad blocks
A typical bad-sector transaction might be as follows:
• The operating system tries to read logical block 87.
• The controller calculates the ECC and finds that the sector is bad. It reports this finding to the operating
system.
• The next time the system is rebooted, a special, command is run to tell the SCSI controller to replace the bad
sector with a spare.
• After that, whenever the system requests logical block 87, the request is translated into the replacement sector's
address by the controller
Swap-Space Management
• Swap-space — Virtual memory uses disk space as an extension of main memory
• Swap-space can be carved out of the normal file system, or, more commonly, it can be in a separate disk
partition (raw)
• Swap-space management
• 4.3BSD(Solaris 1) allocates swap space when process starts; holds text segment (the program) and
data segment
• Solaris 2 allocates swap space only when a dirty page is forced out of physical memory, not when
the virtual memory page is first created
• Linux uses swap maps to track swap-space use -> swap space is implemented as swap space area.
• Some systems allow multiple swap spaces