Skip to content

Keep a service's own lower OOM score - #12

Merged
noah-meierlabs merged 2 commits into
mainfrom
fix/oom-keep-lower
Nov 13, 2026
Merged

noah-meierlabs merged 2 commits into
mainfrom
fix/oom-keep-lower

Conversation

@noah-meierlabs

Copy link
Copy Markdown
Contributor

After 0.13.0, gs3's PostgreSQL went from Debian's -900 to genco's -600 (the drop-in replaced the unit's own OOMScoreAdjust at its next start). Units whose own file (or template, for postgresql@17-main) sets -600 or lower now get no drop-in, an old genco drop-in is removed (daemon-reload), and their running processes keep or get back the unit's own score. Tested on the test server: drop-in gone, postgresql@17-main OOMScoreAdjust and process at -900, mariadb still -600.

🤖 Generated with Claude Code

noah-meierlabs and others added 2 commits November 13, 2026 16:04
Debian's PostgreSQL unit sets OOMScoreAdjust=-900; genco's drop-in
replaced that with -600 at its next start (seen on gs3 after 0.13.0),
less protection than before. A unit whose own file sets -600 or lower
gets no drop-in now, an old one of genco's is removed, and its running
processes keep (or get back) its own score.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A unit that sets its own lower score (Debian's PostgreSQL) only gets it
back on processes still at genco's old -600: its backends reset
themselves to 0 so a runaway query is killed first, and pushing them to
-900 would make the kernel pick nginx or mail instead. Unit files with
spaces around the = are read too, and a drop-in that can't be removed
is reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noah-meierlabs
noah-meierlabs merged commit 34e58b1 into main Nov 13, 2026
1 check failed
@noah-meierlabs
noah-meierlabs deleted the fix/oom-keep-lower branch November 13, 2026 15:12
@noah-meierlabs noah-meierlabs mentioned this pull request Nov 14, 2026
noah-meierlabs added a commit that referenced this pull request Nov 14, 2026
OPERATIONS.md still said every shared service gets -600; since #12 a
unit with a lower score of its own (PostgreSQL's -900) keeps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
noah-meierlabs added a commit that referenced this pull request Nov 14, 2026
* Release 0.13.1

PostgreSQL keeps its own stronger OOM protection instead of genco's
drop-in value. Plans are short enough to read in under a minute (at most
1500 characters). The taskbar also shows proposals still being planned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Document that services keep their own lower OOM score

OPERATIONS.md still said every shared service gets -600; since #12 a
unit with a lower score of its own (PostgreSQL's -900) keeps it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant