memory-cgroup: Add BackgroundMru cgroup 06/297406/1
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 17 Aug 2023 08:33:22 +0000 (17:33 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Fri, 18 Aug 2023 02:31:42 +0000 (11:31 +0900)
commit5bd1d8de4fe9c072a363fe467c66291bcb08c9ad
tree32b6fdde04def8da3fd47cff7af55d50809f1af3
parente0d88faf066bf579be30fb6b12f94eedcaa75406
memory-cgroup: Add BackgroundMru cgroup

Add a memory cgroup called BackgroundMru to include apps
which have oom_score_adj like below range.
OOMADJ_BACKGRD_PERCEPTIBLE <= oom_score_adj
< OOMADJ_BACKGRD_UNLOCKED + OOMADJ_APP_INCREASE

resourced allows process migration from Private to BackgroundMru and vice versa.
However, it is impossible to be migrated from Private to / (top) or BackgroundLru
and vice versa.

This is one of patch to restore BackgroundReclaim configuration of resourced 6.0.

Change-Id: Icd540641b65e75e87fd73ee3511f7b3c33c32957
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/common/cgroup/memory-cgroup.c
src/common/cgroup/memory-cgroup.h
src/common/conf/swap-common.c
src/resource-limiter/memory/lowmem.c
src/resource-optimizer/memory/swap/swap.c