GATE / CS ARCHIVE

GATE CSE 2016 SET 2 / QUESTION 50

GATE CSE 2016 Set 2 Q50

Operating Systems · I/O & Disk Scheduling · Full GATE CSE 2016 Set 2 paper

GATE 2016 Set 2, Q50 2 marks · NAT
Report issue

I/O & Disk Scheduling

Question 50, GATE 2016: A disk-block cache has 1 ms hit latency and 10 ms disk-read latency; cache checking is negligible. Sizes are multiples of 10 MB. Graph points (size MB,miss %): (10,80),(20,60),(30,40),(40,35),(50,30),(60,25),(70,20),(80,15). Find the smallest size with average latency strictly below 6 ms.
Tap to enlarge
Answer & solution

Official answer: 30.0 : 30.0

Our answer: 30

With negligible lookup-check cost, average latency is(1−m)*1+m*10=1+9m milliseconds, requiring m<5/9. The graph gives miss rates 80% at 10MB, 60% at 20MB and 40% at 30MB. Thus20MB gives 6.4ms and 30MB gives 4.6ms; the smallest allowed size is 30MB.

At 10,20,30 MB the weighted delays are 8.2,6.4,4.6 ms. The target threshold is miss probability below 0.555…, not hit probability below that number. Since cache sizes are discrete multiples of 10 MB, interpolation to a value between 20 and 30 is not an allowed answer. The stipulated negligible lookup cost avoids charging a cache read again on each miss.

Original paper, page 41 · Answer key