GATE Computer ScienceHardGATE CS (PYQ pattern)
A disk spins at 7200 rpm, has an 8 ms average seek and a 100 MB/s media rate (1 KB = 1000 B, 1 MB = 10⁶ B). Request X reads one contiguous 400 KB extent: one average seek, the average rotational latency, then the transfer. Request Y reads 100 scattered 4 KB blocks; an elevator scheduler cuts the seek of each of them to 3 ms, but each still pays the average rotational latency and its own transfer. About how many times longer does Y take than X?
- A. about 76 times
- B. about 45 times
- C. about 56 times
- D. about 65 times
Correct answer: B. about 45 times
Average rotational latency = half a turn = 0.5 × 60/7200 s = 4.17 ms. Y = 100 × (3 + 4.17 + 0.04) = 720.7 ms; X = 8 + 4.17 + 4.0 = 16.17 ms; ratio ≈ 44.6. Keeping the 8 ms seek for Y gives 76, using a full rotation as latency gives 56, and giving X the 3 ms seek too gives 65.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A memory has 8 low-order interleaved banks (bank = word address mod 8). An access started in cycle t keeps its bank busy in cycles t … t+5…
- A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has no forwarding; the register file is written in the first half of a cycle and read in…
- A pipeline has a two-slot delayed branch: the two instructions after every branch always execute. The compiler fills the first slot with a…
- A cache miss fetches an 8-word block. Sending the address takes 1 cycle, a memory access takes 15 cycles and putting one word on the…
- A 1 GHz machine has instruction classes A, B, C with CPI 1, 2 and 3. For the same program, compiler X produces 5×10⁹ class-A, 1×10⁹…
- A non-pipelined datapath takes 100 + 120 + 90 + 150 + 110 ps per instruction. It is cut into those 5 stages with a 10 ps latch after each…