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
fail2ban with enormously large ban lists is prone to being killed by OOM. I'm not sure if the kernel uses cgroups for killing together or not, but I think this would be a problem if a cgroup limit w/ memory.max is set anyway.
We're using supervise-daemon now for the fail2ban init script, but it looks like supervise-daemon gets placed in the same cgroup as the process it is supervising, so both get killed together.
changed the title [-]supervise-daemon uses same cgroup for child (gets killed along with supervised process by OOM killer)[/-][+]supervise-daemon uses same cgroup for child[/+]on Jul 22, 2026
as i understand, oom killer selects process based on its oom_score_adj and memory usage. so making sure that supervise-daemon’s oom_score_adj is always -1000 would help, since it consumes less memory than supervised process in most cases.
Tasks with the OOM protection (oom_score_adj set to -1000) are treated as an exception and are never killed.
that'd prevent it, though i still feel like the cgroups should maybe be split, having the supervisor separate from the service proper seems, cleaner? specially for stuff like max pids
Activity
[-]supervise-daemon uses same cgroup for child (gets killed along with supervised process by OOM killer)[/-][+]supervise-daemon uses same cgroup for child[/+]meoovv commentedon Sep 27, 2026
as i understand, oom killer selects process based on its oom_score_adj and memory usage. so making sure that supervise-daemon’s oom_score_adj is always -1000 would help, since it consumes less memory than supervised process in most cases.
navi-desu commentedon Sep 27, 2026
reading the docs:
that'd prevent it, though i still feel like the cgroups should maybe be split, having the supervisor separate from the service proper seems, cleaner? specially for stuff like max pids