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
fix(install-machine): generated units lack systemd-oomd avoidance preference #7824
Generated Linux host-daemon systemd units omit ManagedOOMPreference=avoid. New installations therefore lack the preference to spare the bb unit when systemd-oomd selects a cgroup under memory pressure. The installer should include this preference for both user and system units.
Versions and environment
Source inspected on main at df9619d. Linux installations using systemd and systemd-oomd are affected by this policy gap. The implementation investigation used systemd 262. This report confirms the missing generated setting; an actual systemd-oomd kill was not reproduced.
Steps to reproduce
Inspect the generated unit template at the pinned revision:
git show df9619d8e8:apps/server/src/assets/install-machine.sh | sed -n '1172,1184p'
Expected vs actual
Actual service settings include:
Restart=always
RestartSec=2
OOMPolicy=continue
ManagedOOMPreference is absent. Expected: ManagedOOMPreference=avoid in the generated service section.
Investigation thread: thr_9gs4syx26b (Default OOM protection for bb server systemd unit).
Proposed fix: Default OOM avoidance for installed bb systemd units #7823. The implementation thread reports 54 passing installer tests and successful systemd-analyze unit verification on systemd 262. A live reinstall was not run because it would restart the daemon hosting active threads.
This preference does not guarantee immunity from OOM kills. User-owned cgroups retain systemd's limitation on honoring the preference for swap-triggered selection.
This change does not retrofit existing installations without rerunning the installer.
Root cause: The shared Linux unit template omits ManagedOOMPreference, leaving both user and system services without explicit oomd avoidance.
Verification: 54 existing installer tests pass; added generated-unit assertions fail in all three selected Linux cases in two clean trusted-main checkouts. No actual OOM kill was reproduced.
Activity
bb-slop-cop commentedon Nov 19, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilothost,confirmed-repro.ManagedOOMPreference, leaving both user and system services without explicit oomd avoidance.