Commit 9d300ee
fix(systemd): use ManagedOOMMemoryPressureLimit=100% for oomd exemption
The previous ManagedOOMPreference=omit directive requires systemd >=250
(Ubuntu 24.04+). The deploy host runs Ubuntu 22.04 / systemd 249, where
omit is silently ignored and the alternate mechanism (=auto on the
ancestor user@ service) crashes user@<UID>.service with 219/CGROUP on
startup.
ManagedOOMMemoryPressureLimit=100% on this unit works on 249: when oomd
evaluates kill candidates inside the user slice, the worker's own PSI
is compared against 100% and never qualifies. The user slice still has
its distro-default 50% PSI threshold that triggers oomd; we just opt
the worker out of being chosen as the victim.
Drop the now-noop ManagedOOMPreference=omit; the host is not slated for
upgrade.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2711e4c commit 9d300ee
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
25 | 39 | | |
26 | 40 | | |
27 | 41 | | |
| |||
0 commit comments