World Library  
Flag as Inappropriate
Email this Article

Kernel same-page merging

Article Id: WHEBN0028462006
Reproduction Date:

Title: Kernel same-page merging  
Author: World Heritage Encyclopedia
Language: English
Subject: Linux kernel, Mm tree, IP Virtual Server, Linux PAM, Michael Kerrisk
Collection: Computer Memory, Linux Kernel Features
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Kernel same-page merging

Kernel SamePage Merging (KSM) (also: Kernel Shared Memory, Memory Merging) lets the hypervisor system share identical memory pages amongst different processes or virtualized guests. While not directly linked, KVM can use KSM to merge pages of Virtual machines.

This is done by scanning through the memory finding duplicate pages. The duplicate pair is then merged into a single page, and mapped into both original locations. The page is also marked as "copy-on-write", so the kernel will automatically separate them again should one process modify its data.[1]

KSM was originally intended to run more [3] An experimental implementation of KSM by Red Hat found that 52 virtual instances of Windows XP with 1GB of memory, could run on a host computer that had only 16GB of RAM.[4]

KSM first appeared in [3] A concern is that although memory usage is reduced, CPU usage is increased, thus negating potential increases in performance.[1] Another concern is that KSM may pose security risks.[5]

References

  1. ^ a b "KSM tries again". lwn.net. kernel.org. Retrieved 2010-08-21. 
  2. ^ a b "Anatomy of Linux Kernel Shared Memory". IBM DeveloperWorks. IBM. Retrieved 2010-08-21. 
  3. ^ a b "Increasing memory density by using KSM". kernel.org. kernel.org. Retrieved 2010-08-21. 
  4. ^ "Kernel Samepage Merging (memory deduplication)". kernelnewbies. kernelnewbies. Retrieved 2010-08-21. 
  5. ^ Kuniyasu Suzaki, Kengo Iijima, Toshiki Yagi, Cyrille Artho. "Memory Deduplication as a Threat to the Guest OS". 

External links

  • Using KSM
  • Fedora KSM page
  • Kernel-based virtual machine site - KSM
  • Detail Overview of the KSM merging process
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.