Skip to content
zarza zarza

How to Set Resource Limits with Control Groups v2

26/07/2026 7 min Temporada 3 Episodio 131

Listen "How to Set Resource Limits with Control Groups v2"

Episode Synopsis

In this episode of Linux Server Admin, Lucas and Luna dive into cgroups v2, the modern kernel feature for limiting CPU and memory usage of processes. They explain why traditional tools like nice and ulimit fall short, and demonstrate how to use systemd's drop-in files to apply resource constraints to any service. Using a real-world example of a memory-hungry database process, they show how to set MemoryMax, CPUQuota, and IOWeight, and how to verify limits with systemd-cgtop. The episode also covers pitfalls like forgetting to set Delegate=true for custom cgroup hierarchies, and how cgroups v2 integrates with container runtimes like Podman. Practical, battle-tested advice for sysadmins managing shared or high-density servers.

#ControlGroups #cgroupsv2 #LinuxServer #Systemd #ResourceLimits #CPUQuota #MemoryMax #Sysadmin #ServerAdmin #LinuxKernel #Podman #ContainerLimits #Technology #LinuxAdmin #Bash #SystemdDropIn #FexingoBusiness #BusinessPodcast

Keep every episode free: buymeacoffee.com/fexingo

ZARZA Studio — Your station on air today: library, music clock, schedule, studio and reports, from the browser.

Meet ZARZA Studio
on air now stations in the catalogue 1,827,688 podcasts countries