summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnsung Lee <unsung.lee@samsung.com>2024-04-16 16:12:58 +0900
committerUnsung Lee <unsung.lee@samsung.com>2024-04-16 16:26:51 +0900
commit1387181def04ad5dce5e7ed2dceb715246eb5f6b (patch)
treef05ba41dd96a550747df3dd37c7a0984b9299f77
parenta8d05e770e94d2af3bbc6dbd65363531e61a117c (diff)
downloadresourced-1387181def04ad5dce5e7ed2dceb715246eb5f6b.tar.gz
resourced-1387181def04ad5dce5e7ed2dceb715246eb5f6b.tar.bz2
resourced-1387181def04ad5dce5e7ed2dceb715246eb5f6b.zip
lowmem-governor: Revert "Classify apps & optimize memory cgroup"
Revert partial update among patch "Classify apps & optimize memory cgroup". It changes the criterion for determining whether a process is app or not based on it is managed by resourced as app rather than the oom score. This approach is based on resourced (branch: tizen_6.0). Change-Id: I3c9a4911b96c669f8abf8facf922112afbfd2a6b Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
-rw-r--r--src/resource-limiter/memory/lowmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resource-limiter/memory/lowmem.c b/src/resource-limiter/memory/lowmem.c
index e3af6fee..5aad04f3 100644
--- a/src/resource-limiter/memory/lowmem.c
+++ b/src/resource-limiter/memory/lowmem.c
@@ -735,7 +735,7 @@ static GArray *lowmem_get_task_info_proc()
* and pid has been already included in pai,
* skip to append.
*/
- if (oom_score_adj > OOMADJ_SU && oom_score_adj <= OOMADJ_APP_MAX)
+ if (find_app_info(pid))
continue;
appid = (char *)g_hash_table_lookup(g_lmk_kill_exception_pid_list, &pid);