Title :
An Empirical Study on Memory Sharing of Virtual Machines for Server Consolidation
Author :
Chang, Chao-Rui ; Wu, Jan-Jan ; Liu, Pangfeng
Author_Institution :
Acad. Sinica Dept. Comput. Sci. & Inf. Eng., Nat. Taiwan Univ., Taipei, Taiwan
Abstract :
Server consolidation presents numerous opportunities for sharing memory between virtual machines. To intelligently share RAM across VMs, modern hypervisors 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.
Keywords :
Linux; content-based retrieval; network servers; random-access storage; shared memory systems; virtual machines; CPU- bound application; I/O-bound application; KSM; Linux; RAM; Windows VM; content-based page sharing; dynamic memory sharing; kernel same page merging; memory footprint; memory saving; page resident; physical machine; server consolidation; static memory sharing; virtual machine; Kernel; Linux; Memory management; Random access memory; Runtime; Servers; Virtual machining; memory sharing; server consolidation; virtual machine;
Conference_Titel :
Parallel and Distributed Processing with Applications (ISPA), 2011 IEEE 9th International Symposium on
Conference_Location :
Busan
Print_ISBN :
978-1-4577-0391-1
Electronic_ISBN :
978-0-7695-4428-1
DOI :
10.1109/ISPA.2011.31