GATE Computer ScienceHardGATE CS
A process of size s = 4 MB runs under paging with a one-level page table in which each page-table entry occupies e = 8 bytes. The wasted memory per process is roughly (s/p)·e for the page table plus p/2 for internal fragmentation in the last page. Which page size p minimises this overhead?
- A. 16 KB
- B. 4 KB
- C. 2 KB
- D. 8 KB
Correct answer: D. 8 KB
Overhead(p) = s·e/p + p/2. Setting the derivative −s·e/p² + 1/2 to zero gives p = √(2·s·e) = √(2 · 2²² · 2³) = 2¹³ = 8192 bytes.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A RAID 5 array has 6 disks, each able to perform 120 random I/Os per second. A small random read costs 1 disk I/O and a small random write…
- A vector processor has one memory pipeline, one multiplier and one adder, 64-element vector registers and full chaining. Start-up…
- A virtualised x86-64-style system translates a guest virtual address using a 4-level guest page table and a 4-level nested (host) page…
- How many distinct IEEE 754 single-precision numbers x satisfy 0.5 ≤ x ≤ 4 (counting both endpoints)?
- A fully associative cache (or page frame pool) of k lines has to serve the reference string 6, 5, 5, 7, 4, 6, 5, 2, 2, 6, 5, 7, 3, 2, 4…
- A fully associative cache has 3 lines (one word each). The reference string 2, 3, 2, 1, 5, 2, 4, 5, 3, 2, 5, 2, 6, 1, 3, 6, 2, 5, 1, 4 is…