Change minimum fixed oom score to reflect real
minimum fixed oom score configuration "OomScore".
The resourced does not allow OomScore in app structure less than zero.
Change-Id: Ib8ce14bc5cf8310c46bae47ef54b7d59d3f2c95f
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
Key: OomScore
Value: <oom_score_adj>
Comment: Specify the fixed oom_score_adj.
- oom_score_adj is an integer value between -900 to 250.
+ oom_score_adj is an integer value between 0 to 250.
Predefined values cannot be used.
Predefined values:
- -900 : The lowest oom score value in resourced.
0 : Initial value for services and processes.
100 : Initial value for apps.
150 : Foreground status when it is cpu-locked(prevents sleep).
#include "resourced.h"
#include "trace.h"
-#define FIXED_OOM_MIN OOMADJ_SERVICE_MIN
+#define FIXED_OOM_MIN OOMADJ_SU
#define FIXED_OOM_MAX OOMADJ_BACKGRD_LOCKED
static GHashTable *oom_fixed_pid_list;
* However, it reduces resourced user experience considerably.
*/
switch (oom_score) {
- case OOMADJ_SERVICE_MIN:
case OOMADJ_SU:
case OOMADJ_INIT:
case OOMADJ_FOREGRD_LOCKED: