skip to main content
10.1145/3492323.3500867acmconferencesArticle/Chapter ViewAbstractPublication PagesuccConference Proceedingsconference-collections
research-article

Memory hot-zone and its application to accelerate the convergence of KSM for VM consolidation

Published:07 February 2022Publication History

ABSTRACT

Memory deduplication, which detects and removes redundant memory pages, can efficiently increase the efficiency of memory usage. It is often used with virtualization technologies, such as virtual machines (VMs), to improve their memory utilization. However, current memory deduplication systems, such as KSM (Kernel Samepage Merging), suffer the problem of either slow convergence or high CPU usage. In this paper, we proposed an algorithm, called hotscan, to accelerate the convergence of KSM for VM consolidation. We have observed that the pages have higher chance to be merged among different VMs are clustered in certain memory regions, called memory hot-zone. Based on this observation, hot-scan changes the scanning rule of KSM to check the pages in hot-zones of all VMs first. A novel data structure, called transpose list, is proposed to efficiently carry out the new scanning pattern. Experiments show that our method can accelerate the speed of deduplication 20% to 30% faster than the vanilla KSM without consuming too much additional CPU resource.

References

  1. Andrea Arcangeli, IzikEidus, and Chris Wright. 2009. Increasing memory density by using KSM. In In OLS.Google ScholarGoogle Scholar
  2. Sean Barker, Timothy Wood, Prashant Shenoy, and Ramesh Sitaraman. 2012. An Empirical Study of Memory Sharing in Virtual Machines. In Presented as part of the 2012 USENIX Annual Technical Conference (USENIX ATC 12). USENIX, Boston, MA, 273--284.Google ScholarGoogle Scholar
  3. C. R. Chang, J. J. Wu, and P. Liu. 2011. An Empirical Study on Memory Sharing of Virtual Machines for Server Consolidation. In 2011 IEEE Ninth International Symposium on Parallel and Distributed Processing with Applications. 244--249.Google ScholarGoogle Scholar
  4. Licheng Chen, Zhipeng Wei, Zehan Cui, Mingyu Chen, Haiyang Pan, and Yungang Bao. 2014. CMD: classification-based memory deduplication through page access characteristics. In ACM SIGPLAN Notices, Vol. 49. ACM, 65--76.Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Yan Deng, Chunming Hu, Tianyu Wo, Bo Li, and Lei Cui. 2013. A memory deduplication approach based on group in virtualized environments. In Service Oriented System Engineering (SOSE), 2013 IEEE 7th International Symposium on. IEEE, 367--372.Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Djellel Eddine Difallah, Andrew Pavlo, Carlo Curino, and Philippe Cudre-Mauroux. 2013. OLTP-Bench: An Extensible Testbed for Benchmarking Relational Databases. Proc. VLDB Endow. 7, 4 (Dec. 2013), 277--288. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Konrad Miller, Fabian Franz, Marc Rittinghaus, Marius Hillenbrand, and Frank Bellosa. 2013. XLH: More Effective Memory Deduplication Scanners Through Cross-layer Hints.. In USENIX Annual Technical Conference. 279--290.Google ScholarGoogle Scholar
  8. Yeji Nam, Dongwoo Lee, and Young Ik Eom. 2015. SELF: Improving the Memory-Sharing Opportunity using Virtual-Machine Self-Hints in Virtualized Systems. In Proceedings of the 6th Asia-Pacific Workshop on Systems. ACM, 10.Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. T Veni and S Bhanu. 2016. MDedup++: Exploiting Temporal and Spatial Page-Sharing Behaviors for Memory Deduplication Enhancement. Comput. J. 59, 3 (2016), 353--370.Google ScholarGoogle ScholarCross RefCross Ref
  10. Nai Xia, Chen Tian, Yan Luo, Hang Liu, and Xiaoliang Wang. 2018. UKSM: Swift Memory Deduplication via Hierarchical and Adaptive Memory Region Distilling. In 16th USENIX Conference on File and Storage Technologies (FAST 18). USENIX Association, Oakland, CA, 325--340.Google ScholarGoogle Scholar

Index Terms

  1. Memory hot-zone and its application to accelerate the convergence of KSM for VM consolidation

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Conferences
    UCC '21: Proceedings of the 14th IEEE/ACM International Conference on Utility and Cloud Computing Companion
    December 2021
    256 pages
    ISBN:9781450391634
    DOI:10.1145/3492323

    Copyright © 2021 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 7 February 2022

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • research-article

    Acceptance Rates

    Overall Acceptance Rate38of125submissions,30%
  • Article Metrics

    • Downloads (Last 12 months)17
    • Downloads (Last 6 weeks)1

    Other Metrics

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader