[Bug 1470] adjust Linux out-of-memory killer to stop sshd being killed

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sun Feb 28 07:49:36 EST 2010


https://bugzilla.mindrot.org/show_bug.cgi?id=1470

--- Comment #11 from Colin Watson <cjwatson at debian.org> 2010-02-28 07:49:34 EST ---
The patch as applied has one flaw that I can see.  Apparently some
virtualisation containers (vserver/OpenVZ) don't allow processes to
write to /proc/self/oom_adj, and will return an error code if they try.
 It would be a shame for sshd to unconditionally log an error on such
systems; I think this was probably the main benefit of having it
controlled by an environment variable, so that they could turn this
feature off.

How about just lowering errors from writing to /proc/self/oom_adj to
debug1(), rather than logit()?

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list