Definition

KSM (kernel samepage merging)

Contributor(s): Nick Martin

KSM (kernel samepage merging) is a Linux kernel feature that allows the KVM hypervisor to share identical memory pages among different process or virtual machines on the same server.

A KVM host often contains several virtual machines that use memory pages containing the same content (such as operating system information). With KSM, those memory pages are identified and then merged to one location. In this sense, KSM is similar to data deduplication for memory.

KSM enables a more efficient use of available memory, potentially allowing a server to run more processes than would be possible if KSM was not used. For example, under the right circumstances, KSM could allow a virtualization host with 16 GB of memory to host more than 16 virtual machines with 1 GB of memory each. This level of overcommitment is possible because virtual machines on the same host often share many duplicate memory pages.

KSM isn’t recommended for every scenario. Although KSM improves memory efficiency, it requires more CPU resources to identify duplicate pages and monitoring those pages to ensure their data doesn’t deviate.

This was last updated in December 2014

Continue Reading About KSM (kernel samepage merging)

Dig Deeper on Open source virtualization

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

File Extensions and File Formats

SearchVMware

SearchWindowsServer

SearchCloudComputing

SearchVirtualDesktop

SearchDataCenter

Close