Skip to content
Official PYQ · 2015

GATE CS 2015 Set 2 Q49 — I/O Scheduling

Explain with AI
Consider a typical disk that rotates at 1500015000 rotations per minute (RPM) and has a transfer rate of 50×10650 \times 10^6 bytes/sec. If the average seek time of the disk is twice the average rotational delay and the controller's transfer time is 1010 times the disk transfer time, the average time (in milliseconds) to read or write a 512512-byte sector of the disk is _____
View worked solution

Answer: 6.1 : 6.2

The average time to read or write a sector is the sum of the average seek time, the average rotational delay, the disk transfer time, and the controller's transfer time:

Tavg=Tseek+Trot+Ttrans+TctrlT_{\text{avg}} = T_{\text{seek}} + T_{\text{rot}} + T_{\text{trans}} + T_{\text{ctrl}}

Step 1: Calculate Average Rotational Delay (TrotT_{\text{rot}})

The disk rotates at 1500015000 RPM (rotations per minute).

Rotations per second=1500060=250 rotations/sec\text{Rotations per second} = \frac{15000}{60} = 250 \text{ rotations/sec} Time for one full rotation=1250 seconds=4 ms\text{Time for one full rotation} = \frac{1}{250} \text{ seconds} = 4 \text{ ms}

The average rotational delay is half of the time for one full rotation:

Trot=4 ms2=2 msT_{\text{rot}} = \frac{4 \text{ ms}}{2} = 2 \text{ ms}

Step 2: Calculate Average Seek Time (TseekT_{\text{seek}})

Given that the average seek time is twice the average rotational delay:

Tseek=2×Trot=2×2 ms=4 msT_{\text{seek}} = 2 \times T_{\text{rot}} = 2 \times 2 \text{ ms} = 4 \text{ ms}

Step 3: Calculate Disk Transfer Time (TtransT_{\text{trans}})

The disk transfer rate is 50×10650 \times 10^6 bytes/sec, and the sector size is 512512 bytes.

Ttrans=512 bytes50×106 bytes/sec=10.24×10−6 seconds=0.01024 msT_{\text{trans}} = \frac{512 \text{ bytes}}{50 \times 10^6 \text{ bytes/sec}} = 10.24 \times 10^{-6} \text{ seconds} = 0.01024 \text{ ms}

Step 4: Calculate Controller's Transfer Time (TctrlT_{\text{ctrl}})

Given that the controller's transfer time is 1010 times the disk transfer time:

Tctrl=10×Ttrans=10×0.01024 ms=0.1024 msT_{\text{ctrl}} = 10 \times T_{\text{trans}} = 10 \times 0.01024 \text{ ms} = 0.1024 \text{ ms}

Step 5: Calculate Total Average Access Time (TavgT_{\text{avg}})

Tavg=4 ms+2 ms+0.01024 ms+0.1024 msT_{\text{avg}} = 4 \text{ ms} + 2 \text{ ms} + 0.01024 \text{ ms} + 0.1024 \text{ ms} Tavg=6.11264 msT_{\text{avg}} = 6.11264 \text{ ms}

Thus, the average time to read or write a sector is approximately 6.11 ms (which lies in the range 6.1 to 6.2).

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore I/O Scheduling questions