CS FundamentalsHardGATE CS · Advanced
A process uses 100 MiB of memory. A page-table entry is 8 bytes, and on average half of the last page is wasted. Among page sizes that are powers of two, which size gives the smallest total of page-table space plus internal fragmentation?
- A. 16 KB
- B. 32 KB
- C. 64 KB
- D. 4 KB
Correct answer: B. 32 KB
Overhead = s e / p + p / 2 is minimised near p = sqrt(2 s e) = 40960 bytes; comparing the neighbouring powers of two: 4 KB: 206848, 8 KB: 106496, 16 KB: 59392, 32 KB: 41984, 64 KB: 45568.
More Operating Systems questions
- The aging algorithm keeps an 8-bit counter per page for pages 0-3. At the end of every clock tick each counter is shifted right by one bit…
- A file system has 1 KB blocks and 4-byte block pointers; the inode (already in memory) holds 12 direct pointers and one single-, one…
- Three periodic tasks (C, T) with deadline equal to period, all released at t = 0, are: (1, 4), (4, 9), (4, 15). Their total utilisation is…
- Four processes with CPU bursts 5, 3, 8 and 2 ms arrive at time 0 in that order and are scheduled by FCFS. What is the average waiting time?
- Processes with bursts 6, 8, 7 and 3 ms all arrive at time 0 and are scheduled by non-preemptive SJF. What is the average waiting time?
- How many page faults occur under FIFO replacement with 3 frames (initially empty) for the reference string 2, 3, 2, 1, 5, 2, 4, 5, 3, 2…