CS FundamentalsHardGATE CS

A machine has 32 GB of physical memory, 4 KB frames and an inverted page table with 8-byte entries. How big is the table, and why is a hash table usually added?

  1. A. 64 MB per process; the hash speeds up context switches
  2. B. 8 MB for the whole system; the hash stores the frame numbers
  3. C. 32 MB for the whole system; the hash replaces the TLB
  4. D. 64 MB for the whole system; without a hash, finding (pid, page) would mean searching all entries

Correct answer: D. 64 MB for the whole system; without a hash, finding (pid, page) would mean searching all entries

There is one entry per frame: 2³⁵ / 2¹² = 2²³ entries × 8 bytes = 64 MB, shared by all processes. Because the table is indexed by frame, a lookup by (pid, virtual page) needs a hash on that pair to avoid a linear search.

More Operating Systems questions

Exams that ask this topic