Check out the new USENIX Web site. next up previous
Next: 4.2 Content-Based Page Sharing Up: 4 Sharing Memory Previous: 4 Sharing Memory

4.1 Transparent Page Sharing

Disco [3] introduced transparent page sharing as a method for eliminating redundant copies of pages, such as code or read-only data, across virtual machines. Once copies are identified, multiple guest ``physical'' pages are mapped to the same machine page, and marked copy-on-write. Writing to a shared page causes a fault that generates a private copy.

Unfortunately, Disco required several guest OS modifications to identify redundant copies as they were created. For example, the bcopy() routine was hooked to enable file buffer cache sharing across virtual machines. Some sharing also required the use of non-standard or restricted interfaces. A special network interface with support for large packets facilitated sharing data communicated between VMs on a virtual subnet. Interposition on disk accesses allowed data from shared, non-persistent disks to be shared across multiple guests.



Carl Waldspurger, OSDI '02