CS FundamentalsVery hardGATE CS
A system has a TLB lookup of 20 ns, memory access of 100 ns, single-level paging and a TLB hit ratio of 90%, so a reference costs 130 ns on average without faults. Servicing a page fault takes 8 ms. To keep the slowdown from page faults under 10% (average at most 143 ns), at most about how often may a fault occur?
- A. Once per 615,000 references
- B. Once per 800,000 references
- C. Once per 61,500 references
- D. Once per 666,700 references
Correct answer: A. Once per 615,000 references
Need 130(1 − p) + 8 × 10⁶ p ≤ 143, so p ≤ 13 / (8 × 10⁶ − 130) ≈ 1/615,000. 800,000 uses 100 ns as the base, 666,700 uses the 120 ns hit time, and 61,500 misreads 8 ms as 8 × 10⁵ ns.
More Operating Systems questions
- A 40-bit virtual address space uses 8 KB pages and 8-byte page-table entries, and every page-table node at every level must fit in exactly…
- Banker's algorithm, resources (A, B, C). Allocation / Max: P0 (1,0,1) / (4,3,2), P1 (2,1,0) / (3,2,2), P2 (0,1,1) / (2,3,3), P3 (1,1,0) /…
- Deadlock detection, resources (A, B, C), Available = (1, 0, 0). Allocation / Request: P1 (0,1,0) / (1,0,0), P2 (1,0,1) / (0,2,0), P3…
- Four processes need at most 3, 4, 5 and 2 units of one resource type and request them one at a time in any order. What is the smallest…
- Semaphores s = 0 and t = 0. P1: print A; signal(s); wait(t); print B. P2: wait(s); print C; signal(t); wait(s); print D. P3: print E…
- How many processes exist at the end, including the original? (Every fork() succeeds.) c fork() && (fork() || fork()); fork();