CS FundamentalsVery hardGATE CS
Average process size s = 1 MB and each page-table entry is e = 8 bytes. Using the classic overhead model s·e/p + p/2 (page-table space plus half a page of internal fragmentation), what page size minimises the overhead?
- A. 2 KB
- B. 8 KB
- C. 4 KB
- D. 1 KB
Correct answer: C. 4 KB
Differentiate: −s·e/p² + 1/2 = 0, so p = √(2se) = √(2 × 2²⁰ × 8) = √(2²⁴) = 2¹² = 4096 bytes = 4 KB.
More Operating Systems questions
- int A[128][128] (4-byte ints) is stored row-major in pages of 512 bytes; the array starts on a page boundary and the process has only 2…
- Same array int A[128][128], one row per 512-byte page, 2 frames (LRU), but the loop is for i in 0..127: for j in 0..127: A[i][j] = 0;. How…
- A TLB has 128 entries and pages are 4 KB. A process's working set is 2 MB and is accessed uniformly at random. Approximately what fraction…
- A system uses segmentation with paging: a 32-bit logical address has a 4-bit segment number, and each segment is paged with 4 KB pages and…
- A machine has 2 GB of physical memory with 8 KB frames, uses 48-bit virtual addresses, and an inverted page table with 16-byte entries…
- Reference string (times 1 to 20): 2, 6, 1, 5, 7, 7, 7, 7, 5, 1, 6, 2, 3, 4, 1, 2, 3, 4, 4, 4. With window Δ = 5, what is the working-set…