Please sign in to comment.
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@fdf3775 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 [firstname.lastname@example.org] Open-webOS-DCO-1.0-Signed-off-by: Eric Blade <email@example.com> Change-Id: I8fd3d4acd2ce71338391bad0e231fce1869160e6
- Loading branch information...
Showing with 41 additions and 9 deletions.