• edited by
28,568 views
84 84 votes
Consider a typical disk that rotates at $15000$ rotations per minute (RPM) and has a transfer rate of $50 \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 $10$ times the disk transfer time, the average time (in milliseconds) to read or write a $512$-byte sector of the disk is _____

6 Answers

Best answer
127 127 votes

Average time to read/write $=$ Avg. seek time $+$ Avg. rotational delay $+$ Effective transfer time

Rotational delay $= \frac{60}{15}$ = $4$ ms

Avg. rotational delay $= \frac{1}{2} \times 4$ = $2$ ms

Avg. seek time $= 2 \times 2$ = $4$ ms

Disk transfer time $= \frac{512 \text{ Bytes}}{50*10^6 \text{ Bytes/sec}}$ = $0.0102$ ms

Effective transfer time $= 10 \times $  disk transfer time $=$ $0.102$ ms

So, avg. time to read/write $=$ $4 + 2 +0.0102 +0.102$ $= 6.11$ ms  $\bf{\approx \;\; 6.1}$ ms 

Reference: http://www.csc.villanova.edu/~japaridz/8400/sld012.htm

• edited by
18 18 votes

Avg rotation latency :

$15,000\ rot\rightarrow60sec$

$1\ rot\rightarrow\ ?$

$1\ rot=4ms$

$\dfrac{1}{2}rot\rightarrow2ms$


$Avg\ Seek\ time=2\times Avg\ rotation\ latency$

$Avg\ Seek\ time=4ms$


$Data\ transfer\ time:$

$1\ sec\leftarrow 50\times 10^6B$

$?\leftarrow 512B$

$0.0102ms$


$Controller's\ transfer\ time=10\times data\ transfer\ time$

$Controller's\ transfer\ time=0.102ms$


Total$=6.1ms$

3 3 votes

$\text{Key Concept :}$ 

Refer: Modern Operating Systems - Andrew S. Tanenbaum (Chapter 5, Section 5.1.4: Direct Memory Access), 
in that the disk read process is explained as follows:


    $\text{1.}$ The disk controller first reads the block from the disk into its internal buffer (page 344).
$$\text{Platter} \to \text{Disk Buffer}$$

    $\text{2.}$ Once valid data are in the controller’s buffer, DMA transfers the data to main memory (page 345).
$$\text{Disk Buffer} \to \text{Main Memory}$$

    

    $\text{3.}$ The disk first reads data into its internal buffer before DMA can start. (page 346–347).
 This confirms that the data path is strictly sequential (Platter -> Internal Buffer -> Main Memory) rather than concurrent.



    Therefore, the data path involved in a disk read is:

\begin{array}{c}
\text{Platter} \xrightarrow{\hspace{2.5cm}} \text{Disk Buffer} \xrightarrow{\hspace{1.5cm}} \text{Main Memory} \\[-1.5ex]
\hspace{0cm} \underbrace{\hspace{4.2cm}}_{\begin{smallmatrix} \text{Disk transfer} \\ \text{time} \end{smallmatrix}} \hspace{0.8cm} \underbrace{\hspace{4.2cm}}_{\begin{smallmatrix} \text{Controller} \\ \text{transfer time} \end{smallmatrix}}
\end{array}

 



$\text{Given:}$

Rotation speed = $15000 \text{ RPM}$

Transfer rate = $50 \times 10^6 \text{ bytes/sec}$

Average seek time = $2 \times \text{average rotational latency}$

Sector size = $512 \text{ bytes}$

Controller transfer time = $10 \times \text{disk transfer time}$

 


 

$\text{Step 1: Time for one rotation}$

15000 rotations occur in 60 seconds.

$\text{Time for one rotation } = \frac{60}{15000} \text{ sec} = 0.004 \text{ sec} = 4 \text{ ms}$

$\text{Average rotational latency } = \frac{\text{Time for one rotation}}{2} = 2 \text{ ms}$

$\therefore$ $\boxed{\text{Average seek time } = 2 \times \text{rotational latency} = 2 \times 2 \text{ ms} = 4 \text{ ms}}$

 


 

$\text{Step 2: Disk transfer time for one sector}$

$\text{Transfer rate } = 50 \times 10^6 \text{ bytes/sec}$

$\text{Time to transfer 512 bytes } = \frac{512}{50 \times 10^6} \text{ sec} = 1.024 \times 10^{-5} \text{ sec} = 0.01024 \text{ ms}$

$\therefore$ $\boxed{\text{Disk transfer time } = 0.01024 \text{ ms}}$
 


 

$\text{Step 3: Controller transfer time}$

$\text{Controller transfer time } = 10 \times \text{disk transfer time}$

$\therefore$ $\boxed{\text{Controller transfer time} = 10 \times 0.01024 \text{ ms } = 0.1024 \text{ ms}}$

 


 

$\text{Step 4: Total average access time}$

$\text{Average access time } = \text{Seek time} + \text{Rotational delay} + \text{Disk transfer time} + \text{Controller transfer time}$

                                            $= 4 + 2 + 0.01024 + 0.1024$

                                            $= 6.11264 \text{ ms}$

$\therefore$ $\boxed{\text{Average access time } \approx 6.11 \text{ ms}}$

• edited by
1 1 vote

the absolute total time required to service a sector access includes the average seek time, the average rotational latency, the physical disk data transfer time, and the controller's processing overhead.

$$\text{Total Time} = \text{Seek Time} + \text{Rotational Delay} + \text{Disk Transfer Time} + \text{Controller Time}$$

To calculate the average rotational delay, we first find the total duration of one single complete 360-degree rotation using the given speed of 15000 RPM:

$$\text{Time for 1 rotation} = \frac{60 \text{ seconds}}{15000} = 0.004 \text{ seconds} = 4 \text{ ms}$$

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

$$\text{Rotational Delay} = \frac{4 \text{ ms}}{2} = 2 \text{ ms}$$

The problem states that the average seek time is exactly twice this calculated average rotational delay value:

$$\text{Seek Time} = 2 \times 2 \text{ ms} = 4 \text{ ms}$$

The physical disk transfer time is the time taken to read or write a 512-byte sector given the raw hardware transfer rate of $50 \times 10^6 \text{ bytes/sec}$:

$$\text{Disk Transfer Time} = \frac{512 \text{ bytes}}{50 \times 10^6 \text{ bytes/sec}} = 10.24 \times 10^{-6} \text{ seconds} = 0.01024 \text{ ms}$$

The controller's total data handling overhead is explicitly given as 10 times this physical disk transfer time layer:

$$\text{Controller Time} = 10 \times 0.01024 \text{ ms} = 0.1024 \text{ ms}$$

Summing all four individual time metrics gives the average time needed to read or write the 512-byte sector:

$$\text{Total Time} = 4 \text{ ms} + 2 \text{ ms} + 0.01024 \text{ ms} + 0.1024 \text{ ms} = 6.11264 \text{ ms}$$

$$\text{Average Time} \approx 6.11 \text{ ms}$$

Answer:
Position:
Show:

Related questions

103 103 votes
8 answers 8 answers
33.0k
33.0k views
go_editor asked Feb 13, 2015
32,982 views
A computer system implements $8\;\text{kilobyte}$ pages and a $32\text{-bit}$ physical address space. Each page table entry contains a valid bit, a dirty bit, three permi...
55 55 votes
5 answers 5 answers
13.7k
13.7k views
go_editor asked Feb 13, 2015
13,736 views
Let $X$ and $Y$ denote the sets containing $2$ and $20$ distinct objects respectively and $F$ denote the set of all possible functions defined from $X$ to $Y$. Let $f$ be...
47 47 votes
6 answers 6 answers
24.2k
24.2k views
go_editor asked Feb 13, 2015
24,213 views
The number of states in the minimal deterministic finite automaton corresponding to the regular expression $(0+1)^* (10)$ is _____.
155 155 votes
14 14 answers
112k
112k views
go_editor asked Feb 13, 2015
112,379 views
A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that o...