Skip to content

fix(install-machine): generated units lack systemd-oomd avoidance preference #7824

Closed

Description

@smsunarto

Summary

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.

Evidence

  • Installer template.
  • 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.

What was ruled out

AGENT GENERATED

Activity

  1. added theissue type on Nov 19, 2026
  2. added
    host
    confirmed-repro
    on Nov 19, 2026
  3. bb-slop-cop commented on Nov 19, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reprohost

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions