Summary: | /proc/self/oom_adj needs to use /proc/self/oom_score_adj | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | David Rientjes <rientjes> |
Component: | kdeinit | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | david, faure, l.lunak, rientjes |
Priority: | NOR | ||
Version: | 4.5 | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.6.1 | |
Sentry Crash Report: |
Description
David Rientjes
2010-12-02 02:57:06 UTC
Lubos? I can confirm that on 4.6_beta2 Confirmed here as well (4.5.5, linux 2.6.37) This should be very easy to fix: if /proc/pid/oom_score_adj exists, set it to -1000 (OOM_SCORE_ADJ_MIN from linux/oom.h), otherwise set /proc/pid/oom_adj to -17 (OOM_DISABLE from linux/oom.h). I just applied http://commits.kde.org/kdelibs/1bea60f843dfe098b1a411482b7e404bfe8a0e55 which fixes this, although it uses -300 rather than -1000; seems this was suggested by Novell guys, I don't know the exact reasoning. Backported for 4.6.1 in e3b0aed5bf72858b772577f8b6688b9c7085bca2 |