Disk Management in Operating System
Disk Management in Operating System
OPERATING SYSTEM
• Disk management is an important functionality provided by the operating system which can be used
to create, delete, format disk partitions, and much more. It enables users to manage and view the
different disks and functions like viewing, creating, deleting, and shrinking the partitions associated
with the disk drives.
• Disk management of the operating system includes:
• Disk format
• Booting from disk
• Bad block recovery
DISK ACCESS TIME:
Disk Access Time is defined as the total time required by the computer to process a read/write
request and then retrieve the required data from the disk storage.
Disk Access Time is divided into 2 parts:
1.Access Time
2.Data Transfer Time
Disk Access Time = Access Time + Data Transfer Time
Access Time:
Access Time is defined as the setup time before the actual data transfer takes place.
For example, the read/write head is on track 1 but we need to read data from another track or
segment. Thus, the read/write head will move to the data block location before the actual transfer
can take place. This delay is called Access Time.
Access Time is calculated by summation of the following:
(a). Seek Time
(b). Rotational Latency
(c). Command Processing Time
(d). Settle Time
First come first serve (FCFS)
FCFS is the simplest disk scheduling algorithm. As the name suggests, this algorithm entertains
requests in the order they arrive in the disk queue. The algorithm looks very fair and there is no
starvation (all requests are serviced sequentially) but generally, it does not provide the fastest
service.
Input:
Request sequence = {176, 79, 34, 60, 92, 11, 41, 114}
Initial head position = 50
Output: Total number of seek operations = 510
Request sequence = {176, 79, 34, 60, 92, 11, 41, 114}
Initial head position = 50
= (50-41)+(41-34)+(34-11)+(60-11)+(79-60)+(92-79)+(114-92)+(176-114) = 204