memory-cgroup: Add a new oom_level called OOM_LEVEL_FOREGROUND 04/296304/7
authorUnsung Lee <unsung.lee@samsung.com>
Fri, 21 Jul 2023 08:01:52 +0000 (17:01 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 31 Jul 2023 02:37:40 +0000 (02:37 +0000)
commitb248697c0ed20aef133b676f1c9dc342a10f12c1
tree9ea65f02c7081c9fb9375edb9928de8e0ae49063
parent923fa6e3b3e902fbbcbf85737289dc95c3618b5f
memory-cgroup: Add a new oom_level called OOM_LEVEL_FOREGROUND

Add a new oom_level called OOM_LEVEL_FOREGROUND
between OOM_LEVEL_MOST_RECENTLY_USED and OOM_LEVEL_FOREGROUND_AND_PROC
to choose victims only from foreground status app group.
Although all foreground apps are contained in
OOM_LEVEL_FOREGROUND_AND_PROC group, it also contains process in /proc.

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