Linux Server Admin with Fexingo: Sysadmin, Bash, and Server Engineering

How to Use Linux cgroups v2 for Server Resource Control


Listen Later

Episode 47 of Linux Server Admin with Fexingo dives into cgroups v2, the modern control group implementation that replaces the fragmented v1 system. Lucas and Luna walk through real server scenarios: limiting CPU shares for noisy neighbors on a shared web host, pinning memory for a critical database container, and configuring IO throttling for backup jobs. They explain how systemd integrates cgroups v2 by default on recent distros like Ubuntu 24.04 and RHEL 9, and show practical commands using systemctl and the cgroup filesystem. The episode includes a concrete example of isolating an Nginx worker from a runaway Python script, with step-by-step limits on cpu.max, memory.max, and io.max. Listeners learn why cgroups v2's single-hierarchy model simplifies delegation and avoids the edge cases that plagued v1. Perfect for sysadmins managing multi-tenant servers or container hosts.

#Linux #Sysadmin #CgroupsV2 #ResourceControl #ServerEngineering #Systemd #ContainerSecurity #PerformanceTuning #Ubuntu2404 #RHEL9 #CPUThrottling #MemoryLimits #IOLimits #Unix #OpenSource #DevOps #FexingoBusiness #BusinessPodcast

Keep every episode free: buymeacoffee.com/fexingo

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

Linux Server Admin with Fexingo: Sysadmin, Bash, and Server EngineeringBy Fexingo