Virtualization technology can reduce the total cost of ownership by sharing resources with respect to the resource demand of each guest. Therefore, an efficient resource sharing mechanism is important for a virtual machine monitor (VMM). We introduce a hardware assisted dynamic memory balancing mechanism that balances memory among guests. Our proposed scheme estimates memory demand for each guest and periodically re-balances memory allocation based on this estimation. In order to estimate working set size (WSS), we use least recently used (LRU) histogram as a prediction model. Construction of LRU histogram is performed in a guest transparent way by using hardware memory management unit (MMU) virtualization support. Our experiments show that the proposed scheme accurately estimates the WSS with low overhead. They also show that it substantially improves performance over static memory allocation.
[1]
Yingwei Luo,et al.
Dynamic memory balancing for virtual machines
,
2009,
ACM SIGOPS Oper. Syst. Rev..
[2]
Andrea C. Arpaci-Dusseau,et al.
Geiger: monitoring the buffer cache in a virtual machine environment
,
2006,
ASPLOS XII.
[3]
Irving L. Traiger,et al.
Evaluation Techniques for Storage Hierarchies
,
1970,
IBM Syst. J..
[4]
Kai Shen,et al.
Virtual Machine Memory Access Tracing with Hypervisor Exclusive Cache
,
2007,
USENIX Annual Technical Conference.
[5]
Carl A. Waldspurger,et al.
Memory resource management in VMware ESX server
,
2002,
OSDI '02.