lowmem-governor: Revert "Classify apps & optimize memory cgroup" 42/309542/1
authorUnsung Lee <unsung.lee@samsung.com>
Fri, 12 Apr 2024 04:57:22 +0000 (13:57 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Fri, 12 Apr 2024 05:21:00 +0000 (14:21 +0900)
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: I8564343f04f7f9cb17279bce1f537957dc560a28
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-limiter/memory/lowmem-governor.c

index d748850..83c8869 100644 (file)
@@ -132,7 +132,7 @@ static int lowmem_get_pids_proc(GArray *pids)
                 * and pid has been already included in pai,
                 * skip to append.
                 */
-               if (oom > OOMADJ_SU && oom <= OOMADJ_APP_MAX)
+               if (find_app_info(pid))
                        continue;
 
                appid = (char *)g_hash_table_lookup(g_lmk_kill_exception_pid_list, &pid);