GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 68

Processor overhead for DMA blocks

Computer Organization & Architecture · Input/Output, DMA & Interrupts · Full GATE CSE 2004 paper

GATE 2004, Q68 2 marks · MCQ
Report issue

Input/Output, DMA & Interrupts

Question 68, GATE 2004: A disk continuously transfers at 10 Mbytes/s using DMA. A 600-MHz CPU uses 300 cycles to initiate and 900 cycles to complete each 20-Kbyte DMA block transfer. What percentage of CPU time is consumed by transfer overhead?
Options:
(A) 5.0%
(B) 1.0%
(C) 0.5%
(D) 0.1%
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. The CPU spends 300+900=1200 cycles per block, or 1200/(600×106)=2 microseconds. At 10 MB/s a 20 KB block takes approximately 2 milliseconds, so CPU overhead is 2 microseconds / 2 milliseconds ×100%=0.1%, D.

2. Consistent binary KB/MB units give about 0.1024%, still the stated approximation. This counts setup/completion CPU time, not the disk-transfer duration as busy CPU time.

3. Teaching check: DMA frees the CPU during the bulk data movement. Charge only 1200 CPU cycles per transfer, not the full disk-transfer interval. Using consistent seconds and clock cycles gives a dimensionless ratio before multiplying by 100 to express a percentage.

Original paper, page 10