-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MemoryMonitor: use /proc/*/oom_score_adj rather than /proc/*/oom_adj
This change is based on a change made originally to luna-sysmgr by Simon Busch, at openwebos/luna-sysmgr@fdf37758e36da98268da95051cb6 On newer kernels /proc/*/oom_adj is deprecated and should not be used anymor webOS requires at least a linux 3.3 kernel this changes the use to the new /proc/*/oom_score_adj entry but still keeps backward compatiblity for older kernels that provide /proc/*/oom_adj. More information about the change are available on the following pages: - torvalds/linux@a63d83f - https://www.redhat.com/archives/lvm-devel/2011-July/msg00097.html Open webOS DCO 1.0 Signed off by Simon Busch [morphis@gravedo.de] Open-webOS-DCO-1.0-Signed-off-by: Eric Blade <eric.blade@palm.com> Change-Id: I8fd3d4acd2ce71338391bad0e231fce1869160e6
- Loading branch information
1 parent
1ce375c
commit 70b6bdf
Showing
2 changed files
with
41 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters