ABSTRACT
Modern applications running on cloud data centers often consume a large amount of memory and their memory demands can vary during execution. Dynamic memory allocation is a necessity for high memory utilization. For a large dataset application, using hugepages instead of regular 4KB pages can efficiently reduce memory access and memory management overhead and improve overall performance. Virtualization, which is widely applied in data centers for server consolidation, brings new challenges to manage memory dynamically and effectively, especially for hugepages. In a virtualized system, ballooning is a popular mechanism used to dynamically adjust memory allocations for co-located virtual machines. We observe that the current Linux Kernel-Based Virtual Machine (KVM) does not support huge page ballooning. An application that can benefit from hugepages often loses its performance advantage when the guest OS experiences memory ballooning. This paper presents design and implementation of HUB, a HUgepage Ballooning mechanism in KVM which can dispatch memory in the granularity of hugepages. The experimental results show that our approach significantly reduces TLB misses and improves the overall performance for those applications with large memory demand.
- Arkaprava Basu, Jayneel Gandhi, Jichuan Chang, Mark D. Hill, and Michael M. Swift. Efficient virtual memory for big memory servers. In Proceedings of the 40th Annual International Symposium on Computer Architecture, pages 237--248, Tel-Aviv, Israel, 2013. ACM. Google Scholar
Digital Library
- Xiaolin Wang, Taowei Luo, Jingyuan Hu, Zhenlin Wang, and Yingwei Luo. Evaluating the impacts of hugepage on virtual machines. Science China Information Sciences, 60(1):012103, 2017.Google Scholar
Cross Ref
- Andrea Arcangeli. Transparent hugepage support. In KVM forum, volume 9, 2010.Google Scholar
- Aditya Sanjay Gadre, Kaustubh Kabra, Ashwin Vasani, and Keshav Darak. X-xen: huge page support in xen. In Proceeding of the Ottawa Linux Symposium, volume 1, pages 7--12, Ottawa, Canada, 2011.Google Scholar
- Barham Paul, Dragovic Boris, Fraser Keir, and Hand Steven et al. Xen and the art of virtualization. In ACM SIGOPS Operating Systems Review - SOSP '03, volume 37, pages 164--177. ACM, 2003. Google Scholar
Digital Library
- Carl A Waldspurger. Memory resource management in vmware esx server. In Proceedings of the 5th Symposium on Operating Systems Design and Implementation, volume 36, pages 181--194, Boston, Massachusetts, USA, 2002. ACM. Google Scholar
Digital Library
- Qt - complete software development framework. https://https://www.qt.io/, 2018.Google Scholar
- Speccpu 2017. https://www.spec.org/cpu2017/index.html/, 2017.Google Scholar
- Cloudsuite. http://cloudsuite.ch/, 2018.Google Scholar
- Roman Dementiev Thomas Willhalm and Patrick Fay. Intel performance counter monitor - a better way to measure cpu utilization, 2012.Google Scholar
- Narayanan Ganapathy and Curt Schimmel. General purpose operating system support for multiple page sizes. In USENIX Annual Technical Conference, number 98, pages 91--104, New Orleans, Louisiana, USA, 1998. USENIX. Google Scholar
Digital Library
- Juan Navarro, Sitararn Iyer, Peter Druschel, and Alan Cox. Practical, transparent operating system support for superpages. ACM SIGOPS Operating Systems Review - OSDI '02, 36:89--104, 2002. Google Scholar
Digital Library
- Hongjiu Lu, Rohit Seth, Kshitij Doshi, and Jantz Tran. Using hugetlbfs for mapping application text regions. In Proceedings of the Ottawa Linux Symposium, volume 2, pages 75--82, Ottawa, Canada, 2006.Google Scholar
- Theodore H Romer, Wayne H Ohlrich, Anna R Karlin, and Brian N Bershad. Reducing tlb and memory overhead using online superpage promotion. In ACM SIGARCH Computer Architecture News, volume 23, pages 176--187, Santa Margherita Ligure, Italy, 1995. Google Scholar
Digital Library
- Taowei Luo, Xiaolin Wang, Jingyuan Hu, Yingwei Luo, and Zhenlin Wang. Improving tlb performance by increasing hugepage ratio. In Proceedings of the 15th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing, pages 1139--1142, Shenzhen, China, 2015. IEEE.Google Scholar
Digital Library
- Youngjin Kwon, Hangchen Yu, Simon Peter, Christopher J Rossbach, and Emmett Witchel. Coordinated and efficient huge page management with ingens. In Proceedings of the 12th USENIX conference on Operating Systems Design and Implementation, volume 16, pages 705--721, Savannah, GA, USA, 2016. USENIX. Google Scholar
Digital Library
- Misel-Myrto Papadopoulou, Xin Tong, André Seznec, and Andreas Moshovos. Prediction-based superpage-friendly tlb designs. In the 21st International Symposium on High Performance Computer Architecture, pages 210--222, Burlingame, CA, USA, 2015. IEEE.Google Scholar
Cross Ref
- Yu Du, Miao Zhou, Bruce R Childers, Daniel Mossé, and Rami Melhem. Supporting superpages in non-contiguous physical memory. In the 21st International Symposium on High Performance Computer Architecture, pages 223--234, Burlingame, CA, USA, 2015. IEEE.Google Scholar
Cross Ref
- Ashley Saulsbury, Fredrik Dahlgren, and Per Stenström. Recency-based tlb preloading. In Proceedings of the 27th annual international symposium on Computer architecture, volume 28, pages 117--127, Vancouver, BC, Canada, 2000. ACM. Google Scholar
Digital Library
- Gokul B Kandiraju and Anand Sivasubramaniam. Going the distance for tlb prefetching: an application-driven study. In Proceedings of the 29th annual international symposium on Computer architecture, volume 30, page 195, Anchorage, AK, USA, 2002. IEEE. Google Scholar
Digital Library
- Binh Pham, Jan Vesely, Gabriel H Loh, and Abhishek Bhattacharjee. Using tlb speculation to overcome page splintering in virtual machines. Technical report, Rutgers Technical Report DCS-TR-713, 2015.Google Scholar
- Jayneel Gandhi, Mark D Hill, and Michael M Swift. Agile paging: exceeding the best of nested and shadow paging. In Proceedings of the 21st International Symposium on High Performance Computer Architecture, volume 44, pages 707--718, Seoul, South Korea, 2016. IEEE. Google Scholar
Digital Library
- Xiaotao Chang, Hubertus Franke, Yi Ge, Tao Liu, Kun Wang, Jimi Xenidis, Fei Chen, and Yu Zhang. Improving virtualization in the presence of software managed translation lookaside buffers. In ACM SIGARCH Computer Architecture News, volume 41, pages 120--129. ACM, 2013. Google Scholar
Digital Library
- Joel H Schopp, Keir Fraser, and Martine J Silbermann. Resizing memory with balloons and hotplug. In Proceedings of the Ottawa Linux Symposium, volume 2, pages 313--319, Ottawa, Canada, 2006.Google Scholar
- Haikun Liu, Hai Jin, Xiaofei Liao, Wei Deng, Bingsheng He, and Cheng-zhong Xu. Hotplug or ballooning: A comparative study on dynamic memory management techniques for virtual machines. IEEE Transactions on parallel and distributed systems, 26:1350--1363, 2015.Google Scholar
Cross Ref
Recommendations
Hotplug or Ballooning: A Comparative Study on Dynamic Memory Management Techniques for Virtual Machines
In virtualization environments, static memory allocation for virtual machines (VMs) can lead to severe service level agreement (SLA) violations or inefficient use of memory. Dynamic memory allocation mechanisms such as ballooning and memory hotplug were ...
Optimizing guest swapping using elastic and transparent memory provisioning on virtualization platform
On virtualization platforms, peak memory demand caused by hotspot applications often triggers page swapping in guest OS, causing performance degradation inside and outside of this virtual machine (VM). Even though host holds sufficient memory pages, ...
Dynamic Memory Pressure Aware Ballooning
Hardware virtualization is a major component of large scale server and data center deployments due to their facilitation of server consolidation and scalability. Virtualization, however, comes at a high cost in terms of system main memory utilization. ...





Comments