CS FundamentalsVery hardGATE CS (PYQ pattern)
Memory access takes 200 ns. A page fault takes 8 ms if the victim page is clean and 20 ms if it must first be written back; 60% of victim pages are dirty. What is the largest page-fault rate (faults per reference) for which the effective access time is at most 400 ns?
- A. about 1.3 x 10^-5
- B. about 2.5 x 10^-5
- C. about 1.0 x 10^-5
- D. about 1.3 x 10^-6
Correct answer: A. about 1.3 x 10^-5
Average service time = 0.6 x 20 + 0.4 x 8 = 15.2 ms. EAT = 200 + p(15.2 x 10^6 - 200) <= 400 gives p <= 200 / 15.2 x 10^6 = 1.3 x 10^-5. 2.5 x 10^-5 would come from the 8 ms clean-page time only.
More Operating Systems questions
- Free memory consists of three holes (start, size in KB): (0, 300), (400, 200), (700, 500); everything else is allocated. Operations in…
- On a Unix file system with an empty directory /tmp/x (call it X), these commands run: mkdir X/a; mkdir X/a/b; mkdir X/a/c; touch X/a/f; ln…
- A process has 4 threads on a single CPU. Each thread computes for 10 ms, makes a blocking disk read that takes 30 ms, then computes for…
- A 4-level x86-64 style page table maps 4 KB pages through all four levels, 2 MB pages with the third-level entry as the leaf and 1 GB…
- A data TLB has 64 entries and the OS backs a 1.5 GB array with 2 MB pages. A program accesses array elements uniformly at random and…
- Reference string: 8, 6, 5, 3, 3, 1, 6, 8, 2, 6, 1, 7, 3, 8, 7, 3, 3, 4, 1, 2, 3, 2, 7, 2, 5, 4, 4, 7, 2, 5. What is the smallest number of…