CS FundamentalsVery hardGATE CS (PYQ pattern)
A 3-level paging system has a TLB (1 ns, hit ratio 95%) and a cache in front of memory (10 ns hit time, 90% hit ratio, and a miss costs 10 + 100 ns). Every memory reference, including each page-table read, goes through this cache with the same hit ratio. On a TLB miss the 3 levels are read and then the data. What is the effective access time?
- A. 23 ns
- B. 116 ns
- C. 24 ns
- D. 34 ns
Correct answer: C. 24 ns
Average memory reference = 0.9 x 10 + 0.1 x 110 = 20 ns. TLB hit: 1 + 20 = 21. TLB miss: 1 + 3 x 20 + 20 = 81. EAT = 0.95 x 21 + 0.05 x 81 = 24 ns.
More Operating Systems questions
- Segment table (base, limit in bytes): seg 0 = (1000, 400), seg 1 = (2400, 100), seg 2 = (3000, 250), seg 4 = (500, 60); segment 3 is not…
- A system uses LRU with 3 frames (initially empty). A dirty page is written back to disk only when it is evicted; a page is dirty if it was…
- LFU replacement with 3 frames (initially empty): the victim is the resident page with the smallest reference count since it was loaded…
- Working-set window Δ = 5 references: WS(t) is the set of distinct pages among the 5 most recent references up to and including time t…
- Semaphores x = 0, y = 0. P1: print a; signal(x); wait(y); print b. P2: wait(x); print c; signal(y); print d. P3: print e. All three start…
- A Unix file system uses 4 KB blocks, 4-byte pointers and inodes with 12 direct pointers, one single-, one double- and one triple-indirect…