CS FundamentalsModerateGATE CS (PYQ pattern)
A system with a single-level page table has a TLB (lookup 10 ns, done before every access, hit ratio 90%) and a 100 ns memory; a TLB miss costs one extra memory access for the page-table entry. A page fault adds 8 ms if the victim is clean and 20 ms if it is dirty, and 30% of victims are dirty. What is the largest page-fault rate (faults per reference) that keeps the effective access time within 20% of the fault-free effective access time?
- A. about 2.07 x 10^-6
- B. about 3.00 x 10^-6
- C. about 1.20 x 10^-6
- D. about 1.72 x 10^-6
Correct answer: A. about 2.07 x 10^-6
Fault-free EAT = 10 + 100 + 0.1 x 100 = 120 ns, so faults may add 24 ns. Mean fault cost = 0.7 x 8 + 0.3 x 20 = 11.6 ms = 1.16 x 10^7 ns, so p <= 24 / 1.16 x 10^7 = 2.07 x 10^-6. Using only the clean cost gives 3.0 x 10^-6, only the dirty cost 1.2 x 10^-6, and taking 20% of the bare 100 ns memory time gives 1.72 x 10^-6.
More Operating Systems questions
- Shared integer x = 1. Thread T1 executes x = x + 1; x = x + 1; and thread T2 executes x = x 2;. Each statement is compiled to a LOAD into…
- Semaphores a = 1, b = 0, c = 0. Four processes each run once: P1: wait(a); print 1; signal(b); signal(c). P2: wait(b); print 2; signal(a)…
- Round Robin with quantum 4 ms. Processes (arrival, burst) in ms: P1 (0, 7), P2 (1, 4), P3 (2, 9), P4 (3, 5), P5 (16, 3). A process that…
- Periodic tasks (execution time, period = deadline): T1 (2, 5), T2 (4, 7). Which statement is correct?
- Three periodic tasks (execution time, period = deadline) are given: A (1, 4), B (2, 6), C (3, 12). Which statement is correct?
- A system has R identical units of one resource. Four processes need at most 3, 4, 2 and 5 units. Each process requests units TWO at a time…