[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#511771: openssh-server: turn off SSHD_OOM_ADJUST for vserver/openvz

tags 511771 pending

On Wed, Jan 14, 2009 at 03:04:41AM -0800, Karl Chen wrote:
> See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487325
> (I guess the resolution of that bug report was for sshd to
> treat empty $SSHD_OOM_ADJUST the same as unset
> This patch to /etc/init.d/ssh turns off SSHD_OOM_ADJUST if
> attempting to write to oom_adj would just create useless log
> noise.
> I got the detection method from
> http://osdir.com/ml/linux.openvz.user/2008-07/msg00045.html
> but there might be something better.  (I don't know why the
> openvz guest kernel doesn't just make oom_adj 0444 instead
> of 0644.)

Thanks; I've applied your patch (with minor modifications - I decided to
use 'unset' rather than setting the variable to the empty string) for my
next upload.

Colin Watson                                       [cjwatson@debian.org]

Reply to: