GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 8(c)

CPU occupation for byte interrupts

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

GATE 2001, Q8(c) Descriptive
Report issue

Input/Output, DMA & Interrupts

Question 8(c), GATE 2001: Disk: 20 surfaces, 1000 tracks/surface, 16 sectors/track, 1 KB/sector, 3000 rpm; transfer one byte at a time. For CPU calculations memory transfer costs 0.1 μs/byte, interrupt overhead 0.4 μs/byte, DMA setup negligible and requests always granted. Use 1 KB=1024 bytes.

Task: Find the percentage of CPU time required for byte-wise interrupt-driven transfer.
Question 8(c), GATE 2001: Disk: 20 surfaces, 1000 tracks/surface, 16 sectors/track, 1 KB/sector, 3000 rpm; transfer one byte at a time. For CPU calculations memory transfer costs 0.1 μs/byte, interrupt overhead 0.4 μs/byte, DMA setup negligible and requests always granted. Use 1 KB=1024 bytes.

Task: Find the percentage of CPU time required for byte-wise interrupt-driven transfer.
Tap to enlarge
Shared context

Disk: 20 surfaces, 1000 tracks/surface, 16 sectors/track, 1 KB/sector, 3000 rpm; transfer one byte at a time. For CPU calculations memory transfer costs 0.1 μs/byte, interrupt overhead 0.4 μs/byte, DMA setup negligible and requests always granted. Use 1 KB=1024 bytes.

Answer & solution

Answer: 40.96% of CPU time during sustained disk transfer. (no official key was published)

1. The sustained disk rate is 50×16×1024=819,200 bytes/s. Each byte causes its own interrupt, so there are 819,200 interrupts per second of streaming transfer.

2. For each byte the CPU pays both 0.4 μs interrupt overhead and 0.1 μs memory read/write time. Total CPU service is 0.5 μs/byte.

3. CPU busy time per elapsed second is 819,200×0.5 μs=409,600 μs=0.4096 seconds. Therefore utilization is 0.4096×100=40.96%.

4. Counting only the interrupt overhead would give 32.768% and omit the specified data transfer cost. The remaining time can be used for unrelated computation under the stated model.

Original paper, page 8