Skip to content
Artwork for The Linux Podcast with Fexingo: Open Source Operating Systems, Distros, and Server Stack
The Linux Podcast with Fexingo: Open Source Operating Systems, Distros, and Server Stack · August 21 · 8 min

How Linux Kernel Memory Reclaim Keeps Servers Stable

In Episode 161, Lucas and Luna dive into Linux kernel memory reclaim — the behind-the-scenes mechanism that keeps servers from falling over when memory runs out. They explore how the kernel's reclaim algorithms decide which pages to evict, the role of cgroups and memory limits, and why tuning swappiness and vfs_cache_pressure matters for real-world workloads. Using a concrete example of a busy web server under memory pressure, they explain the difference between anonymous and file-backed pages, the function of kswapd and direct reclaim, and how modern kernels use memcg to reclaim memory per container. Lucas also walks through a practical scenario: a Redis cache on a memory-limited host, and what happens when the kernel starts reclaiming its pages. The episode closes with a forward-looking question about the future of reclaim with tiered memory systems. Perfect for Linux sysadmins, SREs, and anyone running containers in production. #Linux #Kernel #MemoryReclaim #cgroups #Kswapd #Swappiness #ContainerMemory #Sysadmin #SRE #Redis #WebServer #MemoryPressure #OpenSource #Technology #FexingoBusiness #BusinessPodcast #LinuxPodcast #ServerStability Keep every episode free: buymeacoffee.com/fexingo

0:00-8:31

transcript

No transcript — this publisher did not publish one.

show notes

In Episode 161, Lucas and Luna dive into Linux kernel memory reclaim — the behind-the-scenes mechanism that keeps servers from falling over when memory runs out. They explore how the kernel's reclaim algorithms decide which pages to evict, the role of cgroups and memory limits, and why tuning swappiness and vfs_cache_pressure matters for real-world workloads. Using a concrete example of a busy web server under memory pressure, they explain the difference between anonymous and file-backed pages, the function of kswapd and direct reclaim, and how modern kernels use memcg to reclaim memory per container. Lucas also walks through a practical scenario: a Redis cache on a memory-limited host, and what happens when the kernel starts reclaiming its pages. The episode closes with a forward-looking question about the future of reclaim with tiered memory systems. Perfect for Linux sysadmins, SREs, and anyone running containers in production.

#Linux #Kernel #MemoryReclaim #cgroups #Kswapd #Swappiness #ContainerMemory #Sysadmin #SRE #Redis #WebServer #MemoryPressure #OpenSource #Technology #FexingoBusiness #BusinessPodcast #LinuxPodcast #ServerStability

Keep every episode free: buymeacoffee.com/fexingo

links1