{"title":"Memory hot-zone and its application to accelerate the convergence of KSM for VM consolidation","authors":"Chun-Yuan Huang, Der-Yu Tsai, Che-Rung Lee","doi":"10.1145/3492323.3500867","DOIUrl":null,"url":null,"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.","PeriodicalId":440884,"journal":{"name":"Proceedings of the 14th IEEE/ACM International Conference on Utility and Cloud Computing Companion","volume":"19 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-12-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 14th IEEE/ACM International Conference on Utility and Cloud Computing Companion","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3492323.3500867","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
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.