Skip to content
How Linux KSM Balances Memory in Virtualized Environments episode artwork

Jul 13, 2026 9 min

How Linux KSM Balances Memory in Virtualized Environments

from The Linux Podcast with Fexingo: Open Source Operating Systems, Distros, and Server Stack Hosted by Fexingo

In Episode 108 of The Linux Podcast with Fexingo, Lucas and Luna dive into Kernel Same-page Merging (KSM) — a memory-saving feature that deduplicates identical pages across virtual machines. They explain how KSM scans memory, merges pages, and shares them with copy-on-write semantics, all while balancing CPU overhead. The episode covers real-world impacts: a typical virtualized server running 10 identical VMs can save 30-50% memory using KSM. They discuss tuning parameters like pages_to_scan and sleep_millisecs, and highlight KSM's role in projects like QEMU/KVM and Kubernetes clusters. Lucas walks through a hypothetical deployment: 20 Ubuntu VMs with similar workloads, where KSM reduces memory from 80GB to under 50GB. Luna challenges the trade-offs — what about latency-sensitive apps? Lucas explains KSM's MADV_MERGEABLE hint and how to exclude critical processes. The episode ties to the broader push for efficiency in cloud data centers, where power and cooling costs drive innovation. #Linux #KSM #MemoryManagement #Virtualization #Kernel #QEMU #KVM #Deduplication #CloudComputing #DataCenter #Tuning #OpenSource #Technology #Podcast #Fexingo #FexingoBusiness #BusinessPodcast #SystemsAdmin Keep every episode free: buymeacoffee.com/fexingo

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

How Linux KSM Balances Memory in Virtualized Environments

0:00 9:20

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of The Linux Podcast with Fexingo: Open Source Operating Systems, Distros, and Server Stack?

This episode is 9 minutes long.

When was this The Linux Podcast with Fexingo: Open Source Operating Systems, Distros, and Server Stack episode published?

This episode was published on July 13, 2026.

Can I download this The Linux Podcast with Fexingo: Open Source Operating Systems, Distros, and Server Stack episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.