November 3, 2025
Learn to control Linux's Out-of-Memory (OOM) killer behavior using systemd. This guide explores `OOMScoreAdjust` and `OOMPolicy` directives to protect critical services by influencing which processes get terminated during low-memory conditions. Master systemd's OOM tuning for enhanced system stability and resilience.
Safely identify, stop, disable, and mask unneeded systemd services, sockets, and timers without breaking your Linux host.
Configure systemd journal size and retention limits with `journald.conf`, `journalctl`, and safe log cleanup commands.
Use systemd cgroups, slices, and unit properties to limit CPU, memory, and I/O without editing raw cgroup files.
Use systemd-analyze, critical-chain, and unit dependency cleanup to find and fix slow Linux boot paths.