Compressed and shared swap to extend available memory in virtualized consumer electronics

Virtualization has recently been applied to consumer electronic (CE) devices such as smart TVs and smartphones. In these virtualized CE devices, memory is a valuable resource, because the virtual machines (VMs) on the devices must share the same physical memory. However, physical memory is usually partitioned and allocated to each VM. This partitioning technique may result in memory shortages, which can seriously degrade application performance. This paper proposes a new swap mechanism for virtualized CE devices with flash memory. This proposed mechanism reduces memory consumption by compressing and sharing unused pages. This swap mechanism stores the unused page in memory of another VM, to increase the available memory of the original VM. The proposed swap mechanism is implemented on the Xen hypervisor and Linux. The mechanism improves the application performance by up to 38% by significantly reducing the number of swap-out requests. The swap-out requests are reduced by up to 88% compared to previous swap mechanisms. Moreover, the mechanism reduces memory consumption of the swap area by up to 79%.

[1]  Jordi Torres,et al.  Improving Web Server Performance Through Main Memory Compression , 2008, 2008 14th IEEE International Conference on Parallel and Distributed Systems.

[2]  Hwanju Kim,et al.  Compressed memory swap for QoS of virtualized embedded systems , 2012, IEEE Transactions on Consumer Electronics.

[3]  Jong-Deok Choi,et al.  Fine-grained I/O access control based on xen virtualization for 3G/4G mobile devices , 2010, Design Automation Conference.

[4]  Lei Yang,et al.  Online memory compression for embedded systems , 2010, TECS.

[5]  Thomas R. Gross,et al.  Adaptive Main Memory Compression , 2005, USENIX Annual Technical Conference, General Track.

[6]  Sang-Bum Suh,et al.  Xen on ARM: System Virtualization Using Xen Hypervisor for ARM-Based Secure Mobile Phones , 2008, 2008 5th IEEE Consumer Communications and Networking Conference.

[7]  Young Ik Eom,et al.  Virtual memory partitioning for enhancing application performance in mobile platforms , 2013, IEEE Transactions on Consumer Electronics.

[8]  Chuck Yoo,et al.  Providing extra memory for virtual machines by sharing compressed swap pages , 2014, 2014 IEEE International Conference on Consumer Electronics (ICCE).

[9]  Steven Hand,et al.  Satori: Enlightened Page Sharing , 2009, USENIX Annual Technical Conference.

[10]  Joonwon Lee,et al.  Domain Level Page Sharing in Xen Virtual Machine Systems , 2007, APPT.

[11]  Gernot Heiser Hypervisors for Consumer Electronics , 2009, 2009 6th IEEE Consumer Communications and Networking Conference.

[12]  Carl A. Waldspurger,et al.  Memory resource management in VMware ESX server , 2002, OSDI '02.