recategorized by
27,309 views
52 votes
52 votes

A hard disk with a transfer rate of $10$ Mbytes/second is constantly transferring data to memory using DMA. The processor runs at $600$ MHz, and takes $300$ and $900$ clock cycles to initiate and complete DMA transfer respectively. If the size of the transfer is $20$ Kbytes, what is the percentage of processor time consumed for the transfer operation?

  1. $5.0 \%$
  2. $1.0\%$
  3. $0.5\%$
  4. $0.1\%$
recategorized by

10 Answers

0 votes
0 votes

 

For those who have difficulty in conversion of units like me, this can be the solution in terms of nanoseconds. 

0 votes
0 votes
$Percentage\ of\ CPU\ time\ consumed,P = \frac{No.\ of\ CPU\ cycles\ required\ by\ DMA\ per\ second}{No.\ of\ CPU\ cycles\ available\ per\ second}$

$No.\ of\ DMA \ transfer\ requests/sec = \frac{Data\ transfer\ rate\ of\ IO\ device }{Size\ of\ one\ transfer}$

                                                                              $=\frac{10MB/s}{20KB} =\frac{10*10^3}{20}= 500s^{-1}$

$No.\ of\ CPU\ cycles\ required\ by\ DMA\ per\ second$

$ = (no.\ of\ DMA\ transfer\ requests/sec)\ *\ (CPU\ cycles\ required/transfer)$

$=500 * (300+900) = 500 * 1200 = 6*10^5s^{-1}$

$No.\ of\ CPU\ cycles\ available\ per\ second = 600 * 10 ^6=6*10^8s^{-1}$

$P = \frac{6*10^5}{6*10^8}*100\%=0.1\%$

Answer : D
Answer:

Related questions

59 votes
59 votes
4 answers
9
go_editor asked Apr 24, 2016
19,730 views
Consider the following program segment for a hypothetical CPU having three user registers $R_1, R_2$ and $R_3.$\begin{array}{|l|l|c|} \hline \text {Instruction} & \text...
35 votes
35 votes
3 answers
10
17 votes
17 votes
3 answers
12