DEDUP: a dedup module to control LKSM 52/240852/5
authorSung-hun Kim <sfoon.kim@samsung.com>
Thu, 23 Jan 2020 07:18:20 +0000 (16:18 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Wed, 26 Aug 2020 02:22:19 +0000 (11:22 +0900)
commit8133e8861ff7b6db30f1126e15d5213c7fe5438e
treecfff990ec9078a6710fbd671209d915d31e08710
parentdbf8e8c870797c4aa52da0481ff9b14ae5828f38
DEDUP: a dedup module to control LKSM

To manage LKSM in the kernel, a dedup module is added to resourced codebase.

The resourced daemon checks memory pressure level when an event is delivered
from the kernel. When the memory pressure level is crossed the predefined
threshold (which is configured by memory.conf), the daemon requests to invoke
memory deduplication via sysfs interface.

In order to enable a dedup module in resourced, the kernel should support LKSM
features.

Change-Id: I6bec596d40e68e1d6cc0c047d80ef30700ab846e
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
CMakeLists.txt
packaging/resourced.spec
src/CMakeLists.txt
src/common/dedup-common.c [new file with mode: 0644]
src/common/dedup-common.h [new file with mode: 0644]
src/common/memory-common.h
src/common/notifier.h
src/dedup/dedup.c [new file with mode: 0644]
src/dedup/dedup.conf [new file with mode: 0644]
src/memory/memory.conf
src/memory/vmpressure-lowmem-handler.c