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

How Linux Handles Memory Fragmentation on Production Servers


Listen Later

Episode 36 of The Linux Podcast dives into memory fragmentation, a silent performance killer on long-running Linux servers. Lucas explains how the kernel's buddy allocator causes external fragmentation over time, and how newer features like THP compaction, proactive compaction via khugepaged, and the 'compact_memory' sysfs interface help. Luna shares a real-world case where a Redis instance on a 128GB machine saw 40% tail latency spikes due to fragmentation. They discuss practical monitoring with /proc/pagetypeinfo, when to trigger compaction manually, and why some workloads benefit from transparent huge pages while others should disable them. No theory without application: listeners will learn one command to check their server's fragmentation level today.

#Linux #MemoryManagement #Fragmentation #Kernel #BuddyAllocator #TransparentHugePages #THP #ProactiveCompaction #khugepaged #Redis #SysAdmin #Performance #ServerOptimization #Technology #FexingoBusiness #BusinessPodcast #OpenSource #Systems

Keep every episode free: buymeacoffee.com/fexingo

...more
View all episodesView all episodes
Download on the App Store

The Linux Podcast with Fexingo: Open Source Operating Systems, Distros, and Server StackBy Fexingo