GATE CS 2024 Set 2 — Question 53

NAT+2 / -0HardDisk Structure & Access TimeI/O OrganizationComputer Organization & Architecture

Computer Organization & Architecture → I/O Organization → Disk Structure & Access Time

Last updated

Question

Consider a disk with the following specifications: rotation speed of 6000 RPM, average seek time of 5 milliseconds, 500 sectors/track, 512-byte sectors.
A file has content stored in 3000 sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to 2 decimal places) to read the entire file from the disk is _________

Correct answer

29.5 to 30.5

Solution

Given:
  • Rotation speed = 6000 RPM
  • Average seek time (TseekT_{seek}) = 5 ms
  • Sectors per track = 500
  • Total sectors to read = 3000
  • Sectors are located randomly.
Step 1: Calculate Average Rotational Latency (TrotT_{rot})Rotations per second=600060=100 rps\text{Rotations per second} = \frac{6000}{60} = 100 \text{ rps}Time for one full rotation=1100 sec=10 ms\text{Time for one full rotation} = \frac{1}{100} \text{ sec} = 10 \text{ ms}Average Rotational Latency=12×Time for one rotation=102=5 ms\text{Average Rotational Latency} = \frac{1}{2} \times \text{Time for one rotation} = \frac{10}{2} = 5 \text{ ms}Step 2: Calculate Transfer Time per Sector (TtransferT_{transfer})
Since there are 500 sectors per track, the time to read one sector is the time for one rotation divided by the number of sectors:Ttransfer=10 ms500=0.02 msT_{transfer} = \frac{10 \text{ ms}}{500} = 0.02 \text{ ms}Step 3: Calculate Total Time
Since the sectors are located randomly, each sector access requires independent Seek, Rotational Latency, and Transfer.Time per sector=Tseek+Trot+Ttransfer\text{Time per sector} = T_{seek} + T_{rot} + T_{transfer}Time per sector=5 ms+5 ms+0.02 ms=10.02 ms\text{Time per sector} = 5 \text{ ms} + 5 \text{ ms} + 0.02 \text{ ms} = 10.02 \text{ ms}Total time for 3000 sectors:Total Time=3000×10.02 ms\text{Total Time} = 3000 \times 10.02 \text{ ms}Total Time=30060 ms\text{Total Time} = 30060 \text{ ms}Total Time in seconds=300601000=30.06 s\text{Total Time in seconds} = \frac{30060}{1000} = 30.06 \text{ s}The value 30.06 lies within the accepted range of 29.50 to 30.50.

More questions on I/O Organization

Practice GATE CS PYQs with adaptive difficulty

Timed practice, skill tracking, and AI explanations — free to start.

Start practicing free