CS FundamentalsVery hardGATE CS
TLB lookup 10 ns, memory access 100 ns, single-level page table, TLB hit ratio 90%. One in a million accesses causes a page fault; servicing it takes 6 ms if the victim is clean and 14 ms if dirty, and 30% of victims are dirty. Treating the page-fault cost as simply added for faulting accesses, what is the effective access time (nearest ns)?
- A. 126 ns
- B. 128 ns
- C. 120 ns
- D. 134 ns
Correct answer: B. 128 ns
Without faults: 0.9×110 + 0.1×210 = 120 ns. Average fault service = 0.7×6 + 0.3×14 = 8.4 ms. EAT ≈ 120 + 10⁻⁶ × 8.4×10⁶ ns = 120 + 8.4 ≈ 128 ns.
More Operating Systems questions
- A system has 62 free frames shared by two processes of sizes 10 pages and 127 pages, allocated proportionally to size (rounded down). How…
- A buddy system manages 512 KB, initially one free block. Requests arrive: A = 70 KB, B = 35 KB, C = 80 KB, then A is freed, then D = 60…
- Memory holes in address order: 100 KB, 500 KB, 200 KB, 300 KB, 600 KB. Requests in order: 212 KB, 417 KB, 112 KB, 426 KB (a hole that is…
- A virtual address is 0x00403A7C on a system with 4 KB pages and a two-level page table (10-bit outer index, 10-bit inner index, 12-bit…
- 32-bit addresses, 4 KB pages, 4-byte PTEs, two-level paging (10/10/12). A process uses only 8 MB of code at virtual address 0 and 4 MB of…
- A system has resource types A, B, C. Available = (2,1,0). Allocation: P0 (1,1,0), P1 (0,1,2), P2 (2,0,1), P3 (1,0,0). Max: P0 (3,2,2), P1…