Systemd Tutorial: Memory Limiting (Linux)

Опубликовано: 15 Февраль 2026
на канале: LinuxCloudHacks
1,693
134

In this video, we dive deep into Linux memory management using systemd. We'll cover essential concepts like:

Understanding MemTotal, used, available, and free memory
The role of cache and buffers in performance
How swap works and its impact
Resident (RES) vs. Virtual (VIRT) memory
The Linux OOM Killer and how to avoid it
Using systemd's MemoryMax and MemoryHigh to control memory usage

Learn how to prevent system crashes and optimize performance by effectively managing memory resources. This tutorial is perfect for system administrators, DevOps engineers, and anyone looking to improve their Linux skills.

00:00 Introduction
00:40 Memory total, used and available
01:57 Cache
04:13 Memory free
05:36 Swap
06:44 Memory resident, virtual
09:21 Memory overcommitment
11:22 OOM Killer
13:04 SystemD memory max limit
16:53 SystemD memory high limit

#linux #systemd #memorymanagement #oomkiller #sysadmin #devops #tutorial #performanceoptimization #resourcecontrol

Check out our previous video on limiting CPU usage with systemd:
   • Systemd Tutorial: CPU Limiting with Servic...  

Commands
https://github.com/filip-lebiecki/sys...