CS FundamentalsVery hardGATE CS
A system's average process size is s = 1 MB and each page-table entry takes e = 8 bytes. Balancing page-table overhead (s·e / p) against internal fragmentation (p / 2), what page size p minimises the per-process overhead?
- A. 2 KB
- B. 8 KB
- C. 4 KB
- D. 1 KB
Correct answer: C. 4 KB
The overhead s·e/p + p/2 is minimised at p = √(2se) = √(2 × 2²⁰ × 8) = √2²⁴ = 4096 bytes. Larger pages waste more in the last page; smaller ones need longer page tables.
More Operating Systems questions
- What does this program print? (Assume fork() succeeds and the exec of echo succeeds.) c int main() { fork(); execlp("echo", "echo", "hi"…
- In a traditional Unix file system (such as ext2/ext4 without very large directories), directory /d contains 3 subdirectories and 5 regular…
- A process with umask 027 creates a regular file requesting mode 0666 and a directory requesting mode 0777. What permissions do they get?
- A process writes to a pipe whose read end has been closed by every process. What happens by default?
- A device raises 10,000 interrupts per second, and each interrupt costs 50 µs of CPU time to enter, service and return. What fraction of…
- A file is stored with linked allocation (each block holds a pointer to the next) and nothing is cached. How many disk reads does it take…