lowmem: Add active, inactive, and swap usage in task_info 82/298382/3
authorUnsung Lee <unsung.lee@samsung.com>
Tue, 5 Sep 2023 04:42:01 +0000 (13:42 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Wed, 6 Sep 2023 08:56:14 +0000 (17:56 +0900)
commit7e8316465ecd723d9ee018583ee2657371450015
tree8deb9106656e293da26b6c3fea300fedb2f24f0e
parent68ad85658a471b0c0933d1bace8a8790287123cc
lowmem: Add active, inactive, and swap usage in task_info

Add active, inactive, and swap usage of each app in task_info structure.
This infomration will be used in get_kill_candidates_post_with_wss() function.

Active, inactive, and swap usage are counted by
  - Active usage is sum of active_anon + active_file in memcg
  - Inactive usage is sum of inactive_anon + inactive_file in memcg
  - Swap usage is a mount of swap in memcg

Change-Id: I1e96d12023eb303754a0120e18c20ee9e66a1459
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