Files
agent-mkosi/mkosi.extra/usr/lib/systemd/system/user.slice.d/50-oomd.conf
T
2026-11-15 15:52:10 +01:00

8 lines
385 B
Plaintext

# systemd-oomd for Claude and its containers: when they run the VM out of memory, kill the cgroup
# responsible before the VM thrashes on zram swap or the kernel's OOM killer picks sshd.
[Slice]
# Memory pressure above 60% for 30s: kill the cgroup reclaiming the most memory.
ManagedOOMMemoryPressure=kill
# Swap over 90% full: kill the cgroup using the most swap.
ManagedOOMSwap=kill