CS FundamentalsHardGATE CS

Kernel same-page merging (KSM) / page deduplication scans for identical pages across VMs and maps them to one frame. What makes this safe when one VM later writes to a merged page?

  1. A. The merged frame is mapped read-only and copy-on-write, so a write faults and gives the writer a private copy
  2. B. Writes are blocked forever
  3. C. All VMs see the write
  4. D. The hypervisor encrypts the page

Correct answer: A. The merged frame is mapped read-only and copy-on-write, so a write faults and gives the writer a private copy

Deduplication relies on the same copy-on-write mechanism as fork(): sharing is transparent until a write breaks it.

More Operating Systems questions

Exams that ask this topic