proc-oom-priority: Set low oom_score_adj for 'ForegroundAppList' 47/295747/10
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 12 Jul 2023 05:57:04 +0000 (14:57 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 31 Jul 2023 02:35:06 +0000 (11:35 +0900)
commit83b5ecba6d2f56fe431ec8b4b489f8f0b9e82ee8
tree48ba329fc33506726c220d3b24c961a9973698a8
parent220d3a2cb7944408ac2ad711e83025bb729ec264
proc-oom-priority: Set low oom_score_adj for 'ForegroundAppList'

Set low oom_score_adj of foreground app if the corresponding configuration sets.

oom_score_adj is an important indicator to choose victim
when available memory is too low.
Therefore, if specific foreground app(s) have low fixed oom_score_adj
compared to other apps, then they will be selected for victim with relatively
low probability.

Change-Id: Ic2752fb658da05d9d92a167e5a0f4d1dae411994
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/common/proc-common.h
src/process/proc-oom-priority.c