GATE 2015 CS (CS1) – Question 54
Consider a disk pack with a seek time of 4 milliseconds and rotational speed of 10000 rotations per minute (RPM). It has 600 sectors per track and each sector can store 512 bytes of data. Consider a file stored in the disk. The file contains 2000 sectors. Assume that every sector access necessitates a seek, and the average rotational latency for accessing each sector is half of the time for one complete rotation. The total time (in milliseconds) needed to read the entire file is ________.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: 14020
Explanation
Rotation speed 10 000 RPM, so one rotation takes $\dfrac{60\,000\text{ ms}}{10\,000}=6$ ms.
- Average rotational latency $=\dfrac62=3$ ms.
- Reading one sector: one rotation covers 600 sectors, so $\dfrac{6}{600}=0.01$ ms.
- Seek: 4 ms for every sector access (as stated).
Per sector: $4+3+0.01=7.01$ ms. For 2000 sectors:
$$2000\times7.01=\mathbf{14\,020}\text{ ms}.$$