You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: t3 service protect, install and update silently stop systemd-oomd from watching the user manager (systemd/systemd#43174) #41477
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
On a Linux host where systemd-oomd is running and the user manager has a memory-pressure policy (Ubuntu ships one in /usr/lib/systemd/system/[email protected]/10-oomd-user-service-defaults.conf: ManagedOOMMemoryPressure=kill, limit 50%):
oomctl lists /user.slice/user-1000.slice/[email protected] under "Memory Pressure Monitored CGroups".
Run systemctl --user daemon-reload. T3 runs this command in:
t3 service protect, as its last step: reloadUserManager in serviceProtection.ts:213-216, called at the end of applyProtection and twice in removeProtection;
Run oomctl again. [email protected] is gone from the list, and it stays gone until systemctl restart systemd-oomd.
Expected behavior
After t3 service protect, install or update, systemd-oomd still watches the user manager, as it did before.
Actual behavior
systemd-oomd silently stops watching user@<uid>.service. Nothing is logged. This is systemd/systemd#43174 (open). Units that the user manager itself reports to oomd survive the reload. user@<uid>.service is reported by PID 1, which doesn't send it again.
On hosts that rely on oomd's per-user memory-pressure kill, a runaway agent is then no longer stopped by oomd. The kernel OOM killer and MemoryMax still apply.
We reproduced the systemd behaviour with a manual systemctl --user daemon-reload (output below). We haven't run t3 service protect on this host: it needs sudo, which this account doesn't have.
Environment
Ubuntu 24.04 on WSL2, systemd 255 (255.4-1ubuntu8.19), systemd-oomd from the same package set.
Activity