How Linux Kernel Same-page Merging Saves Memory in Virtualized Environments
from The Linux Podcast with Fexingo: Open Source Operating Systems, Distros, and Server Stack Hosted by Fexingo
In this 100th episode, Lucas and Luna explore Kernel Same-page Merging (KSM), a memory-saving feature in Linux that deduplicates identical memory pages across virtual machines and applications. They break down how KSM works under the hood—scanning pages, merging them into a single copy-on-write page, and managing the trade-offs with CPU overhead. The hosts discuss real-world use cases like running hundreds of VMs on a single host, KSM's tuning parameters like pages_to_scan and sleep_millisecs, and its evolution in recent kernel versions. They also touch on KSM's cousin, UKSM, and alternatives like transparent hugepage defragmentation. A practical episode for anyone managing memory-constrained Linux systems. #Linux #KSM #KernelSamePageMerging #MemoryManagement #Virtualization #KVM #QEMU #OpenSource #LinuxKernel #Deduplication #MemorySaving #Hypervisor #TechDeepDive #FexingoBusiness #Technology #BusinessPodcast #LinuxPodcast #SystemAdministration Keep every episode free: buymeacoffee.com/fexingo
Embed this episode
No transcript yet.