[Bug 1838] New: /proc/self/oom_adj needs to use /proc/self/oom_score_adj

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Nov 16 11:31:09 EST 2010


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

           Summary: /proc/self/oom_adj needs to use
                    /proc/self/oom_score_adj
           Product: Portable OpenSSH
           Version: 5.6p1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: sshd
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: rientjes at google.com


/proc/self/oom_adj is deprecated in Linux 2.6.36 and later kernels; it
is scheduled for removal in August 2012.

sshd uses this interface to disable oom killing.

The new interface to use is /proc/self/oom_score_adj.  Instead of
writing -17 to /proc/self/oom_adj, sshd should now write -1000 to
/proc/self/oom_score_adj for the same behavior.

The filename and OOM_ADJ_NOKILL needs to be changed in
openbsd-compat/port-linux.c for 2.6.36 and later kernels.

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


More information about the openssh-bugs mailing list