[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
Mon Mar 1 15:53:29 EST 2010


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

--- Comment #12 from Darren Tucker <dtucker at zip.com.au> 2010-03-01 15:53:27 EST ---
(In reply to comment #11)
> 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()?

I've lowered them to verbose(), same as the other calls.

-- 
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