Singleton: system-wide page deduplication in virtual environments
Proceedings of the 21st international symposium on High-Performance Parallel and Distributed Computing
An empirical study of memory sharing in virtual machines
USENIX ATC'12 Proceedings of the 2012 USENIX conference on Annual Technical Conference
XLH: more effective memory deduplication scanners through cross-layer hints
USENIX ATC'13 Proceedings of the 2013 USENIX conference on Annual Technical Conference
CMD: classification-based memory deduplication through page access characteristics
Proceedings of the 10th ACM SIGPLAN/SIGOPS international conference on Virtual execution environments
Hi-index | 0.00 |
Server consolidation presents numerous opportunities for sharing memory between virtual machines. To intelligently share RAM across VMs, modern hyper visors use a technique called content-based page sharing (CBPS), in which duplicate copies of a page resident on a host are detected and a single copy of the page is shared, thereby reducing the memory footprint of resident VMs. One widely used implementation of content-based page sharing is kernel same page merging (KSM). In this paper, we conduct empirical study on the effectiveness of KSM on various kinds of workload through extensive experiments. We classify memory sharing into two classes: static sharing for memory sharing after launching the VM and before executing the application, and dynamic sharing for memory sharing during the execution of the application. We found that KSM achieves very effective static memory sharing for various workload, evidenced by its ability to consolidate 50 Windows VMs on one physical machine. KSM achieves most significant memory saving for mixed CPU and I/O workload. For CPU-bound applications, the effect of KSM on dynamic memory sharing is not as significant and it also causes higher runtime overhead. For I/O-bound applications, dynamic memory sharing reduces memory use by around 50% with very little runtime overhead. Furthermore, KSM has more significant effect on Windows based VMs than on Linux based VMs.